From: Elan Ruusamäe Date: Sun, 27 Mar 2005 21:50:38 +0000 (+0000) Subject: - FHS X-Git-Tag: auto/ac/cvsspam-0_2_12-2~11 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcvsspam.git;a=commitdiff_plain;h=189415a63110cd013615a78624b6e5cef599aa6d - FHS - noarch Changed files: cvsspam.spec -> 1.13 --- diff --git a/cvsspam.spec b/cvsspam.spec index d0ea6e5..525fe11 100644 --- a/cvsspam.spec +++ b/cvsspam.spec @@ -2,7 +2,7 @@ Summary: CVSspam emails you diffs when someone commits a change to your CVS repo Summary(pl): CVSspam - wysy³anie ró¿nic po wykonaniu zmiany w repozytorium CVS Name: cvsspam Version: 0.2.11 -Release: 5.2 +Release: 5.3 Epoch: 0 License: GPL Group: Applications/System @@ -16,12 +16,14 @@ Patch4: %{name}-optkb_binary_hint.patch Patch5: %{name}-encode_email_personal_name.patch Patch6: %{name}-cvsroot_trailing_slash.patch URL: http://www.badgers-in-foil.co.uk/projects/cvsspam/ +BuildRequires: rpmbuild(macros) >= 1.177 Requires: cvs Requires: ruby +BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _sysconfdir /etc/%{name} -%define _libdir %{_prefix}/%{_lib}/%{name} +%define _datadir %{_prefix}/share/%{name} %description CVSspam sends email when a change is committed to the CVS repository. @@ -47,18 +49,32 @@ mo %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_libdir},%{_sysconfdir}} +install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_sysconfdir}} -install {collect_diffs,cvsspam,record_lastdir}.rb $RPM_BUILD_ROOT%{_libdir} +install {collect_diffs,cvsspam,record_lastdir}.rb $RPM_BUILD_ROOT%{_datadir} install cvsspam.conf $RPM_BUILD_ROOT%{_sysconfdir} +ln -s %{_datadir} $RPM_BUILD_ROOT%{_libdir}/%{name} + %clean rm -rf $RPM_BUILD_ROOT +# make compat symlink, the symlink is discarded using %ghost on package uninstall +%triggerpostun -- cvsspam < 0.2.11-5.3 +# need rmdir, because the path belongs to new package (is %ghosted) and therefore is not removed by rpm +rmdir %{_libdir}/%{name} +ln -s %{_datadir} %{_libdir}/%{name} +%banner %{name} -e <