]> git.pld-linux.org Git - packages/rpm.git/blob - rpm.spec
- patch noexpand is back again, removed noexpanding %description
[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:        31
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 wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów s±
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 %description -l de devel
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 %description -l pl devel
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 %description -l de static
131
132 %description static -l de
133 %description -l pl static
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 %description -l de utils
149
150 %description utils -l de
151 %description -l pl utils
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 %description -l de perlprov
169
170 %description perlprov -l de
171 %description -l pl perlprov
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 %setup  -q
210 %prep
211 %setup -q -a12
212 %patch0 -p1
213 %patch1 -p1
214 %patch2 -p1
215 %patch3 -p1
216 %patch4 -p1
217 %patch5 -p1
218 %patch6 -p1
219 %patch7 -p1
220 %patch8 -p1
221 %patch11 -p0
222 %patch12 -p0
223 %patch11 -p0
224 %patch12 -p0
225 %patch15 -p0
226 %patch16 -p0
227 %patch15 -p0
228 %patch16 -p0
229 %patch17 -p1
230 %patch18 -p1
231 %patch31 -p1
232 %patch36 -p1
233 cp platform.in macros.pld.in
234 %patch38 -p1
235 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
236 cp -f platform.in macros.pld.in
237 install %{SOURCE9} scripts/find-lang.sh
238 install %{SOURCE13} macros.python.in
239 (cd scripts; 
240 install %{SOURCE7} scripts/find-perl-requires
241 install %{SOURCE9} scripts/find-lang.sh
242
243 (cd scripts;
244 mv -f perl.req perl.req.in
245 mv -f perl.prov perl.prov.in)
246
247 %build
248 awk -f %{SOURCE14} %{SOURCE1}
249
250 cd popt
251 autoconf
252 automake -a -c
253 aclocal
254 autoheader
255 %{__automake}
256 cd ..
257
258 rm -f missing
259 libtoolize --force --copy
260 autoconf
261 # ugly workaround for automake
262 sed -e 's#cpio.c $(DBLIBOBJS) depends.c#cpio.c depends.c#g' \
263         lib/Makefile.am > lib/Makefile.am.new
264 mv -f lib/Makefile.am.new lib/Makefile.am
265 automake -a -c
266 sed -e 's#cpio.c depends.c#cpio.c $(DBLIBOBJS) depends.c#g' \
267         lib/Makefile.in > lib/Makefile.in.new
268 mv -f lib/Makefile.in.new lib/Makefile.in
269 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' macros.in | \
270         sed 's|@host_cpu@|%{_target_cpu}|' > macros.tmp
271         --enable-v1-packages
272 %configure \
273         --enable-v1-packages \
274         --with-python
275
276
277 %{__make} %{?_without_static:rpm_LDFLAGS="\\$(myLDFLAGS)"}
278
279         DESTDIR="$RPM_BUILD_ROOT" \
280 rm -rf $RPM_BUILD_ROOT
281
282 %{__make} install \
283         pkgbindir="%{_bindir}"
284
285 install macros.perl $RPM_BUILD_ROOT%{_libdir}/rpm/macros.perl
286 install macros.python $RPM_BUILD_ROOT%{_libdir}/rpm/macros.python
287
288 install %{SOURCE1} doc/manual/groups
289 install %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/rpm/install-build-tree
290 install %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/rpm/find-spec-bcond
291 install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/rpm/find-provides
292 install %{SOURCE11} $RPM_BUILD_ROOT%{_libdir}/rpm/find-requires
293 install %{SOURCE15} $RPM_BUILD_ROOT%{_libdir}/rpm/compress-doc
294
295 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
296
297 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
298 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
299 # customized rpm macros - global for host
300 #
301 #%%_install_langs pl_PL:en_US
302 %%distribution PLD
303 EOF
304
305 %find_lang %{name}
306
307 %post   -p /sbin/ldconfig
308
309 %clean
310 %clean
311 rm -rf $RPM_BUILD_ROOT
312
313 rm -rf $RPM_BUILD_ROOT
314
315 %post   -p /sbin/ldconfig
316 %postun -p /sbin/ldconfig
317
318 %attr(755,root,root) %{_libdir}/rpm/rpmdb
319 %attr(755,root,root) %{_libdir}/rpm/rpmq
320 %attr(755,root,root) %{_libdir}/rpm/rpmk
321 %attr(755,root,root) %{_libdir}/rpm/rpmv
322 %attr(755,root,root) %{_libdir}/librpm*.so.*.*
323 %attr(755,root,root) %{_libdir}/rpm/rpmdb
324 %attr(755,root,root) %{_libdir}/rpm/rpmq
325 %attr(755,root,root) %{_libdir}/rpm/rpmk
326 %attr(755,root,root) %{_libdir}/rpm/rpmv
327 %attr(755,root,root) %{_libdir}/librpm*.so.*.*
328 %{_mandir}/man8/rpm.8*
329 %lang(pl) %{_mandir}/pl/man8/rpm.8*
330 %lang(ja) %{_mandir}/ja/man8/rpm.8*
331 %lang(fr) %{_mandir}/fr/man8/rpm.8*
332 %lang(ja) %{_mandir}/ja/man8/rpm.8*
333 %lang(ko) %{_mandir}/ko/man8/rpm.8*
334 %lang(pl) %{_mandir}/pl/man8/rpm.8*
335 %lang(ru) %{_mandir}/ru/man8/rpm.8*
336 %lang(sk) %{_mandir}/sk/man8/rpm.8*
337
338 %dir /var/lib/rpm
339 %dir %{_libdir}/rpm
340
341 %{_libdir}/rpm/noarch-linux
342 %{_libdir}/rpm/noarch-pld-linux
343 %ifarch i386 i486 i586 i686
344 %{_libdir}/rpm/rpmpopt*
345 %{_libdir}/rpm/noarch-linux
346 %{_libdir}/rpm/noarch-pld-linux
347 %ifarch i386 i486 i586 i686 athlon
348 %{_libdir}/rpm/i?86*
349 %{_libdir}/rpm/athlon*
350 %endif
351 %ifarch sparc sparc64
352 %endif
353 %ifarch ppc
354 %{_libdir}/rpm/ppc*
355 %defattr(644,root,root,755)
356 %attr(755,root,root) %{_bindir}/rpmbuild
357 %attr(755,root,root) %{_bindir}/rpme
358 %attr(755,root,root) %{_bindir}/rpmi
359 %attr(755,root,root) %{_bindir}/rpmu
360 %attr(755,root,root) %{_libdir}/rpm/find-requires
361 %attr(755,root,root) %{_libdir}/rpm/find-provides
362 %attr(755,root,root) %{_libdir}/rpm/find-rpm-provides
363 %attr(755,root,root) %{_libdir}/rpm/find-spec-bcond
364 %attr(755,root,root) %{_libdir}/rpm/find-lang.sh
365 %attr(755,root,root) %{_libdir}/rpm/mkinstalldirs
366 %attr(755,root,root) %{_libdir}/rpm/getpo.sh
367 %attr(755,root,root) %{_libdir}/rpm/install-build-tree
368 %attr(755,root,root) %{_libdir}/rpm/brp-*
369 %attr(755,root,root) %{_libdir}/rpm/check-prereqs
370 %attr(755,root,root) %{_libdir}/rpm/compress-doc
371 %attr(755,root,root) %{_libdir}/rpm/cpanflute
372 %attr(755,root,root) %{_libdir}/rpm/http.req
373 %attr(755,root,root) %{_libdir}/rpm/magic.*
374 %attr(755,root,root) %{_libdir}/rpm/rpmi
375 %attr(755,root,root) %{_libdir}/rpm/u_pkg.sh
376 %attr(755,root,root) %{_libdir}/rpm/rpme
377 %attr(755,root,root) %{_libdir}/rpm/rpmu
378 %attr(755,root,root) %{_libdir}/rpm/rpmb
379 %attr(755,root,root) %{_libdir}/rpm/rpmi
380 %attr(755,root,root) %{_libdir}/rpm/rpmt
381 %attr(755,root,root) %{_libdir}/rpm/rpme
382 %attr(755,root,root) %{_libdir}/librpm*.la
383 %attr(755,root,root) %{_libdir}/librpm*.so
384 %files devel
385 %defattr(644,root,root,755)
386 %{_includedir}/rpm
387 %attr(755,root,root) %{_libdir}/librpm*.la
388 %attr(755,root,root) %{_libdir}/librpm*.so
389
390 %files static
391 %attr(755,root,root) %{_bindir}/*
392 %files utils
393 %defattr(644,root,root,755)
394 %{_mandir}/man1/*
395 %{_mandir}/man8/rpm2cpio.8*
396 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
397 %{_mandir}/man1/*
398 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
399 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
400 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
401 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
402
403 %files perlprov
404 %defattr(644,root,root,755)
405 %attr(755,root,root) %{_libdir}/rpm/perl*
406 %attr(755,root,root) %{_libdir}/rpm/find-perl-*
407 %attr(755,root,root) %{_libdir}/rpm/find-*.perl
408 %attr(755,root,root) %{_libdir}/rpm/find-prov.pl
409
410 %files -n python-rpm
411 * %{date} PLD Team <pld-list@pld.org.pl>
412 %{py_sitedir}/*.so
This page took 0.095593 seconds and 4 git commands to generate.