[be] - fix inverted if-guard for skipping el5 manpage generation - also declare $BUILDROOT on el5, and %c
Michel Alexandre Salim
salimma at fedoraproject.org
Wed Jul 13 22:25:21 UTC 2011
commit d9736f8007e232b8df2776408aa1609226fc6879
Author: Michel Alexandre Salim <michel at sylvestre.me>
Date: Fri Mar 25 23:28:26 2011 +0100
- fix inverted if-guard for skipping el5 manpage generation
- also declare $BUILDROOT on el5, and %clean section on both rhel
be.spec | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/be.spec b/be.spec
index 52f1fc5..47e2114 100644
--- a/be.spec
+++ b/be.spec
@@ -17,6 +17,10 @@ BuildArch: noarch
BuildRequires: python-docutils
Requires: PyYAML
+%if 0%{?el5}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+%endif
+
%description
This is Bugs Everywhere (BE), a bug tracker built on distributed
version control. It works with Arch, Bazaar, Darcs, Git, Mercurial,
@@ -38,7 +42,7 @@ sed -i '1d' misc/completion/be.bash
%build
%{__python} setup.py build
# rst2man not in RHEL5's python-docutils
-%if 0%{?el5}
+%if ! 0%{?el5}
make man
%endif
@@ -50,6 +54,12 @@ COMPDIR=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
mkdir -p $COMPDIR
cp -p misc/completion/be.bash $COMPDIR/
+
+%if 0%{?rhel}
+%clean
+rm -rf $RPM_BUILD_ROOT
+%endif
+
%files
### not needed anymore by RPM, but keep rpmlint happy
@@ -60,7 +70,7 @@ cp -p misc/completion/be.bash $COMPDIR/
%{python_sitelib}/*
%dir %{_sysconfdir}/bash_completion.d
%config(noreplace) %{_sysconfdir}/bash_completion.d/be.bash
-%if 0%{?el5}
+%if ! 0%{?el5}
%{_mandir}/man1/be.1*
%endif
More information about the scm-commits
mailing list