3 %bcond_without python3 # CPython3 module
4 %bcond_with rpm5 # build with rpm5
6 Summary: Create deltas between rpms
7 Summary(pl.UTF-8): Generowanie różnic między pakietami rpm
13 #Source0Download: https://github.com/rpm-software-management/deltarpm/releases
14 Source0: https://github.com/rpm-software-management/deltarpm/archive/%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5: c48086229bdfcf5af890f104231180c6
16 Patch0: %{name}-3.4-no-skip-doc.patch
17 Patch1: %{name}-3.4-pld.patch
18 Patch2: %{name}-rpm5.patch
19 Patch3: python-install.patch
20 URL: https://github.com/rpm-software-management/deltarpm
21 BuildRequires: bzip2-devel
22 BuildRequires: popt-devel
23 BuildRequires: python-devel >= 2
24 %{?with_python3:BuildRequires: python3-devel >= 1:3.2}
25 BuildRequires: rpm-devel
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.507
28 BuildRequires: xz-devel
29 BuildRequires: zlib-static
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 A deltarpm contains the difference between an old and a new version of
34 a rpm, which makes it possible to recreate the new rpm from the
35 deltarpm and the old one. You don't have to have a copy of the old
36 rpm, deltarpms can also work with installed rpms.
38 %description -l pl.UTF-8
39 Deltarpm zawiera różnice pomiędzy starą i nową wersją pakietu RPM,
40 pozwalając na stworzenie nowej wersji na podstawie delty i starej
41 wersji. Nie jest konieczne posiadanie kopii starego pakietu RPM,
42 deltarpm obsługuje także już zainstalowane pakiety.
45 Summary: Sync a file tree with deltarpms
46 Summary(pl.UTF-8): Synchronizacja drzewa plików deltarpm
48 Requires: %{name} = %{version}-%{release}
51 %description -n drpmsync
52 This package contains a tool to sync a file tree with deltarpms.
54 %description -n drpmsync -l pl.UTF-8
55 Ten pakiet zawiera narzędzie do synchronizacji drzewa plików deltarpm.
58 Summary: Create deltas between isos containing rpms
59 Summary(pl.UTF-8): Tworzenie różnic między obrazami ISO zawierającymi pakiety RPM
61 Requires: %{name} = %{version}-%{release}
63 %description -n deltaiso
64 This package contains tools for creating and using deltaisos, a
65 difference between an old and a new iso containing rpms.
67 %description -n deltaiso -l pl.UTF-8
68 Ten pakiet zawiera narzędzia do tworzenia i wykorzystywania plików
69 deltaiso - różnic między starymi a nowymi obrazami ISO zawierającymi
72 %package -n python-deltarpm
73 Summary: Python 2 bindings for deltarpm
74 Summary(pl.UTF-8): Wiązania Pythona 2 do deltarpm
75 Group: Libraries/Python
76 # does not require base package
78 %description -n python-deltarpm
79 This package contains Python 2 bindings for deltarpm.
81 %description -n python-deltarpm -l pl.UTF-8
82 Ten pakiet zawiera wiązania Pythona 2 do deltarpm.
84 %package -n python3-deltarpm
85 Summary: Python 3 bindings for deltarpm
86 Summary(pl.UTF-8): Wiązania Pythona 3 do deltarpm
87 Group: Libraries/Python
88 # does not require base package
90 %description -n python3-deltarpm
91 This package contains Python 3 bindings for deltarpm.
93 %description -n python3-deltarpm -l pl.UTF-8
94 Ten pakiet zawiera wiązania Pythona 3 do deltarpm.
100 %{?with_rpm5:%patch2 -p1}
103 %if %{without python3}
104 %{__sed} -i -e 's/python3//' Makefile
110 CFLAGS="%{rpmcflags} -I/usr/include/rpm -D_GNU_SOURCE" \
121 CFLAGS="%{rpmcflags}" \
131 rm -rf $RPM_BUILD_ROOT
133 DESTDIR=$RPM_BUILD_ROOT
135 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
136 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
139 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
140 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
144 rm -rf $RPM_BUILD_ROOT
147 %defattr(644,root,root,755)
148 %doc LICENSE.BSD README
149 %attr(755,root,root) %{_bindir}/applydeltarpm
150 %attr(755,root,root) %{_bindir}/combinedeltarpm
151 %attr(755,root,root) %{_bindir}/makedeltarpm
152 %attr(755,root,root) %{_bindir}/rpmdumpheader
153 %{_mandir}/man8/applydeltarpm.8*
154 %{_mandir}/man8/combinedeltarpm.8*
155 %{_mandir}/man8/makedeltarpm.8*
158 %defattr(644,root,root,755)
159 %attr(755,root,root) %{_bindir}/applydeltaiso
160 %attr(755,root,root) %{_bindir}/fragiso
161 %attr(755,root,root) %{_bindir}/makedeltaiso
162 %{_mandir}/man8/applydeltaiso.8*
163 %{_mandir}/man8/fragiso.8*
164 %{_mandir}/man8/makedeltaiso.8*
167 %defattr(644,root,root,755)
168 %attr(755,root,root) %{_bindir}/drpmsync
169 %{_mandir}/man8/drpmsync.8*
171 %files -n python-deltarpm
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{py_sitedir}/_deltarpmmodule.so
174 %{py_sitedir}/deltarpm.py[co]
177 %files -n python3-deltarpm
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{py3_sitedir}/_deltarpmmodule.so
180 %{py3_sitedir}/deltarpm.py
181 %{py3_sitedir}/__pycache__/deltarpm.cpython-*.py[co]