diff --git a/librepo.spec b/librepo.spec index caf0bd0..1ea89ce 100644 --- a/librepo.spec +++ b/librepo.spec @@ -1,5 +1,5 @@ Name: librepo -Version: 1.11.2 +Version: 1.12.0 Release: 1mamba Summary: A library providing C and Python API for downloading packages and linux repository metadata in rpm-md format Group: System/Libraries @@ -20,7 +20,7 @@ BuildRequires: libgpg-error-devel BuildRequires: libgpgme-devel BuildRequires: libopenssl-devel BuildRequires: libpython-devel -BuildRequires: libpython27-devel +BuildRequires: libpython3-devel BuildRequires: libxml2-devel BuildRequires: libzck-devel ## AUTOBUILDREQ-END @@ -39,13 +39,23 @@ Requires: pkg-config %description devel This package contains libraries and header files for developing applications that use %{name}. +%package -n python-librepo-py3 +Group: System/Libraries/Python +Summary: Python 3 bindings for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n python-librepo-py3 +This package contains the Python 3 bindings for %{name}. + %debug_package %prep %setup -q %build -%cmake -d build +%cmake -d build \ + -DPYTHON_DESIRED=3 + %make %install @@ -62,8 +72,11 @@ This package contains libraries and header files for developing applications tha %defattr(-,root,root) %{_libdir}/librepo.so.* %doc AUTHORS COPYING -%dir %{python27_sitearch}/librepo -%{python27_sitearch}/librepo/* + +%files -n python-librepo-py3 +%defattr(-,root,root) +%dir %{python3_sitearch}/librepo +%{python3_sitearch}/librepo/* %files devel %defattr(-,root,root) @@ -74,6 +87,9 @@ This package contains libraries and header files for developing applications tha %doc README.md %changelog +* Sat Aug 15 2020 Silvan Calarco 1.12.0-1mamba +- update to 1.12.0 + * Thu Feb 27 2020 Silvan Calarco 1.11.2-1mamba - update to 1.11.2