1 | Summary: Inotify cron system |
---|
2 | Name: incron |
---|
3 | Version: 0.5.10 |
---|
4 | Release: 2%{?_dist_release} |
---|
5 | |
---|
6 | Group: System Environment/Base |
---|
7 | License: GPLv2 |
---|
8 | URL: http://inotify.aiken.cz |
---|
9 | Source0: http://inotify.aiken.cz/download/incron/%{name}-%{version}.tar.bz2 |
---|
10 | Source1: incrond.init |
---|
11 | #Patch0: incron-gcc44.patch |
---|
12 | Patch1: incron-gcc47.patch |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
14 | |
---|
15 | Requires(post): /sbin/chkconfig |
---|
16 | Requires(preun): /sbin/chkconfig, /sbin/service |
---|
17 | |
---|
18 | Vendor: Project Vine |
---|
19 | Distribution: Vine Linux |
---|
20 | Packager: tomop |
---|
21 | |
---|
22 | %description |
---|
23 | This program is an "inotify cron" system. |
---|
24 | It consists of a daemon and a table manipulator. |
---|
25 | You can use it a similar way as the regular cron. |
---|
26 | The difference is that the inotify cron handles |
---|
27 | filesystem events rather than time periods. |
---|
28 | |
---|
29 | %prep |
---|
30 | %setup -q |
---|
31 | #%patch0 -p1 -b .orig |
---|
32 | %patch1 -p0 -b .gcc47 |
---|
33 | |
---|
34 | %build |
---|
35 | make %{?_smp_mflags} CXXFLAGS="%{optflags}" |
---|
36 | |
---|
37 | |
---|
38 | %install |
---|
39 | rm -rf %{buildroot} |
---|
40 | |
---|
41 | #install files manually since source Makefile tries to do it as root |
---|
42 | install -D -p incrond %{buildroot}%{_sbindir}/incrond |
---|
43 | install -D -p -m 4755 incrontab %{buildroot}%{_bindir}/incrontab |
---|
44 | install -d %{buildroot}%{_localstatedir}/spool/%{name} |
---|
45 | install -d %{buildroot}%{_sysconfdir}/%{name}.d |
---|
46 | install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_initdir}/incrond |
---|
47 | install -D -p -m 0644 incron.conf.example %{buildroot}%{_sysconfdir}/%{name}.conf |
---|
48 | |
---|
49 | # install manpages |
---|
50 | make install-man MANPATH="%{buildroot}%{_mandir}" INSTALL="install -D -p" |
---|
51 | |
---|
52 | %post |
---|
53 | if [ $1 -eq 1 ]; then |
---|
54 | /sbin/chkconfig --add incrond |
---|
55 | fi |
---|
56 | |
---|
57 | |
---|
58 | %preun |
---|
59 | if [ $1 -eq 0 ]; then |
---|
60 | /sbin/service %{name} stop >/dev/null 2>&1 || : |
---|
61 | /sbin/chkconfig --del incrond |
---|
62 | fi |
---|
63 | |
---|
64 | |
---|
65 | %postun |
---|
66 | if [ $1 -ge 1 ]; then |
---|
67 | /sbin/service incrond condrestart >/dev/null 2>&1 || : |
---|
68 | fi |
---|
69 | |
---|
70 | |
---|
71 | %clean |
---|
72 | rm -rf %{buildroot} |
---|
73 | |
---|
74 | %files |
---|
75 | %defattr(-,root,root,-) |
---|
76 | %attr(4755,root,root) %{_bindir}/incrontab |
---|
77 | %{_sbindir}/incrond |
---|
78 | %{_initdir}/incrond |
---|
79 | %config(noreplace) %{_sysconfdir}/%{name}.conf |
---|
80 | %{_mandir}/man1/incrontab.1.gz |
---|
81 | %{_mandir}/man5/incrontab.5.gz |
---|
82 | %{_mandir}/man5/incron.conf.5.gz |
---|
83 | %{_mandir}/man8/incrond.8.gz |
---|
84 | %dir %{_localstatedir}/spool/%{name} |
---|
85 | %dir %{_sysconfdir}/%{name}.d |
---|
86 | %doc COPYING CHANGELOG README TODO LICENSE-GPL |
---|
87 | |
---|
88 | |
---|
89 | |
---|
90 | %changelog |
---|
91 | * Sun Jan 12 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.5.10-2 |
---|
92 | - rebuilt with current environment. |
---|
93 | |
---|
94 | * Fri May 04 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.5.10-1 |
---|
95 | - new upstream release. |
---|
96 | - built for Vine Linux. |
---|
97 | |
---|
98 | * Thu Feb 16 2012 Jon Ciesla <limburgher@gmail.com> - 0.5.9-4 |
---|
99 | - Migrate to systemd, BZ 789688. |
---|
100 | - gcc47 patch. |
---|
101 | |
---|
102 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.9-3 |
---|
103 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
104 | |
---|
105 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.9-2 |
---|
106 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
107 | |
---|
108 | * Mon Dec 21 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.5.9-1 |
---|
109 | - Upstream released new version |
---|
110 | |
---|
111 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.8-2 |
---|
112 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
113 | |
---|
114 | * Wed Feb 25 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.5.8-1 |
---|
115 | - Upstream released new version |
---|
116 | - GCC 4.4 fixes |
---|
117 | - Drop GCC 4.3 patch, fixed upstream |
---|
118 | |
---|
119 | * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-2 |
---|
120 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
121 | |
---|
122 | * Sat Feb 09 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> - 0.5.7-1 |
---|
123 | - Sync with upstream |
---|
124 | |
---|
125 | * Tue Mar 13 2007 <ruben@rubenkerkhof.com> 0.5.5-1 |
---|
126 | - Sync with upstream |
---|
127 | * Mon Feb 12 2007 <ruben@rubenkerkhof.com> 0.5.4-1 |
---|
128 | - Update to new upstream version |
---|
129 | - Upstream fixed permissions on pidfile |
---|
130 | - New manpage for incron.conf |
---|
131 | - Upstream fixed example conf file |
---|
132 | * Sun Feb 04 2007 <ruben@rubenkerkhof.com> 0.5.1-1 |
---|
133 | - Updated to new upstream version |
---|
134 | - Upstream fixed the incorrect encoding of the LICENSE-GPL file |
---|
135 | * Sat Jan 27 2007 <ruben@rubenkerkhof.com> 0.5.0-1 |
---|
136 | - Updated to new upstream version |
---|
137 | - Changed the service name in the scriptlets |
---|
138 | - Added a configuration file |
---|
139 | - Included GPL License |
---|
140 | * Sat Jan 27 2007 <ruben@rubenkerkhof.com> 0.4.0-1 |
---|
141 | - First try at packaging it up |
---|