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