# 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.88 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} || 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 # RHEL/CentOS/SL 7+ and all Fedora versions use systemd %if 0%{?rhel} >= 7 || 0%{?fedora} %define has_systemd 1 %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 Jun 11 2026 Erdal MUTLU - 1.0.88 - Merge branch 'change_sisiya_name_on_system_check' into 'develop' * Thu Jun 11 2026 Erdal MUTLU - 1.0.87-1-g42e493a - Change SisIYA to sisiya-client * Tue May 12 2026 Erdal MUTLU - 1.0.87 - Merge branch 'fix_epel_systemd_on_copr' into 'develop' * Tue May 12 2026 Erdal MUTLU - 1.0.86-1-gf7e267e - Fix systemd handling for rhel systems on copr * Tue May 12 2026 Erdal MUTLU - 1.0.86 - Merge branch 'add_systemd_files_for_ubuntu_packages' into 'develop' * Tue May 12 2026 Erdal MUTLU - 1.0.85-1-g41e8dc0 - Fix missing systemd files for Ubuntu packages * Tue May 12 2026 Erdal MUTLU - 1.0.85 - Merge branch 'fix_deb_package_contents' into 'develop' * Tue May 12 2026 Erdal MUTLU - 1.0.84-1-gd695960 - Fix missing files in deb packages * Tue May 12 2026 Erdal MUTLU - 1.0.84 - Merge branch 'fix_deploy_to_launchpad11' into 'develop' * Tue May 12 2026 Erdal MUTLU - 1.0.83-1-g72c8a14 - Fix package builds for older Ubuntu releases * Tue May 12 2026 Erdal MUTLU - 1.0.83 - Merge branch 'fix_deploy_to_launchpad10' into 'develop' * Tue May 12 2026 Erdal MUTLU - 1.0.82-1-gbb0a94a - Fix deploy to launchpad10 * Tue May 12 2026 Erdal MUTLU - 1.0.82 - Merge branch 'fix_deploy_to_launchpad9' into 'develop' * Tue May 12 2026 Erdal MUTLU - 1.0.81-1-g6ee6fb9 - Fix ci cd * Tue May 12 2026 Erdal MUTLU - 1.0.81 - Merge branch 'fix_deploy_to_launchpad8' into 'develop' * Tue May 12 2026 Erdal MUTLU - 1.0.80-1-g05143cd - Fix key trust command * Tue May 12 2026 Erdal MUTLU - 1.0.80 - Merge branch 'fix_deploy_to_launchpad7' into 'develop' * Tue May 12 2026 Erdal MUTLU - 1.0.79-1-gce05d7c - Fix deploy to launchpad7 * Thu May 07 2026 Erdal MUTLU - 1.0.79 - Merge branch 'fix_deploy_to_launchpad6' into 'develop' * Thu May 07 2026 Erdal MUTLU - 1.0.78-1-gf7dd60d - Fix pipeline * Wed May 06 2026 Erdal MUTLU - 1.0.78 - Merge branch 'fix_deploy_to_launchpad5' into 'develop' * Wed May 06 2026 Erdal MUTLU - 1.0.77-1-ge535eba - Fix pipeline * Wed May 06 2026 Erdal MUTLU - 1.0.77 - Merge branch 'fix_deploy_to_launchpad4' into 'develop' * Wed May 06 2026 Erdal MUTLU - 1.0.76-1-g50cd612 - Fix deploy to launchpad * Wed May 06 2026 Erdal MUTLU - 1.0.76 - Merge branch 'fix_deploy_to_launchpad3' into 'develop' * Wed May 06 2026 Erdal MUTLU - 1.0.75-1-gc113b5d - Fix deploy to launchpad * Wed May 06 2026 Erdal MUTLU - 1.0.75 - Merge branch 'fix_deploy_to_launchpad2' into 'develop' * Wed May 06 2026 Erdal MUTLU - 1.0.74-1-g1a719a4 - Fix deploy to launchpad * Wed May 06 2026 Erdal MUTLU - 1.0.74 - Merge branch 'fix_deploy_to_launchpad' into 'develop' * Wed May 06 2026 Erdal MUTLU - 1.0.73-1-g18ea942 - Fix deploy to launchpad * Wed May 06 2026 Erdal MUTLU - 1.0.73 - Merge branch 'create_deploy_to_launchpad' into 'develop' * Wed May 06 2026 Erdal MUTLU - 1.0.72-1-g042eaf3 - Create deploy to launchpad * Thu Apr 30 2026 Erdal MUTLU - 1.0.72 - Merge branch 'fix_create_sources' into 'develop' * Thu Apr 30 2026 Erdal MUTLU - 1.0.71-1-gaff05e4 - Fix create-sources cicd job * Thu Apr 30 2026 Erdal MUTLU - 1.0.71 - Merge branch 'remove_tags_from_create_sources_job' into 'develop' * Thu Apr 30 2026 Erdal MUTLU - 1.0.70-1-g114eff0 - Remove tags from create-sources cicd job * Thu Apr 30 2026 Erdal MUTLU - 1.0.70 - Merge branch 'disable_rpm_packages_job' into 'develop' * Thu Apr 30 2026 Erdal MUTLU - - Disable rpm-packages job * Thu Apr 30 2026 Erdal MUTLU - 1.0.69 - Merge branch 'fix_deploy_to_aur4' into 'develop'