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