added python3 subpackage
This commit is contained in:
parent
caa46d20ca
commit
0a882e6ed0
@ -1,6 +1,9 @@
|
||||
# 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')
|
||||
|
||||
Name: liblouis
|
||||
Version: 2.5.2
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Braille translation and back-translation library
|
||||
|
||||
Group: System Environment/Libraries
|
||||
@ -12,6 +15,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: help2man
|
||||
BuildRequires: texinfo-tex
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python3-devel
|
||||
Requires(post): info
|
||||
Requires(preun): info
|
||||
|
||||
@ -53,15 +57,24 @@ Five test programs are provided as part of the liblouis package. They
|
||||
are intended for testing liblouis and for debugging tables. None of
|
||||
them is suitable for braille transcription.
|
||||
|
||||
|
||||
%package python
|
||||
Summary: Python language bindings for %{name}
|
||||
Summary: Python 2 language bindings for %{name}
|
||||
Group: Development/Languages
|
||||
BuildArch: noarch
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description python
|
||||
This package provides Python language bindings for %{name}.
|
||||
This package provides Python 2 language bindings for %{name}.
|
||||
|
||||
|
||||
%package python3
|
||||
Summary: Python 3 language bindings for %{name}
|
||||
Group: Development/Languages
|
||||
BuildArch: noarch
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description python3
|
||||
This package provides Python 3 language bindings for %{name}.
|
||||
|
||||
|
||||
%package doc
|
||||
@ -95,8 +108,14 @@ rm -f %{buildroot}/%{_infodir}/dir
|
||||
rm -f %{buildroot}/%{_libdir}/%{name}.la
|
||||
rm -rf %{buildroot}/%{_defaultdocdir}/%{name}/
|
||||
cd python/louis
|
||||
|
||||
install -d %{buildroot}%{python_sitelib}/louis
|
||||
install -pm 0644 __init__.py %{buildroot}%{python_sitelib}/louis/
|
||||
%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/louis/
|
||||
|
||||
install -d %{buildroot}%{python3_sitelib}/louis
|
||||
install -pm 0644 __init__.py %{buildroot}%{python3_sitelib}/louis/
|
||||
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/louis/
|
||||
|
||||
|
||||
%clean
|
||||
@ -141,11 +160,18 @@ fi
|
||||
%doc python/README
|
||||
%{python_sitelib}/louis/
|
||||
|
||||
%files python3
|
||||
%defattr(-,root,root,-)
|
||||
%{python3_sitelib}/louis/
|
||||
|
||||
%files doc
|
||||
%doc doc/%{name}.{html,txt,pdf}
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Feb 26 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-3
|
||||
- Added Python 3 language bindings.
|
||||
|
||||
* Fri Feb 22 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-2
|
||||
- Moved documentation to doc subpackage.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user