[liblouis] added python3 subpackage

Martin Gieseking mgieseki at fedoraproject.org
Tue Feb 26 21:58:52 UTC 2013


commit 0a882e6ed01ab80ce15e996342a7f444c764f9e5
Author: Martin Gieseking <martin.gieseking at uos.de>
Date:   Tue Feb 26 22:58:27 2013 +0100

    added python3 subpackage

 liblouis.spec |   34 ++++++++++++++++++++++++++++++----
 1 files changed, 30 insertions(+), 4 deletions(-)
---
diff --git a/liblouis.spec b/liblouis.spec
index 8416a78..1cd144a 100644
--- a/liblouis.spec
+++ b/liblouis.spec
@@ -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 at uos.de> 2.5.2-3
+- Added Python 3 language bindings.
+
 * Fri Feb 22 2013 Martin Gieseking <martin.gieseking at uos.de> 2.5.2-2
 - Moved documentation to doc subpackage.
 


More information about the scm-commits mailing list