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