]> git.pld-linux.org Git - packages/cvsspam.git/blob - cvsspam.spec
3fc865e260ed20a3f480c62afd6f0cfc88c96d7b
[packages/cvsspam.git] / cvsspam.spec
1 Summary:        CVSspam emails you diffs when someone commits a change to your CVS repository
2 Summary(pl):    CVSspam - wysy³anie ró¿nic po wykonaniu zmiany w repozytorium CVS
3 Name:           cvsspam
4 Version:        0.2.12
5 Release:        1
6 Epoch:          0
7 License:        GPL
8 Group:          Applications/System
9 Source0:        http://www.badgers-in-foil.co.uk/projects/cvsspam/releases/%{name}-%{version}.tar.gz
10 # Source0-md5:  0afa4fbaf1c9edb27385e46337f80f4b
11 URL:            http://www.badgers-in-foil.co.uk/projects/cvsspam/
12 BuildRequires:  rpmbuild(macros) >= 1.177
13 Requires:       cvs
14 Requires:       ruby
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _sysconfdir     /etc/%{name}
19 %define         _datadir        %{_prefix}/share/%{name}
20
21 %description
22 CVSspam sends email when a change is committed to the CVS repository.
23 Syntax-highlighted diffs describe the changes made, and links to Web
24 frontends on CVS and bug tracking systems are generated where
25 possible.
26
27 %description -l pl
28 CVSspam wysy³a wiadomo¶æ po wykonaniu zmiany w repozytorium CVS.
29 Ró¿nice z pod¶wietlaniem sk³adni opisuj± wykonane zmiany, a je¶li to
30 mo¿liwe, generowane s± odno¶niki do frontendów WWW do CVS i systemów
31 ¶ledzenia b³êdów.
32
33 %prep
34 %setup -q
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_sysconfdir}}
39
40 install {collect_diffs,cvsspam,record_lastdir}.rb $RPM_BUILD_ROOT%{_datadir}
41 install cvsspam.conf $RPM_BUILD_ROOT%{_sysconfdir}
42
43 ln -s %{_datadir} $RPM_BUILD_ROOT%{_libdir}/%{name}
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 # make compat symlink, the symlink is discarded using %ghost on package uninstall
49 %triggerpostun -- cvsspam < 0.2.11-5.3
50 # need rmdir, because the path belongs to new package (is %ghosted) and therefore is not removed by rpm
51 rmdir %{_libdir}/%{name} 2>/dev/null || mv -v %{_libdir}/%{name}{,.rpmsave}
52 ln -s %{_datadir} %{_libdir}/%{name}
53 %banner %{name} -e <<EOF
54 NOTE:
55 The cvsspam programs have been moved to %{_datadir}.
56 I've created compat symlink so you don't feel so much pain of that.
57
58 EOF
59
60 %files
61 %defattr(644,root,root,755)
62 %doc CREDITS TODO cvsspam-doc.pdf cvsspam-doc.html
63 %dir %{_datadir}
64 %attr(755,root,root) %{_datadir}/*
65 %ghost %{_libdir}/%{name}
66 %dir %{_sysconfdir}
67 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
This page took 0.602983 seconds and 2 git commands to generate.