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