1 %define subver 20110223
3 Summary: Create deltas between rpms
4 Summary(pl.UTF-8): Generowanie różnic między pakietami rpm
7 Release: 0.%{subver}git.%{rel}
10 Source0: http://pkgs.fedoraproject.org/repo/pkgs/deltarpm/%{name}-git-%{subver}.tar.bz2/70f8884be63614ca7c3fc888cf20ebc8/deltarpm-git-%{subver}.tar.bz2
11 # Source0-md5: 70f8884be63614ca7c3fc888cf20ebc8
12 Patch0: %{name}-3.4-no-skip-doc.patch
13 Patch1: %{name}-3.4-pld.patch
14 Patch2: %{name}-rpmdumpheader.patch
15 URL: http://www.novell.com/products/linuxpackages/opensuse/deltarpm.html
16 BuildRequires: bzip2-devel
17 BuildRequires: popt-devel
18 BuildRequires: python-devel
19 BuildRequires: rpm-devel
20 BuildRequires: rpm-pythonprov
21 BuildRequires: rpmbuild(macros) >= 1.219
22 BuildRequires: xz-devel
23 BuildRequires: zlib-static
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 A deltarpm contains the difference between an old and a new version of
28 a rpm, which makes it possible to recreate the new rpm from the
29 deltarpm and the old one. You don't have to have a copy of the old
30 rpm, deltarpms can also work with installed rpms.
32 %description -l pl.UTF-8
33 Deltarpm zawiera różnice pomiędzy starą i nową wersją pakietu rpm,
34 pozwalając na stworzenie nowej wersji na podstawie delty i starej
35 wersji. Nie jest konieczne posiadanie kopii starego pakietu rpm,
36 deltarpm obsługuje także już zainstalowane pakiety.
39 Summary: Sync a file tree with deltarpms
41 Requires: %{name} = %{version}-%{release}
43 %description -n drpmsync
44 This package contains a tool to sync a file tree with deltarpms.
47 Summary: Create deltas between isos containing rpms
49 Requires: %{name} = %{version}-%{release}
51 %description -n deltaiso
52 This package contains tools for creating and using deltasisos, a
53 difference between an old and a new iso containing rpms.
55 %package -n python-deltarpm
56 Summary: Python bindings for deltarpm
58 # does not require base package
60 %description -n python-deltarpm
61 This package contains python bindings for deltarpm.
64 %setup -q -n %{name}-git-%{subver}
69 %{__sed} -i -e 's/python3//' Makefile
72 %{__make} CC="%{__cc}" CFLAGS="%{rpmcflags} -I/usr/include/rpm" \
73 bindir=%{_bindir} libdir=%{_libdir} mandir=%{_mandir} prefix=%{_prefix} \
74 zlibbundled='' zlibldflags='-lz' zlibcppflags=''
76 %{__make} CC="%{__cc}" CFLAGS="%{rpmcflags}" \
77 bindir=%{_bindir} libdir=%{_libdir} mandir=%{_mandir} prefix=%{_prefix} \
78 zlibbundled='' zlibldflags='-lz' zlibcppflags='' \
82 rm -rf $RPM_BUILD_ROOT
84 DESTDIR=$RPM_BUILD_ROOT
86 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
87 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
91 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
95 %doc LICENSE.BSD README
96 %attr(755,root,root) %{_bindir}/applydeltarpm
97 %attr(755,root,root) %{_bindir}/combinedeltarpm
98 %attr(755,root,root) %{_bindir}/makedeltarpm
99 %attr(755,root,root) %{_bindir}/rpmdumpheader
100 %{_mandir}/man8/applydeltarpm.8*
101 %{_mandir}/man8/combinedeltarpm.8*
102 %{_mandir}/man8/makedeltarpm.8*
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_bindir}/applydeltaiso
107 %attr(755,root,root) %{_bindir}/fragiso
108 %attr(755,root,root) %{_bindir}/makedeltaiso
109 %{_mandir}/man8/applydeltaiso*
110 %{_mandir}/man8/makedeltaiso*
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_bindir}/drpmsync
115 %{_mandir}/man8/drpmsync*
117 %files -n python-deltarpm
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{py_sitedir}/_deltarpmmodule.so
120 %{py_sitedir}/deltarpm.py[co]