blob: debd063e26dec36db01c5f96de51a9f3b9a26abd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
Name: deltarpm
Version: 3.5.git
Release: 0
Summary: Tools to Create and Apply deltarpms
License: BSD-3-Clause
Group: System/Packages
Url: ftp://ftp.suse.com/pub/projects/deltarpm
Source: deltarpm-3.5.git.tar.bz2
Source1001: deltarpm.manifest
BuildRequires: bzip2-devel
BuildRequires: python-devel
BuildRequires: rpm-devel
BuildRequires: xz-devel
# we need to build against recent rpm, so avoid the new payload
%define _binary_payload w9.bzdio
%description
This package contains tools to create and apply deltarpms. A deltarpm
contains the difference between an old and a new version of an RPM,
which makes it possible to recreate the new RPM from the deltarpm and
the old one. You do not need to have a copy of the old RPM, because
deltarpms can also work with installed RPMs.
%package -n python-deltarpm
Summary: Tools to Create and Apply deltarpms
Group: Development/Languages/Python
Requires: %{name} = %{version}
%description -n python-deltarpm
Python bindings for deltarpm
%prep
%setup -q
cp %{SOURCE1001} .
%build
make CC="gcc" CFLAGS="%{optflags}" rpmdumpheader="/usr/lib/rpm/rpmdumpheader" %{?_smp_mflags}
make CC="gcc" CFLAGS="%{optflags}" rpmdumpheader="/usr/lib/rpm/rpmdumpheader" %{?_smp_mflags} python
%install
mkdir -p %{buildroot}%{_prefix}/lib/rpm
make DESTDIR=%{buildroot} prefix="%{_prefix}" libdir="%{_libdir}" mandir="%{_mandir}" rpmdumpheader="/usr/lib/rpm/rpmdumpheader" install
rm -rf %{buildroot}%{_libdir}/python/site-packages/{_deltarpmmodule.so,deltarpm.py} # Remove wrongly installed Python module
mv %{buildroot}%{python_sitearch}/_deltarpm{module,}.so # Fix binary Python module name
%files
%manifest %{name}.manifest
%defattr(-,root,root)
%doc README LICENSE.BSD
%{_bindir}/*
%{_mandir}/man8/*
%{_prefix}/lib/rpm/rpmdumpheader
%files -n python-deltarpm
%manifest %{name}.manifest
%defattr(-,root,root)
%{python_sitearch}/deltarpm.py
%{python_sitearch}/_deltarpm.so
%changelog
|