]>
Commit | Line | Data |
---|---|---|
ec871032 | 1 | Summary: Create deltas between rpms |
29b147f7 | 2 | Summary(pl.UTF-8): Generowanie różnic między pakietami rpm |
ec871032 | 3 | Name: deltarpm |
17c4044f | 4 | Version: 3.6 |
4bdab77e | 5 | Release: 2 |
ec871032 JS |
6 | License: BSD |
7 | Group: Base | |
803d1305 ER |
8 | Source0: ftp://ftp.suse.com/pub/projects/deltarpm/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 2cc2690bd1088cfc3238c25e59aaaec1 | |
e9ebb178 BZ |
10 | Patch0: %{name}-3.4-no-skip-doc.patch |
11 | Patch1: %{name}-3.4-pld.patch | |
0db6ec97 | 12 | Patch2: %{name}-rpm5.patch |
17c4044f | 13 | URL: http://www.novell.com/products/linuxpackages/opensuse/deltarpm.html |
29b147f7 | 14 | BuildRequires: bzip2-devel |
17c4044f ER |
15 | BuildRequires: popt-devel |
16 | BuildRequires: python-devel | |
29b147f7 | 17 | BuildRequires: rpm-devel |
17c4044f ER |
18 | BuildRequires: rpm-pythonprov |
19 | BuildRequires: rpmbuild(macros) >= 1.219 | |
20 | BuildRequires: xz-devel | |
e9ebb178 | 21 | BuildRequires: zlib-static |
29b147f7 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ec871032 JS |
23 | |
24 | %description | |
25 | A deltarpm contains the difference between an old and a new version of | |
26 | a rpm, which makes it possible to recreate the new rpm from the | |
27 | deltarpm and the old one. You don't have to have a copy of the old | |
28 | rpm, deltarpms can also work with installed rpms. | |
29 | ||
29b147f7 AG |
30 | %description -l pl.UTF-8 |
31 | Deltarpm zawiera różnice pomiędzy starą i nową wersją pakietu rpm, | |
5b29bdd5 JB |
32 | pozwalając na stworzenie nowej wersji na podstawie delty i starej |
33 | wersji. Nie jest konieczne posiadanie kopii starego pakietu rpm, | |
34 | deltarpm obsługuje także już zainstalowane pakiety. | |
29b147f7 | 35 | |
17c4044f ER |
36 | %package -n drpmsync |
37 | Summary: Sync a file tree with deltarpms | |
38 | Group: Base | |
39 | Requires: %{name} = %{version}-%{release} | |
9f363761 | 40 | Suggests: deltaiso |
17c4044f ER |
41 | |
42 | %description -n drpmsync | |
43 | This package contains a tool to sync a file tree with deltarpms. | |
44 | ||
45 | %package -n deltaiso | |
46 | Summary: Create deltas between isos containing rpms | |
47 | Group: Base | |
48 | Requires: %{name} = %{version}-%{release} | |
49 | ||
50 | %description -n deltaiso | |
51 | This package contains tools for creating and using deltasisos, a | |
52 | difference between an old and a new iso containing rpms. | |
53 | ||
54 | %package -n python-deltarpm | |
55 | Summary: Python bindings for deltarpm | |
56 | Group: Base | |
8ac71a9c | 57 | # does not require base package |
17c4044f ER |
58 | |
59 | %description -n python-deltarpm | |
60 | This package contains python bindings for deltarpm. | |
61 | ||
ec871032 | 62 | %prep |
803d1305 | 63 | %setup -q |
e9ebb178 | 64 | %patch0 -p1 |
29b147f7 | 65 | %patch1 -p1 |
a37405e2 | 66 | %patch2 -p1 |
ec871032 | 67 | |
17c4044f ER |
68 | %{__sed} -i -e 's/python3//' Makefile |
69 | ||
ec871032 | 70 | %build |
17c4044f ER |
71 | %{__make} CC="%{__cc}" CFLAGS="%{rpmcflags} -I/usr/include/rpm" \ |
72 | bindir=%{_bindir} libdir=%{_libdir} mandir=%{_mandir} prefix=%{_prefix} \ | |
73 | zlibbundled='' zlibldflags='-lz' zlibcppflags='' | |
74 | ||
75 | %{__make} CC="%{__cc}" CFLAGS="%{rpmcflags}" \ | |
76 | bindir=%{_bindir} libdir=%{_libdir} mandir=%{_mandir} prefix=%{_prefix} \ | |
77 | zlibbundled='' zlibldflags='-lz' zlibcppflags='' \ | |
78 | python | |
ec871032 JS |
79 | |
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | %{__make} install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
17c4044f ER |
85 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
86 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
87 | %py_postclean | |
88 | ||
ec871032 JS |
89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
94 | %doc LICENSE.BSD README | |
17c4044f ER |
95 | %attr(755,root,root) %{_bindir}/applydeltarpm |
96 | %attr(755,root,root) %{_bindir}/combinedeltarpm | |
97 | %attr(755,root,root) %{_bindir}/makedeltarpm | |
98 | %attr(755,root,root) %{_bindir}/rpmdumpheader | |
99 | %{_mandir}/man8/applydeltarpm.8* | |
100 | %{_mandir}/man8/combinedeltarpm.8* | |
101 | %{_mandir}/man8/makedeltarpm.8* | |
102 | ||
103 | %files -n deltaiso | |
104 | %defattr(644,root,root,755) | |
105 | %attr(755,root,root) %{_bindir}/applydeltaiso | |
106 | %attr(755,root,root) %{_bindir}/fragiso | |
107 | %attr(755,root,root) %{_bindir}/makedeltaiso | |
108 | %{_mandir}/man8/applydeltaiso* | |
803d1305 | 109 | %{_mandir}/man8/fragiso.8* |
17c4044f ER |
110 | %{_mandir}/man8/makedeltaiso* |
111 | ||
112 | %files -n drpmsync | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_bindir}/drpmsync | |
115 | %{_mandir}/man8/drpmsync* | |
116 | ||
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] |