]> git.pld-linux.org Git - packages/rpm.git/blob - rpm.spec
- release 15
[packages/rpm.git] / rpm.spec
1 Summary:        Red Hat (and now also PLD) Package Manager
2 Summary(de):    Red Hat (und jetzt auch PLD) Packet-Manager
3 Summary(pl):    Aplikacja do zarz±dzania pakietami
4 Name:           rpm
5 Version:        4.0.2
6 Release:        15
7 License:        GPL
8 Group:          Base
9 Group(de):      Gründsätzlich
10 Group(pl):      Podstawowe
11 Source0:        ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/%{name}-%{version}.tar.gz
12 Source1:        %{name}.groups
13 Source2:        %{name}.macros
14 Source3:        %{name}-install-tree
15 Source4:        %{name}-find-rpm-provides
16 Source5:        %{name}-macros.perl
17 Source6:        %{name}-find-perl-provides
18 Source7:        %{name}-find-perl-requires
19 Source8:        %{name}-find-spec-bcond
20 Source9:        %{name}-find-lang
21 Source10:       %{name}-find-provides
22 Source11:       %{name}-find-requires
23 Patch0:         %{name}-rpmrc.patch
24 Patch1:         %{name}-macros.patch
25 Patch2:         %{name}-arch.patch
26 Patch3:         %{name}-rpmpopt.patch
27 Patch4:         %{name}-perl-macros.patch
28 Patch5:         %{name}-db3.patch
29 Patch6:         %{name}-segv.patch
30 Patch7:         %{name}-am_fix.patch
31 Patch8:         %{name}-perl-req-perlfile.patch
32 Patch9:         %{name}-installplatform.patch
33 Patch10:        %{name}-cache.patch
34 Patch11:        %{name}-suggestions.patch
35 Patch12:        %{name}-rh-lame.patch
36 Patch13:        %{name}-glob.patch
37 Patch37:        %{name}-short_circuit.patch
38 Patch38:        %{name}-section_test.patch
39 BuildRequires:  gettext-devel
40 BuildRequires:  automake
41 BuildRequires:  db3-devel >= 3.1.17-9
42 BuildRequires:  bzip2-devel >= 1.0.1
43 BuildRequires:  gdbm-devel
44 BuildRequires:  zlib-devel
45 BuildRequires:  gettext-devel >= 0.10.38-3
46 BuildRequires:  libtool
47 BuildRequires:  automake
48 BuildRequires:  autoconf >= 2.13-8
49 %if %{!?bcond_off_static:1}%{?bcond_off_static:0}
50 BuildRequires:  zlib-devel >= 1.1.4
51 # Require static library only for static build
52 BuildRequires:  db3-static >= 3.1.17-9
53 BuildRequires:  bzip2-static >= 1.0.1
54 BuildRequires:  gdbm-static
55 BuildRequires:  zlib-static
56 %endif
57 BuildRequires:  zlib-static >= 1.1.4
58 Obsoletes:      rpm-libs
59 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60 Obsoletes:      rpm-libs
61 %define __find_provides %{SOURCE4}
62 %define _binary_payload w9.gzdio
63 %define         __find_provides %{SOURCE4}
64 %define         pyrequires_eq() Requires:       %1 >= %py_ver %1 < %(echo `python -c "import sys; import string; ver=sys.version[:3].split('.'); ver[1]=str(int(ver[1])+1); print string.join(ver, '.')"`)
65
66 %description
67 RPM is a powerful package manager, which can be used to build,
68 install, query, verify, update, and uninstall individual software
69 packages. A package consists of an archive of files, and package
70 information, including name, version, and description.
71
72 %description -l de
73 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
74 Installation, Anfrage, Verifizierung, Aktualisierung und
75 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
76 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
77 nombre, versión y descripción.
78 RPM jest doskona³ym menad¿erem pakietów. Dziêki niemu bêdziesz móg³
79 %description -l pl
80 RPM jest doskona³ym mened¿erem pakietów. Dziêki niemu bêdziesz móg³
81 wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów s±
82 przechowywane s± w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
83 wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
84 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
85 do pacote, permissões dos arquivos, etc.
86
87 %package devel
88 Summary(pl):    Pliki nag³ówkowe i biblioteki statyczne 
89 Summary(pl):    Pliki nag³ówkowe i biblioteki statyczne
90 Group(de):      Entwicklung/Libraries
91 Group(fr):      Development/Librairies
92 Group(pl):      Programowanie/Biblioteki
93 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
94 Group:          Development/Libraries
95 Requires:       %{name} = %{version}
96 Requires:       popt-devel
97
98 %description devel
99 The RPM packaging system includes a C library that makes it easy to
100 manipulate RPM packages and databases. It is intended to ease the
101 creation of graphical package managers and other tools that need
102 %description -l de devel
103
104 %description devel -l de
105 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
106 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
107 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
108 %description -l pl devel
109 Pliki nag³ówkowe i biblioteki statyczne.
110 graficznych mened¿erów pakietów oraz innych narzêdzi, które wymagaj±
111 ferramentas que precisem de conhecimento profundo de pacotes RPM.
112
113 %package static
114 Summary(pl):    Biblioteki statyczne rpm-a
115 Summary(pl):    Biblioteki statyczne RPM-a
116 Group(de):      Entwicklung/Libraries
117 Group(fr):      Development/Librairies
118 Group(pl):      Programowanie/Biblioteki
119 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
120 Group:          Development/Libraries
121 Requires:       %{name}-devel = %{version}
122
123 %description static
124 %description -l de static
125
126 %description static -l de
127 %description -l pl static
128 Biblioteki statyczne rpm-a.
129 %description static -l pl
130 Bibliotecas estáticas para desenvolvimento.
131
132 %package utils
133 Summary(pl):    Dodatkowe narzêdzia do zarz±dzania baz± rpm-a i pakietami
134 Summary(de):    Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
135 Group(de):      Applikationen/Datei
136 Group(pl):      Aplikacje/Pliki
137 Summary(pl):    Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
138 Group:          Applications/File
139 Requires:       %{name} = %{version}
140
141 %description utils
142 %description -l de utils
143
144 %description utils -l de
145 %description -l pl utils
146 Dodatkowe narzêdzia do zarz±dzania baz± rpm-a i pakietami.
147 %description utils -l pl
148 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
149
150 %package perlprov
151 Summary(pl):    Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci dla skryptów perl w pakietach rpm
152 Summary(de):    Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
153 Group(de):      Applikationen/Datei
154 Group(pl):      Aplikacje/Pliki
155 Summary(pl):    Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
156 Requires:       perl-modules
157 Requires:       findutils
158
159 %description perlprov
160 Additional utilities for checking perl provides/requires in rpm
161 %description -l de perlprov
162
163 %description perlprov -l de
164 %description -l pl perlprov
165 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci dla skryptów perl w
166 %description perlprov -l pl
167 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
168 Python para manipular pacotes e bancos de dados RPM.
169
170 %package build
171 Summary(pl):    Skrypty pomocnicze do budowania binarnych RPMów
172 Summary(pl):    Skrypty pomocnicze do budowania binarnych RPM-ów
173 Group(de):      Applikationen/Datei
174 Group(pl):      Aplikacje/Pliki
175 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
176 Group:          Applications/File
177 Requires:       sh-utils
178 Requires:       binutils
179 Requires:       patch
180 Requires:       texinfo
181 Requires:       file >= 3.31
182 Requires:       binutils
183 Requires:       gcc >= 3.0.3
184 Requires:       gcc
185 Requires:       diffutils
186 Requires:       libtool
187 Requires:       glibc-devel
188 Requires:       sed
189 Requires:       sed
190 Requires:       tar
191 Requires:       textutils
192
193 %description build
194 %description -l de build
195
196 %description build -l de
197 %description -l pl build
198 Skrypty pomocnicze do budowania binarnych RPMów.
199 %description build -l pl
200 construir pacotes usando o RPM.
201 %setup  -q
202 %prep
203 %setup -q -a12
204 %patch0 -p1
205 %patch1 -p1
206 %patch4 -p1 
207 %patch3 -p1
208 %patch4 -p1
209 %patch5 -p1
210 %patch6 -p1
211 %patch7 -p1
212 %patch8 -p1
213 %patch11 -p0
214 %patch12 -p0
215 %patch11 -p0
216 %patch31 -p1
217 install %{SOURCE2} macros.pld.in
218 %patch38 -p1
219 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
220 cp -f platform.in macros.pld.in
221 install %{SOURCE9} scripts/find-lang.sh
222 install %{SOURCE13} macros.python.in
223 (cd scripts; 
224 install %{SOURCE7} scripts/find-perl-requires
225 install %{SOURCE9} scripts/find-lang.sh
226
227 (cd scripts;
228 mv -f perl.req perl.req.in
229 mv -f perl.prov perl.prov.in)
230
231 (cd popt;
232  libtoolize --force --copy
233  aclocal
234  autoheader
235  autoconf
236  automake -a -c)
237 autoheader
238 %{__automake}
239 cd ..
240
241 autoheader
242 autoconf
243 # ugly workaround for automake
244 sed -e 's#cpio.c $(DBLIBOBJS) depends.c#cpio.c depends.c#g' \
245         lib/Makefile.am > lib/Makefile.am.new
246 mv -f lib/Makefile.am.new lib/Makefile.am
247 automake -a -c
248 sed -e 's#cpio.c depends.c#cpio.c $(DBLIBOBJS) depends.c#g' \
249         lib/Makefile.in > lib/Makefile.in.new
250 mv -f lib/Makefile.in.new lib/Makefile.in
251 %configure \
252         sed 's|@host_cpu@|%{_target_cpu}|' > macros.tmp
253         --enable-v1-packages
254 %configure \
255 %{__make} %{?bcond_off_static:rpm_LDFLAGS="\\$(myLDFLAGS)"}
256 sed -e 's/#include <rpmio\.h>/#include <rpmio\/rpmio\.h>/g' lib/header.h > lib/header.h.new
257 mv -f lib/header.h.new lib/header.h
258         --with-python
259
260
261 %{__make} %{?_without_static:rpm_LDFLAGS="\\$(myLDFLAGS)"}
262
263         DESTDIR="$RPM_BUILD_ROOT" \
264 rm -rf $RPM_BUILD_ROOT
265
266 install macros.pld $RPM_BUILD_ROOT%{_libdir}/rpm/macros.pld
267 %{__make} install \
268         pkgbindir="%{_bindir}"
269
270 install macros.perl $RPM_BUILD_ROOT%{_libdir}/rpm/macros.perl
271 install macros.python $RPM_BUILD_ROOT%{_libdir}/rpm/macros.python
272
273 install %{SOURCE1} doc/manual/groups
274 install %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/rpm/install-build-tree
275 install %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/rpm/find-spec-bcond
276 install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/rpm/find-provides
277 install %{SOURCE11} $RPM_BUILD_ROOT%{_libdir}/rpm/find-requires
278 install %{SOURCE15} $RPM_BUILD_ROOT%{_libdir}/rpm/compress-doc
279
280 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
281
282 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
283 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
284 # customized rpm macros - global for host
285 #
286 #%%_install_langs pl_PL:en_US
287 %%distribution PLD
288 EOF
289
290 %find_lang %{name}
291
292 %post   -p /sbin/ldconfig
293
294 %clean
295 %clean
296 rm -rf $RPM_BUILD_ROOT
297
298 rm -rf $RPM_BUILD_ROOT
299
300 %post   -p /sbin/ldconfig
301 %postun -p /sbin/ldconfig
302
303 %attr(755,root,root) %{_libdir}/rpm/rpmdb
304 %attr(755,root,root) %{_libdir}/rpm/rpmq
305 %attr(755,root,root) %{_libdir}/rpm/rpmk
306 %attr(755,root,root) %{_libdir}/rpm/rpmv
307 %attr(755,root,root) %{_libdir}/librpm*.so.*.*
308 %attr(755,root,root) %{_libdir}/rpm/rpmdb
309 %attr(755,root,root) %{_libdir}/rpm/rpmq
310 %attr(755,root,root) %{_libdir}/rpm/rpmk
311 %attr(755,root,root) %{_libdir}/rpm/rpmv
312 %attr(755,root,root) %{_libdir}/librpm*.so.*.*
313 %{_mandir}/man8/rpm.8*
314 %lang(pl) %{_mandir}/pl/man8/rpm.8*
315 %lang(ja) %{_mandir}/ja/man8/rpm.8*
316 %lang(fr) %{_mandir}/fr/man8/rpm.8*
317 %lang(ja) %{_mandir}/ja/man8/rpm.8*
318 %lang(ko) %{_mandir}/ko/man8/rpm.8*
319 %lang(pl) %{_mandir}/pl/man8/rpm.8*
320 %lang(ru) %{_mandir}/ru/man8/rpm.8*
321 %lang(sk) %{_mandir}/sk/man8/rpm.8*
322
323 %dir /var/lib/rpm
324 %dir %{_libdir}/rpm
325
326 %{_libdir}/rpm/macros.pld
327 %{_libdir}/rpm/noarch-linux
328 %{_libdir}/rpm/noarch-pld-linux
329 %ifarch i386 i486 i586 i686
330 %{_libdir}/rpm/i386-pld-linux
331 %endif
332 %ifarch i486 i586 i686
333 %{_libdir}/rpm/i486-pld-linux
334 %endif
335 %ifarch i586 i686
336 %{_libdir}/rpm/i586-pld-linux
337 %endif
338 %ifarch i686
339 %{_libdir}/rpm/i686-pld-linux
340 %{_libdir}/rpm/noarch-linux
341 %{_libdir}/rpm/noarch-pld-linux
342 %{_libdir}/rpm/sparc-pld-linux
343 %endif
344 %ifarch sparc64
345 %{_libdir}/rpm/sparc64-pld-linux
346 %{_libdir}/rpm/i?86*
347 %{_libdir}/rpm/athlon*
348 %{_libdir}/rpm/alpha-pld-linux
349 %ifarch sparc sparc64
350 %endif
351 %ifarch ppc
352 %{_libdir}/rpm/ppc*
353 %defattr(644,root,root,755)
354 %attr(755,root,root) %{_bindir}/rpmbuild
355 %attr(755,root,root) %{_bindir}/rpme
356 %attr(755,root,root) %{_bindir}/rpmi
357 %attr(755,root,root) %{_bindir}/rpmu
358 %attr(755,root,root) %{_libdir}/rpm/find-requires
359 %attr(755,root,root) %{_libdir}/rpm/find-provides
360 %attr(755,root,root) %{_libdir}/rpm/find-rpm-provides
361 %attr(755,root,root) %{_libdir}/rpm/find-spec-bcond
362 %attr(755,root,root) %{_libdir}/rpm/find-lang.sh
363 %attr(755,root,root) %{_libdir}/rpm/mkinstalldirs
364 %attr(755,root,root) %{_libdir}/rpm/getpo.sh
365 %attr(755,root,root) %{_libdir}/rpm/install-build-tree
366 %attr(755,root,root) %{_libdir}/rpm/brp-*
367 %attr(755,root,root) %{_libdir}/rpm/check-prereqs
368 %attr(755,root,root) %{_libdir}/rpm/compress-doc
369 %attr(755,root,root) %{_libdir}/rpm/cpanflute
370 %attr(755,root,root) %{_libdir}/rpm/http.req
371 %attr(755,root,root) %{_libdir}/rpm/magic.*
372 %attr(755,root,root) %{_libdir}/rpm/rpmi
373 %attr(755,root,root) %{_libdir}/rpm/u_pkg.sh
374 %attr(755,root,root) %{_libdir}/rpm/rpme
375 %attr(755,root,root) %{_libdir}/rpm/rpmu
376 %attr(755,root,root) %{_libdir}/rpm/rpmb
377 %attr(755,root,root) %{_libdir}/rpm/rpmi
378 %attr(755,root,root) %{_libdir}/rpm/rpmt
379 %attr(755,root,root) %{_libdir}/rpm/rpme
380 %attr(755,root,root) %{_libdir}/librpm*.la
381 %attr(755,root,root) %{_libdir}/librpm*.so
382 %files devel
383 %defattr(644,root,root,755)
384 %{_includedir}/rpm
385 %attr(755,root,root) %{_libdir}/librpm*.la
386 %attr(755,root,root) %{_libdir}/librpm*.so
387
388 %files static
389 %attr(755,root,root) %{_bindir}/*
390 %files utils
391 %defattr(644,root,root,755)
392 %{_mandir}/man1/*
393 %{_mandir}/man8/rpm2cpio.8*
394 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
395 %{_mandir}/man1/*
396 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
397 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
398 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
399 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
400
401 %files perlprov
402 %defattr(644,root,root,755)
403 %attr(755,root,root) %{_libdir}/rpm/perl*
404 %attr(755,root,root) %{_libdir}/rpm/find-perl-*
405 %attr(755,root,root) %{_libdir}/rpm/find-*.perl
406 %attr(755,root,root) %{_libdir}/rpm/find-prov.pl
407
408 %files -n python-rpm
409 * %{date} PLD Team <pld-list@pld.org.pl>
410 %{py_sitedir}/*.so
This page took 0.083332 seconds and 4 git commands to generate.