From d30fd7a002d1e875eccf78c411fa04a8b1114105 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Jun 10 2018 02:06:24 +0000 Subject: Build subpackage for Python 3 bindings --- diff --git a/concordance.spec b/concordance.spec index 5deb58b..80c1ea2 100644 --- a/concordance.spec +++ b/concordance.spec @@ -14,6 +14,7 @@ BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: hidapi-devel BuildRequires: python2-devel +BuildRequires: python3-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool @@ -57,6 +58,16 @@ BuildArch: noarch Python 2 bindings for libconcord +%package -n python3-%{libpkg} +Summary: Python 3 bindings for libconcord +Group: Development/Libraries +Requires: %{libpkg} = %{version}-%{release} +BuildArch: noarch + +%description -n python3-%{libpkg} +Python 3 bindings for libconcord + + %prep %setup -q @@ -71,6 +82,7 @@ cd - # python bindings cd %{libpkg}/bindings/python %py2_build +%py3_build cd - cd %{name} @@ -92,6 +104,7 @@ cd - # python bindings cd %{libpkg}/bindings/python %py2_install +%py3_install cd - cd %{name} @@ -137,12 +150,17 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %doc %{libpkg}/bindings/python/README %{python2_sitelib}/* +%files -n python3-%{libpkg} +%doc %{libpkg}/bindings/python/README +%{python3_sitelib}/* + %changelog * Sun Jun 10 2018 Scott Talbert - 1.3-1 - New upstream release 1.3 - Remove perl bindings subpackage (unused) - Remove old Provides/Obsoletes +- Build subpackage for Python 3 bindings * Mon Feb 19 2018 Scott Talbert - 1.2-18 - Add missing BR for gcc and gcc-c++