Summary: Inotify cron system Name: incron Version: 0.5.12 Release: 4 Group: System Environment/Base License: GPLv2 URL: https://github.com/ar-/incron Source0: https://github.com/ar-/%{name}/archive/%{version}.tar.gz Source1: incrond.service Source2: incrond.init Patch0: incron-0.5.10-gcc.patch Patch1: gcc-1.patch %if 0%{?rhel} > 6 || 0%{?fedora} > 18 BuildRequires: systemd Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units %else Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service Requires(postun): /sbin/service %endif %description This program is an "inotify cron" system. It consists of a daemon and a table manipulator. You can use it a similar way as the regular cron. The difference is that the inotify cron handles filesystem events rather than time periods. %prep %setup -q %patch0 -p1 -b .gcc %if 0%{?rhel} < 7 %patch1 -p1 %endif %build %if 0%{?rhel} < 7 make %{?_smp_mflags} CXXFLAGS="%{optflags}" %else make %{?_smp_mflags} CXXFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" %endif %install rm -rf %{buildroot} #install files manually since source Makefile tries to do it as root install -D -p incrond %{buildroot}%{_sbindir}/incrond install -D -p -m 4755 incrontab %{buildroot}%{_bindir}/incrontab install -d %{buildroot}%{_localstatedir}/spool/%{name} install -d %{buildroot}%{_sysconfdir}/%{name}.d %if 0%{?rhel} > 6 || 0%{?fedora} > 18 install -D -p %{SOURCE1} %{buildroot}%{_unitdir}/incrond.service %else install -D -p %{SOURCE2} %{buildroot}%{_initrddir}/incrond %endif install -D -p -m 0644 incron.conf.example %{buildroot}%{_sysconfdir}/%{name}.conf # install manpages make install-man MANPATH="%{buildroot}%{_mandir}" INSTALL="install -D -p" %post %if 0%{?rhel} > 6 || 0%{?fedora} > 18 %systemd_post incrond.service %else if [ $1 -eq 1 ]; then /sbin/chkconfig --add incrond fi %endif %preun %if 0%{?rhel} > 6 || 0%{?fedora} > 18 %systemd_preun incrond.service %else if [ $1 -eq 0 ]; then /sbin/service %{name} stop >/dev/null 2>&1 || : /sbin/chkconfig --del incrond fi %endif %postun %if 0%{?rhel} > 6 || 0%{?fedora} > 18 %systemd_postun_with_restart incrond.service %else if [ $1 -ge 1 ]; then /sbin/service incrond condrestart >/dev/null 2>&1 || : fi %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc COPYING CHANGELOG README TODO LICENSE-GPL %attr(4755,root,root) %{_bindir}/incrontab %{_sbindir}/incrond %if 0%{?rhel} > 6 || 0%{?fedora} > 18 %{_unitdir}/incrond.service %else %{_initrddir}/incrond %endif %config(noreplace) %{_sysconfdir}/%{name}.conf %{_mandir}/man1/incrontab.1.gz %{_mandir}/man5/incrontab.5.gz %{_mandir}/man5/incron.conf.5.gz %{_mandir}/man8/incrond.8.gz %dir %{_localstatedir}/spool/%{name} %dir %{_sysconfdir}/%{name}.d %changelog * Tue Aug 02 2016 Scott R. Shinn - 0.5.12-3 - Add support for EL5 & EL6 * Thu Feb 04 2016 Fedora Release Engineering - 0.5.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jan 03 2016 Kevin Fenzi - 0.5.12-1 - Update to 0.5.12 * Wed Jun 17 2015 Fedora Release Engineering - 0.5.10-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0.5.10-9 - Rebuilt for GCC 5 C++11 ABI change * Wed Sep 10 2014 Marcin Juszkiewicz - 0.5.10-8 - inotify_init is legacy syscall not supported on AArch64 * Sat Aug 16 2014 Fedora Release Engineering - 0.5.10-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.5.10-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Kevin Fenzi 0.5.10-5 - Add BuildRequires on systemd to make sure we have the _unitdir macro * Sat Aug 03 2013 Fedora Release Engineering - 0.5.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue May 21 2013 Kevin Fenzi 0.5.10-3 - Add hardening flags. Fixes bug #965519 * Thu Feb 14 2013 Fedora Release Engineering - 0.5.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Aug 25 2012 Kevin Fenzi 0.5.10-1 - Update to 0.5.10 - Add systemd macros for presets. Fixes bug #850158 * Thu Jul 19 2012 Fedora Release Engineering - 0.5.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Feb 16 2012 Jon Ciesla - 0.5.9-4 - Migrate to systemd, BZ 789688. - gcc47 patch. * Fri Jan 13 2012 Fedora Release Engineering - 0.5.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 0.5.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Dec 21 2009 Ruben Kerkhof 0.5.9-1 - Upstream released new version * Fri Jul 24 2009 Fedora Release Engineering - 0.5.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Ruben Kerkhof 0.5.8-1 - Upstream released new version - GCC 4.4 fixes - Drop GCC 4.3 patch, fixed upstream * Tue Feb 24 2009 Fedora Release Engineering - 0.5.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Feb 09 2008 Ruben Kerkhof - 0.5.7-1 - Sync with upstream * Thu Mar 13 2007 0.5.5-1 - Sync with upstream * Mon Feb 12 2007 0.5.4-1 - Update to new upstream version - Upstream fixed permissions on pidfile - New manpage for incron.conf - Upstream fixed example conf file * Sun Feb 04 2007 0.5.1-1 - Updated to new upstream version - Upstream fixed the incorrect encoding of the LICENSE-GPL file * Sun Jan 27 2007 0.5.0-1 - Updated to new upstream version - Changed the service name in the scriptlets - Added a configuration file - Included GPL License * Sat Jan 27 2007 0.4.0-1 - First try at packaging it up