# Copyright (C) Erdal Mutlu # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Name: sisiya-client Summary: SisIYA client Url: https://sisiya.de %define install_dir /usr/share/%{name} BuildArch: noarch BuildRoot: %{_builddir}/%{name}-root Version: 1.0.68 Release: 0 Source0: http://sourceforge.net/projects/sisiya/files/sisiya/%{version}/rpm/%{name}-%{version}.tar.gz License: GPL-3.0+ Vendor: Erdal Mutlu Group: System Environment/Daemons #Packager: Erdal Mutlu BuildRequires: make Requires: python3 %if 0%{?suse_version} > 1500 Requires: cron %endif AutoReqProv: no #################################### # Always check if defined first!!! #################################### # RedHat / CentOS / Scientific / Fedora systems %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?centos_ver} || 0%{?scientific_version} || 0%{?fedora} %if 0%{?rhel_version} >= 700 || 0%{?centos_version} >= 700 || 0%{?centos_ver} >= 7 || 0%{?scientific_version} >= 700 || 0%{?fedora} >= 14 %define has_systemd 1 %endif %endif # openSUSE systems %if 0%{?is_opensuse} && 0%{?suse_version} >= 1140 %define has_systemd 1 %endif # SLE systems %if !0%{?is_opensuse} && 0%{?sle_version} >= 120000 %define has_systemd 1 %endif # SLE backports systems %if 0%{?is_backports} && 0%{?sle_version} >= 120000 %define has_systemd 1 %endif %if 0%{?has_systemd} BuildRequires: systemd Requires: systemd %endif %description The SisIYA client. This package is installed on every server that is going to be monitored by SisIYA. %prep %setup -n %{name}-%{version} %build %install make DESTDIR=%{buildroot} INSTALL_DIR=%{install_dir} DOC_DIR=%{_docdir} MAN_DIR=%{_mandir} SYSCONF_DIR=%{_sysconfdir} install %if 0%{?has_systemd} make DESTDIR=%{buildroot} INSTALL_DIR=%{install_dir} DOC_DIR=%{_docdir} MAN_DIR=%{_mandir} SYSCONF_DIR=%{_sysconfdir} install_systemd_files %else make DESTDIR=%{buildroot} INSTALL_DIR=%{install_dir} DOC_DIR=%{_docdir} MAN_DIR=%{_mandir} SYSCONF_DIR=%{_sysconfdir} install_crond_files %endif # %if 0%{?has_systemd} # mkdir -p %{buildroot}/usr/lib/systemd/system # cp etc/systemd/* %{buildroot}/usr/lib/systemd/system/ # %else # mkdir -p %{buildroot}/etc/cron.d # cp etc/cron.d/* %{buildroot}/etc/cron.d/ # %endif %files %defattr(-,root,root) %if 0%{?has_systemd} /usr/lib/systemd/system/* %else # for openSUSE factory %if 0%{?suse_version} > 1500 %dir %{_sysconfdir}/cron.d %endif %{_sysconfdir}/cron.d/* %endif %dir %{_sysconfdir}/sisiya-client %config(noreplace) %{_sysconfdir}/sisiya-client/config.json %dir %{install_dir} %dir %{install_dir}/scripts %dir %{install_dir}/scripts/local_checks %dir %{install_dir}/scripts/remote_checks %dir %{install_dir}/utils %{install_dir}/scripts/local_checks/* %{install_dir}/scripts/remote_checks/* %{install_dir}/utils/* %dir %{_docdir}/%{name} %{_docdir}/%{name}/* %changelog * Thu Apr 30 2026 Erdal MUTLU - 1.0.68 - Merge branch 'fix_deploy_to_aur3' into 'develop' * Thu Apr 30 2026 Erdal MUTLU - 1.0.67-1-gdb2b7ab - Fix non root user issue with deploy to aur * Thu Apr 30 2026 Erdal MUTLU - 1.0.67 - Merge branch 'fix_package_dependency' into 'develop' * Thu Apr 30 2026 Erdal MUTLU - 1.0.66-1-g9b3c69f - Fix archlinux package dependency in the deploy to AUR CICD job * Thu Apr 30 2026 Erdal MUTLU - 1.0.66 - Merge branch 'fix_deploy_to_aur2' into 'develop' * Thu Apr 30 2026 Erdal MUTLU - 1.0.65-1-gafbe7ad - Fix deploy to AUR * Thu Apr 30 2026 Erdal MUTLU - 1.0.65 - Merge branch 'fix_deploy_to_aur' into 'develop' * Thu Apr 30 2026 Erdal MUTLU - 1.0.64-1-g4f55b8d - Fix deploy to aur * Thu Apr 30 2026 Erdal MUTLU - 1.0.64 - Merge branch 'add_deploy_to_aur_job' into 'develop' * Thu Apr 30 2026 Erdal MUTLU - 1.0.63-1-gff44aab - Create deploy-to-aur cicd job * Wed Apr 29 2026 Erdal MUTLU - 1.0.63 - Merge branch 'fix_deploy_to_copr4' into 'develop' * Wed Apr 29 2026 Erdal MUTLU - 1.0.62-1-gad248ab - Fix RPM package building * Wed Apr 29 2026 Erdal MUTLU - 1.0.62 - Merge branch 'fix_deploy_to_copr3' into 'develop' * Wed Apr 29 2026 Erdal MUTLU - 1.0.61-1-g251ae26 - Fix copr build * Wed Apr 29 2026 Erdal MUTLU - 1.0.61 - Merge branch 'fix_deploy_to_copr2' into 'develop' * Wed Apr 29 2026 Erdal MUTLU - 1.0.60-1-g9c6a6af - Fix deploy_to_copr job in cicd * Wed Apr 29 2026 Erdal MUTLU - 1.0.60 - Merge branch 'fix_deploy_to_copr' into 'develop' * Wed Apr 29 2026 Erdal MUTLU - 1.0.59-1-g0f7a30d - Fix deploy_to_copr job * Wed Apr 29 2026 Erdal MUTLU - 1.0.59 - Merge branch 'fix_pipeline2' into 'develop' * Wed Apr 29 2026 Erdal MUTLU - 1.0.58-1-g5a664eb - Fix pipeline2 * Mon Apr 27 2026 Erdal MUTLU - 1.0.58 - Merge branch 'fix_build_srpm' into 'develop' * Mon Apr 27 2026 Erdal MUTLU - 1.0.57-1-g7444b81 - Fix build_srpm * Mon Apr 27 2026 Erdal MUTLU - 1.0.57 - Merge branch 'fix_pipeline' into 'develop' * Mon Apr 27 2026 Erdal MUTLU - 1.0.56-1-g48e852b - Fix pipeline * Mon Apr 27 2026 Erdal MUTLU - 1.0.56 - Merge branch 'adjust_gitlab_runner' into 'develop' * Mon Apr 27 2026 Erdal MUTLU - 1.0.55-1-geb64118 - Trying to create sources * Mon Apr 27 2026 Erdal MUTLU - 1.0.55 - Merge branch 'add_build_step_for_copr' into 'develop' * Mon Apr 27 2026 Erdal MUTLU - 1.0.54-1-g74ecec4 - added cicd jobs building SRPM and publishing it to fedora copr * Fri Nov 14 2025 Erdal MUTLU - 1.0.54 - Merge branch 'add_timeout_to_client' into 'develop' * Fri Nov 14 2025 Erdal MUTLU - 1.0.53-1-g71b86e3 - Client scripts hangs * Sun Oct 19 2025 Erdal MUTLU - 1.0.53 - Merge branch 'seperate_swap_and_ram_check' into 'develop' * Sun Oct 19 2025 Erdal MUTLU - 1.0.52-1-g714658c - Seperate client check for swap and ram * Sun Sep 07 2025 Erdal MUTLU - 1.0.52 - Merge branch 'add_ldap_systemd_timer' into 'develop' * Sun Sep 07 2025 Erdal MUTLU - 1.0.51-1-gcf2009a - Add cron entry and systemd timer files for ldap check * Sun Sep 07 2025 Erdal MUTLU - 1.0.51 - Merge branch 'add_remote_ldap_check' into 'develop' * Sun Sep 07 2025 Erdal MUTLU - 1.0.50-1-g6917cad - Add remote ldap check * Mon Sep 01 2025 Erdal MUTLU - 1.0.50 - Merge branch 'extend_idrac' into 'develop' * Mon Sep 01 2025 Erdal MUTLU - - Add amperage check for idrac * Sun Aug 31 2025 Erdal MUTLU - 1.0.49 - Merge branch 'fix_idrac' into 'develop'