restrict exclusion of Python 3 support to RHEL <= 7
This commit is contained in:
parent
70633a7dd9
commit
a327ba265b
@ -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@uos.de> 2.5.2-6
|
||||
- Restrict exclusion of Python 3 packages to RHEL <= 7.
|
||||
|
||||
* Mon Apr 15 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-5
|
||||
- Restrict exclusion of Python 3 packages to RHEL < 7.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user