source: projects/specs/trunk/i/incron/incron-vl.spec @ 8162

Revision 8162, 4.1 KB checked in by tomop, 10 years ago (diff)

updated many packages.

Line 
1Summary:     Inotify cron system
2Name:        incron
3Version:     0.5.10
4Release:     2%{?_dist_release}
5
6Group:       System Environment/Base         
7License:     GPLv2
8URL:         http://inotify.aiken.cz
9Source0:     http://inotify.aiken.cz/download/incron/%{name}-%{version}.tar.bz2
10Source1:     incrond.init
11#Patch0:      incron-gcc44.patch
12Patch1:      incron-gcc47.patch
13BuildRoot:   %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14
15Requires(post):   /sbin/chkconfig
16Requires(preun):  /sbin/chkconfig, /sbin/service
17
18Vendor: Project Vine
19Distribution: Vine Linux
20Packager: tomop
21
22%description
23This program is an "inotify cron" system.
24It consists of a daemon and a table manipulator.
25You can use it a similar way as the regular cron.
26The difference is that the inotify cron handles
27filesystem events rather than time periods.
28
29%prep
30%setup -q
31#%patch0 -p1 -b .orig
32%patch1 -p0 -b .gcc47
33
34%build
35make %{?_smp_mflags} CXXFLAGS="%{optflags}"
36
37
38%install
39rm -rf %{buildroot}
40
41#install files manually since source Makefile tries to do it as root
42install -D -p incrond %{buildroot}%{_sbindir}/incrond
43install -D -p -m 4755 incrontab %{buildroot}%{_bindir}/incrontab
44install -d %{buildroot}%{_localstatedir}/spool/%{name}
45install -d %{buildroot}%{_sysconfdir}/%{name}.d
46install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_initdir}/incrond
47install -D -p -m 0644 incron.conf.example %{buildroot}%{_sysconfdir}/%{name}.conf
48
49# install manpages
50make install-man MANPATH="%{buildroot}%{_mandir}" INSTALL="install -D -p"
51
52%post
53if [ $1 -eq 1 ]; then
54    /sbin/chkconfig --add incrond
55fi
56
57
58%preun
59if [ $1 -eq 0 ]; then
60        /sbin/service %{name} stop >/dev/null 2>&1 || :
61        /sbin/chkconfig --del incrond
62fi
63
64
65%postun
66if [ $1 -ge 1 ]; then
67        /sbin/service incrond condrestart >/dev/null 2>&1 || :
68fi
69
70
71%clean
72rm -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
Note: See TracBrowser for help on using the repository browser.