]> git.pld-linux.org Git - packages/rpm.git/blob - rpm.spec
- awful %%configure macro expansions removed,
[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:        32
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 Patch14:        %{name}-header_h.patch  
38 Patch15:        %{name}-fast-alAddPackage.patch
39 Patch16:        %{name}-byKey.patch
40 Patch17:        %{name}-perlprov.patch
41 Patch18:        %{name}-noperldir.patch
42 Patch19:        popt-cvs20010530.patch
43 Patch20:        %{name}-noexpand.patch
44 Patch37:        %{name}-short_circuit.patch
45 Patch38:        %{name}-section_test.patch
46 BuildRequires:  gettext-devel >= 0.10.38-3
47 BuildRequires:  automake
48 BuildRequires:  db3-devel >= 3.1.17-9
49 BuildRequires:  bzip2-devel >= 1.0.1
50 BuildRequires:  zlib-devel
51 BuildRequires:  gettext-devel >= 0.10.38-3
52 BuildRequires:  libtool
53 BuildRequires:  automake
54 BuildRequires:  autoconf >= 2.50
55 BuildRequires:  python-modules >= 2.2.1
56 BuildRequires:  zlib-devel >= 1.1.4
57 # Require static library only for static build
58 BuildRequires:  db3-static >= 3.1.17-9
59 BuildRequires:  bzip2-static >= 1.0.1
60 BuildRequires:  zlib-static
61 BuildRequires:  glibc-static >= 2.2.0
62 %endif
63 BuildRequires:  zlib-static >= 1.1.4
64 Obsoletes:      rpm-libs
65 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66 Obsoletes:      rpm-libs
67 %define __find_provides %{SOURCE4}
68 %define _binary_payload w9.gzdio
69 %define         __find_provides %{SOURCE4}
70 %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, '.')"`)
71
72 %description
73 RPM is a powerful package manager, which can be used to build,
74 install, query, verify, update, and uninstall individual software
75 packages. A package consists of an archive of files, and package
76 information, including name, version, and description.
77
78 %description -l de
79 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
80 Installation, Anfrage, Verifizierung, Aktualisierung und
81 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
82 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
83 nombre, versión y descripción.
84 RPM jest doskona³ym menad¿erem pakietów. Dziêki niemu bêdziesz móg³
85 %description -l pl
86 RPM jest doskona³ym mened¿erem pakietów. Dziêki niemu bêdziesz móg³
87 przebudowaæ, zainstalowaæ czy zweryfikowaæ dowolny pakiet. Informacje
88 dotycz±ce ka¿dego pakietu, takie jak jego opis, lista plików
89 wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
90 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
91 do pacote, permissões dos arquivos, etc.
92
93 %package devel
94 Summary(pl):    Pliki nag³ówkowe i biblioteki statyczne 
95 Summary(pl):    Pliki nag³ówkowe i biblioteki statyczne
96 Group(de):      Entwicklung/Libraries
97 Group(fr):      Development/Librairies
98 Group(pl):      Programowanie/Biblioteki
99 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
100 Group:          Development/Libraries
101 Requires:       %{name} = %{version}
102 Requires:       popt-devel
103
104 %description devel
105 The RPM packaging system includes a C library that makes it easy to
106 manipulate RPM packages and databases. It is intended to ease the
107 creation of graphical package managers and other tools that need
108 intimate knowledge of RPM packages.
109
110 %description devel -l de
111 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
112 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
113 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
114 herramientas que necesiten un conocimiento profundo de paquetes RPM.
115 Pliki nag³ówkowe i biblioteki statyczne.
116 graficznych mened¿erów pakietów oraz innych narzêdzi, które wymagaj±
117 ferramentas que precisem de conhecimento profundo de pacotes RPM.
118
119 %package static
120 Summary(pl):    Biblioteki statyczne rpm-a
121 Summary(pl):    Biblioteki statyczne RPM-a
122 Group(de):      Entwicklung/Libraries
123 Group(fr):      Development/Librairies
124 Group(pl):      Programowanie/Biblioteki
125 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
126 Group:          Development/Libraries
127 Requires:       %{name}-devel = %{version}
128
129 %description static
130 RPM static libraries.
131
132 %description static -l de
133 RPMs statische Libraries.
134 Biblioteki statyczne rpm-a.
135 %description static -l pl
136 Bibliotecas estáticas para desenvolvimento.
137
138 %package utils
139 Summary(pl):    Dodatkowe narzêdzia do zarz±dzania baz± rpm-a i pakietami
140 Summary(de):    Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
141 Group(de):      Applikationen/Datei
142 Group(pl):      Aplikacje/Pliki
143 Summary(pl):    Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
144 Group:          Applications/File
145 Requires:       %{name} = %{version}
146
147 %description utils
148 Additional utilities for managing rpm packages and database.
149
150 %description utils -l de
151 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
152 Dodatkowe narzêdzia do zarz±dzania baz± rpm-a i pakietami.
153 %description utils -l pl
154 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
155
156 %package perlprov
157 Summary(pl):    Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci dla skryptów perl w pakietach rpm
158 Summary(de):    Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
159 Group(de):      Applikationen/Datei
160 Group(pl):      Aplikacje/Pliki
161 Summary(pl):    Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
162 Group:          Applications/File
163 Requires:       perl-modules
164 Requires:       findutils
165
166 %description perlprov
167 Additional utilities for checking perl provides/requires in rpm
168 packages.
169
170 %description perlprov -l de
171 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
172 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci dla skryptów perl w
173 %description perlprov -l pl
174 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
175 Python para manipular pacotes e bancos de dados RPM.
176
177 %package build
178 Summary(pl):    Skrypty pomocnicze do budowania binarnych RPMów
179 Summary(pl):    Skrypty pomocnicze do budowania binarnych RPM-ów
180 Group(de):      Applikationen/Datei
181 Group(pl):      Aplikacje/Pliki
182 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
183 Group:          Applications/File
184 Requires:       sh-utils
185 Requires:       binutils
186 Requires:       patch
187 Requires:       texinfo
188 Requires:       file >= 3.31
189 Requires:       binutils
190 Requires:       gcc >= 3.0.3
191 Requires:       gcc
192 Requires:       diffutils
193 Requires:       libtool
194 Requires:       glibc-devel
195 Requires:       sed
196 Requires:       sed
197 Requires:       popt >= 1.6.2-2
198 Requires:       tar
199 Requires:       textutils
200
201 %description build
202 %description -l de build
203
204 %description build -l de
205 %description -l pl build
206 Skrypty pomocnicze do budowania binarnych RPMów.
207 %description build -l pl
208 construir pacotes usando o RPM.
209 %prep
210 %setup -q -a12
211 %patch0 -p1
212 %patch1 -p1
213 %patch2 -p1
214 %patch3 -p1
215 %patch4 -p1
216 %patch5 -p1
217 %patch6 -p1
218 %patch7 -p1
219 %patch8 -p1
220 %patch11 -p0
221 %patch12 -p0
222 %patch11 -p0
223 %patch12 -p0
224 %patch15 -p0
225 %patch16 -p0
226 %patch15 -p0
227 %patch16 -p0
228 %patch17 -p1
229 %patch18 -p1
230 %patch31 -p1
231 %patch36 -p1
232 cp platform.in macros.pld.in
233 %patch38 -p1
234 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
235 cp -f platform.in macros.pld.in
236 install %{SOURCE9} scripts/find-lang.sh
237 install %{SOURCE13} macros.python.in
238 install %{SOURCE6} scripts/find-perl-provides
239 install %{SOURCE7} scripts/find-perl-requires
240 install %{SOURCE9} scripts/find-lang.sh
241
242 (cd scripts;
243 mv -f perl.req perl.req.in
244 mv -f perl.prov perl.prov.in)
245 %build
246 awk -f %{SOURCE14} %{SOURCE1}
247
248 cd popt
249 autoconf
250 automake -a -c
251 aclocal
252 autoheader
253 %{__automake}
254 cd ..
255
256 rm -f missing
257 libtoolize --force --copy
258 autoconf
259 # ugly workaround for automake
260 sed -e 's#cpio.c $(DBLIBOBJS) depends.c#cpio.c depends.c#g' \
261         lib/Makefile.am > lib/Makefile.am.new
262 mv -f lib/Makefile.am.new lib/Makefile.am
263 automake -a -c
264 sed -e 's#cpio.c depends.c#cpio.c $(DBLIBOBJS) depends.c#g' \
265         lib/Makefile.in > lib/Makefile.in.new
266 mv -f lib/Makefile.in.new lib/Makefile.in
267 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' macros.in | \
268         sed 's|@host_cpu@|%{_target_cpu}|' > macros.tmp
269         --enable-v1-packages
270 %configure \
271         --enable-v1-packages \
272         --with-python
273
274
275 %{__make} %{?_without_static:rpm_LDFLAGS="\\$(myLDFLAGS)"}
276
277         DESTDIR="$RPM_BUILD_ROOT" \
278 rm -rf $RPM_BUILD_ROOT
279
280 %{__make} install \
281         pkgbindir="%{_bindir}"
282
283 install macros.perl $RPM_BUILD_ROOT%{_libdir}/rpm/macros.perl
284 install macros.python $RPM_BUILD_ROOT%{_libdir}/rpm/macros.python
285
286 install %{SOURCE1} doc/manual/groups
287 install %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/rpm/install-build-tree
288 install %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/rpm/find-spec-bcond
289 install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/rpm/find-provides
290 install %{SOURCE11} $RPM_BUILD_ROOT%{_libdir}/rpm/find-requires
291 install %{SOURCE15} $RPM_BUILD_ROOT%{_libdir}/rpm/compress-doc
292
293 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
294
295 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
296 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
297 # customized rpm macros - global for host
298 #
299 #%%_install_langs pl_PL:en_US
300 %%distribution PLD
301 EOF
302
303 %find_lang %{name}
304
305 gzip -9nf RPM-PGP-KEY CHANGES doc/manual/*
306
307 %clean
308 %clean
309 rm -rf $RPM_BUILD_ROOT
310
311 rm -rf $RPM_BUILD_ROOT
312
313 %post   -p /sbin/ldconfig
314 %postun -p /sbin/ldconfig
315
316 %attr(755,root,root) %{_libdir}/rpm/rpmdb
317 %attr(755,root,root) %{_libdir}/rpm/rpmq
318 %attr(755,root,root) %{_libdir}/rpm/rpmk
319 %attr(755,root,root) %{_libdir}/rpm/rpmv
320 %attr(755,root,root) %{_libdir}/librpm*.so.*.*
321 %attr(755,root,root) %{_libdir}/rpm/rpmdb
322 %attr(755,root,root) %{_libdir}/rpm/rpmq
323 %attr(755,root,root) %{_libdir}/rpm/rpmk
324 %attr(755,root,root) %{_libdir}/rpm/rpmv
325 %attr(755,root,root) %{_libdir}/librpm*.so.*.*
326 %{_mandir}/man8/rpm.8*
327 %lang(pl) %{_mandir}/pl/man8/rpm.8*
328 %lang(ja) %{_mandir}/ja/man8/rpm.8*
329 %lang(fr) %{_mandir}/fr/man8/rpm.8*
330 %lang(ja) %{_mandir}/ja/man8/rpm.8*
331 %lang(ko) %{_mandir}/ko/man8/rpm.8*
332 %lang(pl) %{_mandir}/pl/man8/rpm.8*
333 %lang(ru) %{_mandir}/ru/man8/rpm.8*
334 %lang(sk) %{_mandir}/sk/man8/rpm.8*
335
336 %dir /var/lib/rpm
337 %dir %{_libdir}/rpm
338
339 %{_libdir}/rpm/noarch-linux
340 %{_libdir}/rpm/noarch-pld-linux
341 %ifarch i386 i486 i586 i686
342 %{_libdir}/rpm/rpmpopt*
343 %{_libdir}/rpm/noarch-linux
344 %{_libdir}/rpm/noarch-pld-linux
345 %ifarch i386 i486 i586 i686 athlon
346 %{_libdir}/rpm/i?86*
347 %{_libdir}/rpm/athlon*
348 %endif
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.072732 seconds and 4 git commands to generate.