[python-sparklines] Conditionally require python-argparse for el6.

Ralph Bean ralph at fedoraproject.org
Fri Aug 23 19:57:14 UTC 2013


commit b86d487660a5d10ef2b6a841f4a8618ea8a68fb6
Author: Ralph Bean <rbean at redhat.com>
Date:   Fri Aug 23 15:57:00 2013 -0400

    Conditionally require python-argparse for el6.

 python-sparklines.spec |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/python-sparklines.spec b/python-sparklines.spec
index efd8c6b..a3b5b4e 100644
--- a/python-sparklines.spec
+++ b/python-sparklines.spec
@@ -3,7 +3,7 @@
 
 Name:               python-sparklines
 Version:            0.9
-Release:            1%{?dist}
+Release:            2%{?dist}
 Summary:            A unicode sparkline generation library
 
 Group:              Development/Libraries
@@ -17,6 +17,10 @@ BuildRequires:      python2-devel
 BuildRequires:      python-setuptools
 Requires:           python-setuptools
 
+%if %{?rhel}%{!?rhel:0} <= 6
+Requires:           python-argparse
+%endif
+
 %description
 Takes series data via stdin, command line, or API and prints a sparkline
 representation.
@@ -44,6 +48,9 @@ install -m 0644 man/sparkline.1 %{buildroot}%{_mandir}/man1/sparkline.1
 %{_mandir}/man1/sparkline.1*
 
 %changelog
+* Fri Aug 23 2013 Ralph Bean <rbean at redhat.com> - 0.9-2
+- Add conditional requirement on python-argparse for el6.
+
 * Fri Aug 23 2013 Ralph Bean <rbean at redhat.com> - 0.9-1
 - Latest upstream; includes man pages.
 


More information about the scm-commits mailing list