diff --git a/deltarpm.spec b/deltarpm.spec index bed4971..5388ea3 100644 --- a/deltarpm.spec +++ b/deltarpm.spec @@ -1,5 +1,5 @@ Name: deltarpm -Version: 3.6 +Version: 3.6.1 Release: 1mamba Summary: Create deltas between rpms Group: System/Management @@ -7,12 +7,15 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.novell.com/products/linuxpackages/professional/deltarpm.html -Source: ftp://ftp.suse.com/pub/projects/deltarpm/deltarpm-%{version}.tar.bz2 +Source: https://github.com/rpm-software-management/deltarpm.git/%{version}/deltarpm-%{version}.tar.bz2 +#Source: ftp://ftp.suse.com/pub/projects/deltarpm/deltarpm-%{version}.tar.bz2 License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libbzip2-devel BuildRequires: liblzma-devel +BuildRequires: libperl +BuildRequires: libpython-devel BuildRequires: perl-devel BuildRequires: rpm-devel ## AUTOBUILDREQ-END @@ -21,6 +24,22 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description A deltarpm contains the difference between an old and a new version of a rpm, which makes it possible to recreate the new rpm from the deltarpm and the old one. You don't have to have a copy of the old rpm, deltarpms can also work with installed rpms. +%package -n python-deltarpm +Group: System/Libraries +Summary: Python bindings for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n python-deltarpm +Python bindings for %{name}. + +%package -n python-deltarpm-py3 +Group: System/Libraries +Summary: Python 3 bindings for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n python-deltarpm-py3 +Python 3 bindings for %{name}. + %debug_package %prep @@ -29,7 +48,8 @@ A deltarpm contains the difference between an old and a new version of a rpm, wh %build %make \ CFLAGS="-I%{_includedir}/rpm" \ - LDFLAGS="-lrpmdb" + LDFLAGS="-lrpmdb" \ + all python %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -60,6 +80,19 @@ A deltarpm contains the difference between an old and a new version of a rpm, wh %doc LICENSE.BSD #%doc NEWS README +%files -n python-deltarpm +%defattr(-,root,root) +%{python27_sitearch}/_deltarpmmodule.so +%{python27_sitearch}/deltarpm.py + +%files -n python-deltarpm-py3 +%defattr(-,root,root) +%{python3_sitearch}/_deltarpmmodule.so +%{python3_sitearch}/deltarpm.py + %changelog +* Wed Aug 23 2017 Silvan Calarco 3.6.1-1mamba +- update to 3.6.1 + * Mon Feb 17 2014 Silvan Calarco 3.6-1mamba - package created using the webbuild interface