2 # TODO: default config for PLD - edit /etc/changetrack.conf
4 %define src_name change
13 Source0: http://dl.sourceforge.net/changetrack/%{src_name}%{src_ver}.tar.gz
14 # Source0-md5: d37ec3c73de430972f7f5729ca3b8e74
16 URL: http://changetrack.sourceforge.net/
17 BuildRequires: rpm-perlprov
19 Requires: perl-File-NCopy
20 Requires: perl-modules
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 changetrack is a program to monitor changes to a bunch of files. If
29 files are modify one day, and the machine start working incorrectly
30 some days later, changetrack can provide information on which files
31 were modified, and help locate the problem. Changetrack will also
32 allow recovery of the files from any stage.
34 This program makes human-readable output, and also uses RCS to allow
35 recovery of any stage of revision.
43 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_sysconfdir},/etc/cron.d,%{_var}/lib/%{name}}
47 install changetrack $RPM_BUILD_ROOT%{_bindir}
48 install changetrack.man $RPM_BUILD_ROOT%{_mandir}/man1
49 install changetrack.conf $RPM_BUILD_ROOT%{_sysconfdir}
50 install %SOURCE1 $RPM_BUILD_ROOT/etc/cron.d/%{name}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
59 %attr(755,root,root) %{_bindir}/%{name}
60 %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
62 %dir %{_var}/lib/%{name}