[packagedb-cli] Make the spec compatible epel5
Pierre-YvesChibon
pingou at fedoraproject.org
Wed Jun 29 17:16:11 UTC 2011
commit 0315c2d30587d00b2b51abe2de011ecb6c30195a
Author: pingou <pingou at pingoured.fr>
Date: Wed Jun 29 19:15:49 2011 +0200
Make the spec compatible epel5
packagedb-cli.spec | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/packagedb-cli.spec b/packagedb-cli.spec
index bd72d60..f772683 100644
--- a/packagedb-cli.spec
+++ b/packagedb-cli.spec
@@ -1,6 +1,6 @@
Name: packagedb-cli
Version: 1.0.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A CLI for pkgdb
License: GPLv2+
@@ -9,10 +9,24 @@ URL: https://fedorahosted.org/packagedb-cli/
# as soon as a "permission denied" is fixed and that I can upload
# the tarball
Source0: http://ambre.pingoured.fr/public/packagedb-cli-1.0.0.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
+
+%if 0%{?rhel} && 0%{?rhel} < 6
+# EPEL 5
+BuildRequires: python26
+Requires: python26-argparse
+%else
+# EPEL6+, Fedora
BuildRequires: python
+%endif
+
+# EPEL6+, Fedora13-
+%if 0%{?rhel} >= 6 || ( 0%{?fedora} && 0%{?fedora} <= 13 )
Requires: python-argparse
+%endif
+
%description
packagedb-cli is a command line interface of the well-known
@@ -40,6 +54,9 @@ install pkgdb-cli $RPM_BUILD_ROOT/%{_bindir}/
%{_bindir}/pkgdb-cli
%changelog
+* Wed Jun 29 2011 Pierre-Yves Chibon <pingou at pingoured.fr> - 1.0.0-4
+- Make the spec compatible with epel5 (add BuildRoot and test for R/BR)
+
* Wed Jun 29 2011 Pierre-Yves Chibon <pingou at pingoured.fr> - 1.0.0-3
- Fix the usage in the -h/--help by sed (already fixed upstream)
More information about the scm-commits
mailing list