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