remove python3 dependency and corresponding packages when building for RHEL
This commit is contained in:
parent
0a882e6ed0
commit
7af66a3af1
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: liblouis
|
Name: liblouis
|
||||||
Version: 2.5.2
|
Version: 2.5.2
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Braille translation and back-translation library
|
Summary: Braille translation and back-translation library
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -15,7 +15,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
BuildRequires: help2man
|
BuildRequires: help2man
|
||||||
BuildRequires: texinfo-tex
|
BuildRequires: texinfo-tex
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
|
%if !0%{?rhel}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
%endif
|
||||||
Requires(post): info
|
Requires(post): info
|
||||||
Requires(preun): info
|
Requires(preun): info
|
||||||
|
|
||||||
@ -67,6 +69,7 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
This package provides Python 2 language bindings for %{name}.
|
This package provides Python 2 language bindings for %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%if !0%{?rhel}
|
||||||
%package python3
|
%package python3
|
||||||
Summary: Python 3 language bindings for %{name}
|
Summary: Python 3 language bindings for %{name}
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -75,6 +78,7 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
|
|
||||||
%description python3
|
%description python3
|
||||||
This package provides Python 3 language bindings for %{name}.
|
This package provides Python 3 language bindings for %{name}.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
@ -113,9 +117,11 @@ install -d %{buildroot}%{python_sitelib}/louis
|
|||||||
install -pm 0644 __init__.py %{buildroot}%{python_sitelib}/louis/
|
install -pm 0644 __init__.py %{buildroot}%{python_sitelib}/louis/
|
||||||
%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/louis/
|
%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/louis/
|
||||||
|
|
||||||
|
%if !0%{?rhel}
|
||||||
install -d %{buildroot}%{python3_sitelib}/louis
|
install -d %{buildroot}%{python3_sitelib}/louis
|
||||||
install -pm 0644 __init__.py %{buildroot}%{python3_sitelib}/louis/
|
install -pm 0644 __init__.py %{buildroot}%{python3_sitelib}/louis/
|
||||||
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/louis/
|
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/louis/
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -160,15 +166,20 @@ fi
|
|||||||
%doc python/README
|
%doc python/README
|
||||||
%{python_sitelib}/louis/
|
%{python_sitelib}/louis/
|
||||||
|
|
||||||
|
%if !0%{?rhel}
|
||||||
%files python3
|
%files python3
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{python3_sitelib}/louis/
|
%{python3_sitelib}/louis/
|
||||||
|
%endif
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc doc/%{name}.{html,txt,pdf}
|
%doc doc/%{name}.{html,txt,pdf}
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 15 2013 Rui Matos <rmatos@redhat.com> - 2.5.2-4
|
||||||
|
- Don't depend on python3 in RHEL
|
||||||
|
|
||||||
* Tue Feb 26 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-3
|
* Tue Feb 26 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-3
|
||||||
- Added Python 3 language bindings.
|
- Added Python 3 language bindings.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user