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