[liblouis] restrict exclusion of Python 3 support to RHEL <= 7

Martin Gieseking mgieseki at fedoraproject.org
Mon Apr 22 11:29:07 UTC 2013


commit a327ba265b740f558352934cd88dcda96aad1b97
Author: Martin Gieseking <martin.gieseking at uos.de>
Date:   Mon Apr 22 13:22:48 2013 +0200

    restrict exclusion of Python 3 support to RHEL <= 7

 liblouis.spec |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/liblouis.spec b/liblouis.spec
index ea0d394..14cb15d 100644
--- a/liblouis.spec
+++ b/liblouis.spec
@@ -1,4 +1,4 @@
-%if !( 0%{?rhel} > 0 && 0%{?rhel} < 7)
+%if !( 0%{?rhel} > 0 && 0%{?rhel} <= 7)
 # Turn off the brp-python-bytecompile script
 %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
 %endif
@@ -6,7 +6,7 @@
 
 Name:           liblouis
 Version:        2.5.2
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Braille translation and back-translation library
 
 Group:          System Environment/Libraries
@@ -19,7 +19,7 @@ BuildRequires:  help2man
 BuildRequires:  texinfo-tex
 BuildRequires:  python2-devel
 
-%if !( 0%{?rhel} > 0 && 0%{?rhel} < 7)
+%if !( 0%{?rhel} > 0 && 0%{?rhel} <= 7)
 BuildRequires:  python3-devel
 %endif
 
@@ -74,7 +74,7 @@ Requires:       %{name} = %{version}-%{release}
 This package provides Python 2 language bindings for %{name}.
 
 
-%if !( 0%{?rhel} > 0 && 0%{?rhel} < 7)
+%if !( 0%{?rhel} > 0 && 0%{?rhel} <= 7)
 %package python3
 Summary:        Python 3 language bindings for %{name}
 Group:          Development/Languages
@@ -121,7 +121,7 @@ cd python/louis
 install -d %{buildroot}%{python_sitelib}/louis
 install -pm 0644 __init__.py %{buildroot}%{python_sitelib}/louis/
 
-%if !( 0%{?rhel} > 0 && 0%{?rhel} < 7)
+%if !( 0%{?rhel} > 0 && 0%{?rhel} <= 7)
 %py_byte_compile %{__python} %{buildroot}%{python_sitelib}/louis/
 
 install -d %{buildroot}%{python3_sitelib}/louis
@@ -172,7 +172,7 @@ fi
 %doc python/README
 %{python_sitelib}/louis/
 
-%if !( 0%{?rhel} > 0 && 0%{?rhel} < 7)
+%if !( 0%{?rhel} > 0 && 0%{?rhel} <= 7)
 %files python3
 %defattr(-,root,root,-)
 %{python3_sitelib}/louis/
@@ -183,6 +183,9 @@ fi
 
 
 %changelog
+* Tue Apr 16 2013 Martin Gieseking <martin.gieseking at uos.de> 2.5.2-6
+- Restrict exclusion of Python 3 packages to RHEL <= 7.
+
 * Mon Apr 15 2013 Martin Gieseking <martin.gieseking at uos.de> 2.5.2-5
 - Restrict exclusion of Python 3 packages to RHEL < 7.
 


More information about the scm-commits mailing list