From f16432898090087d525d0242003047e06a130e8d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:01:28 +0100 Subject: [PATCH] update to 0.1.15 [release 0.1.15-1mamba;Sat Aug 15 2020] --- libcomps.spec | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/libcomps.spec b/libcomps.spec index 3d48735..1170d3b 100644 --- a/libcomps.spec +++ b/libcomps.spec @@ -1,5 +1,5 @@ Name: libcomps -Version: 0.1.8 +Version: 0.1.15 Release: 1mamba Summary: Alternative for yum.comps library written in pure C with Python bindings Group: System/Libraries @@ -11,10 +11,12 @@ Source: https://github.com/rpm-software-management/libcomps.git/libcomps- License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: ldconfig BuildRequires: libexpat-devel BuildRequires: libpython-devel -BuildRequires: libpython27-devel +BuildRequires: libpython3-devel BuildRequires: libxml2-devel +BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -29,6 +31,14 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel This package contains libraries and header files for developing applications that use %{name}. +%package -n python-libcomps-py3 +Group: System/Libraries/Python +Summary: Python 3 bindings to %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n python-libcomps-py3 +This package contains the python 3 bindings to %{name}. + %debug_package %prep @@ -37,7 +47,7 @@ This package contains libraries and header files for developing applications tha %build cd libcomps %cmake -d build \ - -DPYTHON_EXECUTABLE=%{__python27} + -DPYTHON_DESIRED=3 %make @@ -54,17 +64,25 @@ cd libcomps %files %defattr(-,root,root) %{_libdir}/libcomps.so.* -%dir %{python27_sitearch}/libcomps -%{python27_sitearch}/libcomps/* %doc COPYING +%files -n python-libcomps-py3 +%defattr(-,root,root) +%{python3_sitearch}/libcomps-*.egg-info +%dir %{python3_sitearch}/libcomps +%{python3_sitearch}/libcomps/* + %files devel %defattr(-,root,root) %dir %{_includedir}/libcomps %{_includedir}/libcomps/* %{_libdir}/libcomps.so +%{_libdir}/pkgconfig/libcomps.pc %doc README.md %changelog +* Sat Aug 15 2020 Silvan Calarco 0.1.15-1mamba +- update to 0.1.15 + * Thu May 17 2018 Silvan Calarco 0.1.8-1mamba - package created using the webbuild interface