]> git.pld-linux.org Git - packages/cvsspam.git/blob - cvsspam.spec
- add patch to wrap cvs commits
[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.11
5 Release:        6.2
6 Epoch:          0
7 License:        GPL
8 Group:          Applications/System
9 Source0:        http://www.badgers-in-foil.co.uk/projects/cvsspam/%{name}-%{version}.tar.gz
10 # Source0-md5:  e2fe350b845ad1d2ff935f623a0f543a
11 Patch0:         %{name}-users-quote.patch
12 Patch1:         %{name}-charset-arg.patch
13 Patch2:         %{name}-filenr.patch
14 Patch3:         %{name}-trailing-cvsinfo-slash.patch
15 Patch4:         %{name}-optkb_binary_hint.patch
16 Patch5:         %{name}-encode_email_personal_name.patch
17 Patch6:         %{name}-cvsroot_trailing_slash.patch
18 Patch7:         %{name}-mail_threading.patch
19 Patch8:         %{name}-comment-ws.patch
20 URL:            http://www.badgers-in-foil.co.uk/projects/cvsspam/
21 BuildRequires:  rpmbuild(macros) >= 1.177
22 Requires:       cvs
23 Requires:       ruby
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _sysconfdir     /etc/%{name}
28 %define         _datadir        %{_prefix}/share/%{name}
29
30 %description
31 CVSspam sends email when a change is committed to the CVS repository.
32 Syntax-highlighted diffs describe the changes made, and links to Web
33 frontends on CVS and bug tracking systems are generated where
34 possible.
35
36 %description -l pl
37 CVSspam wysy³a wiadomo¶æ po wykonaniu zmiany w repozytorium CVS.
38 Ró¿nice z pod¶wietlaniem sk³adni opisuj± wykonane zmiany, a je¶li to
39 mo¿liwe, generowane s± odno¶niki do frontendów WWW do CVS i systemów
40 ¶ledzenia b³êdów.
41
42 %prep
43 %setup -q
44 %patch0 -p1
45 %patch1 -p1
46 %patch2 -p1
47 %patch3 -p0
48 %patch4 -p0
49 %patch5 -p1
50 %patch6 -p0
51 %patch7 -p0
52 %patch8 -p1
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_sysconfdir}}
57
58 install {collect_diffs,cvsspam,record_lastdir}.rb $RPM_BUILD_ROOT%{_datadir}
59 install cvsspam.conf $RPM_BUILD_ROOT%{_sysconfdir}
60
61 ln -s %{_datadir} $RPM_BUILD_ROOT%{_libdir}/%{name}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 # make compat symlink, the symlink is discarded using %ghost on package uninstall
67 %triggerpostun -- cvsspam < 0.2.11-5.3
68 # need rmdir, because the path belongs to new package (is %ghosted) and therefore is not removed by rpm
69 rmdir %{_libdir}/%{name} 2>/dev/null || mv -v %{_libdir}/%{name}{,.rpmsave}
70 ln -s %{_datadir} %{_libdir}/%{name}
71 %banner %{name} -e <<EOF
72 NOTE: The cvsspam programs have been moved to %{_datadir}.
73 I've created compat symlink so you don't feel so much pain of that.
74
75 EOF
76
77 %files
78 %defattr(644,root,root,755)
79 %doc CREDITS TODO cvsspam-doc.pdf cvsspam-doc.html
80 %dir %{_datadir}
81 %attr(755,root,root) %{_datadir}/*
82 %ghost %{_libdir}/%{name}
83 %dir %{_sysconfdir}
84 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
This page took 0.10932 seconds and 4 git commands to generate.