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