1 Summary: CVSspam emails you diffs when someone commits a change to your CVS repository
2 Summary(pl.UTF-8): CVSspam - wysyłanie różnic po wykonaniu zmiany w repozytorium CVS
7 Group: Applications/System
8 Source0: http://www.badgers-in-foil.co.uk/projects/cvsspam/releases/%{name}-%{version}.tar.gz
9 # Source0-md5: 0afa4fbaf1c9edb27385e46337f80f4b
10 Source1: %{name}-branch.sh
11 Patch100: %{name}-branch.diff
12 Patch0: %{name}-textdiff.patch
13 Patch1: %{name}-tracfunc.patch
15 Patch3: ruby19-shadow-outer-var.patch
16 URL: http://www.badgers-in-foil.co.uk/projects/cvsspam/
17 BuildRequires: rpmbuild(macros) >= 1.277
18 BuildRequires: ruby-modules
19 BuildRequires: rpm-rubyprov
21 %{?ruby_mod_ver_requires_eq}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _sysconfdir /etc/%{name}
26 %define _datadir %{_prefix}/share/%{name}
27 %define _libdir %{_prefix}/lib
30 CVSspam sends email when a change is committed to the CVS repository.
31 Syntax-highlighted diffs describe the changes made, and links to Web
32 frontends on CVS and bug tracking systems are generated where
35 %description -l pl.UTF-8
36 CVSspam wysyła wiadomość po wykonaniu zmiany w repozytorium CVS.
37 Różnice z podświetlaniem składni opisują wykonane zmiany, a jeśli to
38 możliwe, generowane są odnośniki do frontendów WWW do CVS i systemów
43 rm svn_post_commit_hook.rb
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_sysconfdir}}
53 install -p {collect_diffs,cvsspam,record_lastdir}.rb $RPM_BUILD_ROOT%{_datadir}
54 cp -a cvsspam.conf $RPM_BUILD_ROOT%{_sysconfdir}
57 install -p svn_post_commit_hook.rb $RPM_BUILD_ROOT%{_datadir}
60 ln -s %{_datadir} $RPM_BUILD_ROOT%{_libdir}/%{name}
63 rm -rf $RPM_BUILD_ROOT
65 # make compat symlink, the symlink is discarded using %ghost on package uninstall
66 %triggerpostun -- cvsspam < 0.2.11-5.3
67 # need rmdir, because the path belongs to new package (is %ghosted) and therefore is not removed by rpm
68 rmdir %{_libdir}/%{name} 2>/dev/null || mv -v %{_libdir}/%{name}{,.rpmsave}
69 ln -s %{_datadir} %{_libdir}/%{name}
70 %banner %{name} -e <<EOF
72 The cvsspam programs have been moved to %{_datadir}.
73 I've created compat symlink so you don't feel so much pain of that.
78 %defattr(644,root,root,755)
79 %doc CREDITS TODO cvsspam-doc.pdf cvsspam-doc.html
81 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cvsspam.conf
83 %attr(755,root,root) %{_datadir}/*.rb
85 %ghost %{_libdir}/%{name}