]> git.pld-linux.org Git - packages/rpm.git/blob - rpm.spec
- head poldek has distver on, so head rpm should too
[packages/rpm.git] / rpm.spec
1 #
2 # TODO:
3 # - consider using system libmagic not internal libfmagic
4 #   (but internal has different method of passing output)
5 # - after ac drop amd64 patch and make x86_64 generic arch + subarchs amd64 and ia32e
6
7 # Conditional build:
8 %bcond_with     static  # build static rpmi (not supported at the moment)
9 %bcond_without  apidocs # don't generate documentation with doxygen
10 %bcond_without  pkgnameinautoreq        # don't put package name in autogenerated dependancy
11 %bcond_without  python  # don't build python bindings
12 %bcond_without  selinux # dont enable selinux support
13 # force_cc              - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
14 # force_cxx             - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
15 # force_cpp             - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
16
17 %define snap    20040614
18 # versions of required libraries
19 %define reqdb_ver       4.2.50-1
20 %define reqpopt_ver     1.9
21 %define beecrypt_ver    2:4.0.0
22 %define rpm_macros_rev  1.162
23 Summary:        RPM Package Manager
24 Summary(de):    RPM Packet-Manager
25 Summary(es):    Gestor de paquetes RPM
26 Summary(pl):    Aplikacja do zarz±dzania pakietami RPM
27 Summary(pt_BR): Gerenciador de pacotes RPM
28 Summary(ru):    íÅÎÅÄÖÅÒ ÐÁËÅÔÏ× ÏÔ RPM
29 Summary(uk):    íÅÎÅÄÖÅÒ ÐÁËÅԦנצĠRPM
30 Name:           rpm
31 %define ver     4.4
32 %define sover   4.3
33 Version:        %{ver}
34 Release:        0.%{snap}.0.5
35 License:        GPL
36 Group:          Base
37 #Source0:       ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.2.x/%{name}-%{version}.%{snap}.tar.gz
38 Source0:        ftp://distfiles.pld-linux.org/src/%{name}-%{version}.%{snap}.tar.bz2
39 # Source0-md5:  a91b8e17f6e69208b188d2876e80aef9
40 Source1:        %{name}.groups
41 Source2:        %{name}.platform
42 Source3:        %{name}-install-tree
43 Source4:        %{name}-find-spec-bcond
44 Source5:        %{name}-find-lang
45 Source6:        %{name}-groups-po.awk
46 Source7:        %{name}-compress-doc
47 Source8:        %{name}-check-files
48 Source9:        %{name}-php-provides
49 Source10:       %{name}-php-requires
50 Source11:       %{name}.macros
51 Source12:       perl.prov
52 Source13:       %{name}-user_group.sh
53 Source14:       %{name}.sysconfig
54 Source30:       builder
55 Source31:       adapter.awk
56 Source32:       pldnotify.awk
57 Patch1:         %{name}-rpmrc.patch
58 Patch2:         %{name}-arch.patch
59 Patch3:         %{name}-rpmpopt.patch
60 Patch4:         %{name}-perl-macros.patch
61 Patch5:         %{name}-perl-req-perlfile.patch
62 Patch7:         %{name}-noexpand.patch
63 Patch8:         %{name}-scripts-closefds.patch
64 Patch9:         %{name}-python-macros.patch
65 Patch10:        %{name}-gettext-in-header.patch
66 Patch11:        %{name}-compress-doc.patch
67 Patch12:        %{name}-build.patch
68 Patch13:        %{name}-system_libs.patch
69 Patch14:        %{name}-bb-and-short-circuit.patch
70 Patch15:        %{name}-etc_dir.patch
71 Patch16:        %{name}-system_libs-more.patch
72 Patch17:        %{name}-php-deps.patch
73 Patch18:        %{name}-python-fix.patch
74 Patch19:        %{name}-ldconfig-always.patch
75 Patch20:        %{name}-perl_req.patch
76 Patch21:        %{name}-no-bin-env.patch
77 Patch22:        %{name}-magic-usesystem.patch
78 Patch23:        %{name}-dontneedutils.patch
79 Patch24:        %{name}-provides-dont-obsolete.patch
80 Patch25:        %{name}-examplesaredoc.patch
81 Patch26:        %{name}-po.patch
82 Patch27:        %{name}-amd64.patch
83 Patch28:        %{name}-notsc.patch
84 Patch29:        %{name}-hack-norpmlibdep.patch
85 Patch30:        %{name}-makefile-no_myLDADD_deps.patch
86 Patch31:        %{name}-libdir64.patch
87 Patch32:        %{name}-libdir-links.patch
88 Patch33:        %{name}-context.patch
89 Patch35:        %{name}-missing-prototypes.patch
90 Patch36:        %{name}-pld-autodep.patch
91 Patch37:        %{name}-rpmsq.patch
92 Patch38:        %{name}-file-readelf.patch
93 Patch39:        %{name}-no_version_check_in_obsoletes.patch
94 Patch40:        %{name}-epoch0.patch
95 Patch41:        %{name}-file-readelf-fix.patch
96 Patch43:        %{name}-perl_req-INC_dirs.patch
97 Patch44:        %{name}-debuginfo.patch
98 Patch45:        %{name}-beecrypt4.patch
99 Patch46:        %{name}-doxygen_hack.patch
100 Patch47:        %{name}-distver.patch
101 Patch100:       %{name}-pl.po.patch
102 URL:            http://www.rpm.org/
103 Icon:           rpm.gif
104 BuildRequires:  autoconf >= 2.52
105 BuildRequires:  automake
106 BuildRequires:  beecrypt-devel >= %{beecrypt_ver}
107 BuildRequires:  bzip2-devel >= 1.0.1
108 BuildRequires:  db-devel >= %{reqdb_ver}
109 %{?with_apidocs:BuildRequires:  doxygen}
110 BuildRequires:  elfutils-devel
111 BuildRequires:  findutils
112 BuildRequires:  gettext-devel >= 0.11.4-2
113 #BuildRequires: libmagic-devel
114 %{?with_selinux:BuildRequires:  libselinux-devel}
115 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
116 BuildRequires:  libstdc++-devel
117 BuildRequires:  libtool
118 BuildRequires:  libxml2-devel
119 BuildRequires:  patch >= 2.2
120 BuildRequires:  popt-devel >= %{reqpopt_ver}
121 %{?with_python:BuildRequires:   python-devel >= 2.2}
122 BuildRequires:  python-modules >= 2.2
123 BuildRequires:  readline-devel
124 BuildRequires:  rpm-perlprov
125 BuildRequires:  rpm-pythonprov
126 BuildRequires:  zlib-devel
127 %if %{with static}
128 # Require static library only for static build
129 BuildRequires:  beecrypt-static >= %{beecrypt_ver}
130 BuildRequires:  bzip2-static >= 1.0.2-5
131 BuildRequires:  db-static >= %{reqdb_ver}
132 BuildRequires:  glibc-static >= 2.2.94
133 BuildRequires:  elfutils-static
134 #BuildRequires: libmagic-static
135 %{?with_selinux:BuildRequires:  libselinux-static}
136 BuildRequires:  popt-static >= %{reqpopt_ver}
137 BuildRequires:  zlib-static
138 %endif
139 Requires:       beecrypt >= %{beecrypt_ver}
140 Requires:       popt >= %{reqpopt_ver}
141 Requires:       %{name}-lib = %{version}-%{release}
142 %{!?with_static:Obsoletes:      rpm-utils-static}
143 Conflicts:      glibc < 2.2.92
144 # avoid SEGV caused by mixed db versions
145 Conflicts:      poldek < 0.18.1-16
146 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
147
148 %define         _binary_payload         w9.gzdio
149 %define         _noPayloadPrefix        1
150
151 # don't require very fresh rpm.macros to build
152 %define         __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
153 %define         ix86 i386 i486 i586 i686 athlon pentium3 pentium4
154
155 # stabilize new build environment
156 %define         __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
157 %define         __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
158 %define         __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
159
160 %define         _rpmlibdir /usr/lib/rpm
161
162 %description
163 RPM is a powerful package manager, which can be used to build,
164 install, query, verify, update, and uninstall individual software
165 packages. A package consists of an archive of files, and package
166 information, including name, version, and description.
167
168 %description -l de
169 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
170 Installation, Anfrage, Verifizierung, Aktualisierung und
171 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
172 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
173 Beschreibung.
174
175 %description -l es
176 RPM es un poderoso administrador de paquetes, que puede ser usado para
177 construir, instalar, pesquisar, verificar, actualizar y desinstalar
178 paquetes individuales de software. Un paquete consiste en un
179 almacenaje de archivos, y información sobre el paquete, incluyendo
180 nombre, versión y descripción.
181
182 %description -l pl
183 RPM jest doskona³ym programem zarz±dzaj±cym pakietami. Umo¿liwia on
184 przebudowanie, instalacjê czy weryfikacjê dowolnego pakietu.
185 Informacje dotycz±ce ka¿dego pakietu, takie jak jego opis, lista
186 plików wchodz±cych w sk³ad pakietu, zale¿no¶ci od innych pakietów, s±
187 przechowywane w bazie danych i mo¿na je uzyskaæ za pomoc± opcji
188 odpytywania programu rpm.
189
190 %description -l pt_BR
191 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
192 construir, instalar, pesquisar, verificar, atualizar e desinstalar
193 pacotes individuais de software. Um pacote consiste de um conjunto de
194 arquivos e informações adicionais, incluindo nome, versão e descrição
195 do pacote, permissões dos arquivos, etc.
196
197 %description -l ru
198 RPM - ÜÔÏ ÍÏÝÎÙÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔÏ×, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁΠÄÌÑ
199 ÓÏÚÄÁÎÉÑ, ÉÎÓÔÁÌÌÑÃÉÉ, ÚÁÐÒÏÓÏ× (query), ÐÒÏ×ÅÒËÉ, ÏÂÎÏ×ÌÅÎÉÑ É
200 ÕÄÁÌÅÎÉÑ ÐÒÏÇÒÁÍÍÎÙÈ ÐÁËÅÔÏ×. ðÁËÅÔ ÓÏÓÔÏÉÔ ÉÚ ÆÁÊÌÏ×ÏÇÏ ÁÒÈÉ×Á É
201 ÓÌÕÖÅÂÎÏÊ ÉÎÆÏÒÍÁÃÉÉ, ×ËÌÀÞÁÀÝÅÊ ÎÁÚ×ÁÎÉÅ, ×ÅÒÓÉÀ, ÏÐÉÓÁÎÉÅ É ÄÒÕÇÉÅ
202 ÄÁÎÎÙÅ Ï ÐÁËÅÔÅ.
203
204 %description -l uk
205 RPM - ÃÅ ÐÏÔÕÖÎÉÊ ÍÅÎÅÄÖÅÒ ÐÁËÅÔ¦×, ÝÏ ÍÏÖÅ ÂÕÔÉ ×ÉËÏÒÉÓÔÁÎÉÊ ÄÌÑ
206 ÓÔ×ÏÒÅÎÎÑ, ¦ÎÓÔÁÌÑæ§, ÚÁÐÉԦנ(query), ÐÅÒÅצÒËÉ, ÐÏÎÏ×ÌÅÎÎÑ ÔÁ
207 ×ÉÄÁÌÅÎÎÑ ÐÒÏÇÒÁÍÎÉÈ ÐÁËÅÔ¦×. ðÁËÅÔ ÓËÌÁÄÁ¤ÔØÓÑ Ú ÆÁÊÌÏ×ÏÇÏ ÁÒȦ×Õ ÔÁ
208 ÓÌÕÖÂÏ×ϧ ¦ÎÆÏÒÍÁæ§, ÝϠͦÓÔÉÔØ ÎÁÚ×Õ, ×ÅÒÓ¦À, ÏÐÉÓ ÔÁ ¦ÎÛÕ
209 ¦ÎÆÏÒÍÁæÀ ÐÒÏ ÐÁËÅÔ.
210
211 %package devel
212 Summary:        Header files for rpm libraries
213 Summary(de):    Header-Dateien für rpm Libraries
214 Summary(es):    Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
215 Summary(pl):    Pliki nag³ówkowe bibliotek rpm
216 Summary(pt_BR): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
217 Summary(ru):    èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
218 Summary(uk):    èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
219 Group:          Development/Libraries
220 Requires:       %{name}-lib = %{version}-%{release}
221 Requires:       beecrypt-devel >= %{beecrypt_ver}
222 Requires:       bzip2-devel
223 Requires:       db-devel >= %{reqdb_ver}
224 Requires:       elfutils-devel
225 %{?with_selinux:Requires:       libselinux-devel}
226 Requires:       popt-devel >= %{reqpopt_ver}
227 Requires:       zlib-devel
228
229 %description devel
230 The RPM packaging system includes C libraries that make it easy to
231 manipulate RPM packages and databases. They are intended to ease the
232 creation of graphical package managers and other tools that need
233 intimate knowledge of RPM packages. This package contains header files
234 for these libraries.
235
236 %description devel -l de
237 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
238 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
239 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
240 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
241
242 %description devel -l es
243 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
244 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
245 facilitar la creación de administradores gráficos de paquetes y otras
246 herramientas que necesiten un conocimiento profundo de paquetes RPM.
247
248 %description devel -l pl
249 System RPM zawiera biblioteki C, które u³atwiaj± manipulowanie
250 pakietami RPM oraz bazami danych. W zamiarze ma to upro¶ciæ tworzenie
251 graficznych programów zarz±dzaj±cych pakietami oraz innych narzêdzi,
252 które wymagaj± szczegó³owej wiedzy na temat pakietów RPM. Ten pakiet
253 zawiera pliki nag³ówkowe wspomnianych bibliotek.
254
255 %description devel -l pt_BR
256 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
257 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
258 facilitar a criação de gerenciadores gráficos de pacotes e outras
259 ferramentas que precisem de conhecimento profundo de pacotes RPM.
260
261 %description devel -l ru
262 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
263 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
264 üÔÁ ÂÉÂÌÉÏÔÅËÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÏÂÌÅÇÞÅÎÉÑ ÓÏÚÄÁÎÉÑ ÇÒÁÆÉÞÅÓËÉÈ
265 ÐÁËÅÔÎÙÈ ÍÅÎÅÄÖÅÒÏ× É ÄÒÕÇÉÈ ÕÔÉÌÉÔ, ËÏÔÏÒÙÍ ÎÅÏÂÈÏÄÉÍÏ ÒÁÂÏÔÁÔØ Ó
266 ÐÁËÅÔÁÍÉ RPM.
267
268 %description devel -l uk
269 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM Í¦ÓÔÉÔؠ¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
270 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ ×¦ÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãѠ¦Â̦ÏÔÅËÁ
271 ÐÒÉÚÎÁÞÅÎÁ ÄÌÑ ÐÏÌÅÇÛÅÎÎÑ ÓÔ×ÏÒÅÎÎÑ ÇÒÁƦÞÎÉÈ ÐÁËÅÔÎÉÈ ÍÅÎÅÄÖÅҦנÔÁ
272 ¦ÎÛÉÈ ÕÔÉ̦Ô, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ RPM.
273
274 %package static
275 Summary:        RPM static libraries
276 Summary(de):    RPMs statische Libraries
277 Summary(pl):    Biblioteki statyczne RPM-a
278 Summary(pt_BR): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
279 Summary(ru):    óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÒÁÂÏÔÁÀÝÉÈ Ó rpm-ÐÁËÅÔÁÍÉ
280 Summary(uk):    óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍ, ÝÏ ÐÒÁÃÀÀÔØ Ú ÐÁËÅÔÁÍÉ rpm
281 Group:          Development/Libraries
282 Requires:       %{name}-devel = %{version}-%{release}
283 Requires:       beecrypt-static >= %{beecrypt_ver}
284 Requires:       bzip2-static
285 Requires:       db-static >= %{reqdb_ver}
286 Requires:       elfutils-static
287 Requires:       popt-static >= %{reqpopt_ver}
288 Requires:       zlib-static
289
290 %description static
291 RPM static libraries.
292
293 %description static -l de
294 RPMs statische Libraries.
295
296 %description static -l pl
297 Biblioteki statyczne RPM-a.
298
299 %description static -l pt_BR
300 Bibliotecas estáticas para desenvolvimento.
301
302 %description static -l ru
303 óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ RPM ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ C, ËÏÔÏÒÁÑ
304 ÕÐÒÏÝÁÅÔ ÍÁÎÉÐÕÌÑÃÉÀ ÐÁËÅÔÁÍÉ RPM É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÂÁÚÁÍÉ ÄÁÎÎÙÈ.
305 üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ RPM.
306
307 %description static -l uk
308 óÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÁÍÉ RPM Í¦ÓÔÉÔؠ¦Â̦ÏÔÅËÕ C, ËÏÔÒÁ ÓÐÒÏÝÕ¤
309 ÒÏÂÏÔÕ Ú ÐÁËÅÔÁÍÉ RPM ÔÁ ×¦ÄÐÏצÄÎÉÍÉ ÂÁÚÁÍÉ ÄÁÎÉÈ. ãÅ ÓÔÁÔÉÞÎÁ
310 ¦Â̦ÏÔÅËÁ RPM.
311
312 %package utils
313 Summary:        Additional utilities for managing rpm packages and database
314 Summary(de):    Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
315 Summary(pl):    Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
316 Group:          Applications/File
317 Requires:       %{name} = %{version}-%{release}
318 Requires:       popt >= %{reqpopt_ver}
319
320 %description utils
321 Additional utilities for managing rpm packages and database.
322
323 %description utils -l de
324 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
325
326 %description utils -l pl
327 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
328
329 %package utils-perl
330 Summary:        Additional utilities for managing rpm packages and database
331 Summary(de):    Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
332 Summary(pl):    Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami
333 Group:          Applications/File
334 Requires:       %{name}-utils = %{version}-%{release}
335 Requires:       popt >= %{reqpopt_ver}
336
337 %description utils-perl
338 Additional utilities for managing rpm packages and database.
339
340 %description utils-perl -l de
341 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
342
343 %description utils-perl -l pl
344 Dodatkowe narzêdzia do zarz±dzania baz± RPM-a i pakietami.
345
346 %package utils-static
347 Summary:        Static rpm utilities
348 Summary(pl):    Statyczne narzêdzia rpm
349 Group:          Applications/System
350 Requires:       %{name} = %{version}-%{release}
351
352 %description utils-static
353 Static rpm utilities for repairing system in case something with
354 shared libraries used by rpm become broken. Currently it contains rpmi
355 binary, which can be used to install/upgrade/remove packages without
356 using shared libraries (well, in fact with exception of NSS modules).
357
358 %description utils-static -l pl
359 Statyczne narzêdzia rpm do naprawy systemu w przypadku zepsucia czego¶
360 zwi±zanego z bibliotekami wspó³dzielonymi u¿ywanymi przez rpm-a.
361 Aktualnie pakiet zawiera binarkê rpmi, któr± mo¿na u¿yæ do instalacji,
362 uaktualniania lub usuwania pakietów bez udzia³u bibliotek statycznych
363 (z wyj±tkiem modu³ów NSS).
364
365 %package perlprov
366 Summary:        Additional utilities for checking perl provides/requires in rpm packages
367 Summary(de):    Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
368 Summary(pl):    Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w pakietach rpm
369 Group:          Applications/File
370 Requires:       %{name} = %{version}-%{release}
371 Requires:       perl-devel
372 Requires:       perl-modules
373
374 %description perlprov
375 Additional utilities for checking perl provides/requires in rpm
376 packages.
377
378 %description perlprov -l de
379 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
380
381 %description perlprov -l pl
382 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów perla w
383 pakietach rpm.
384
385 %package pythonprov
386 Summary:        Python macros, which simplifies creation of rpm packages with Python software
387 Summary(pl):    Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w Pythonie
388 Group:          Applications/File
389 Requires:       %{name} = %{version}-%{release}
390 Requires:       python-modules
391
392 %description pythonprov
393 Python macros, which simplifies creation of rpm packages with Python
394 software.
395
396 %description pythonprov -l pl
397 Makra u³atwiaj±ce tworzenie pakietów rpm z programami napisanymi w
398 Pythonie.
399
400 %package php-pearprov
401 Summary:        Additional utilities for managing rpm packages and database
402 Summary(pl):    Dodatkowe narzêdzia do sprawdzania zale¿no¶ci skryptów php w rpm
403 Group:          Applications/File
404 Requires:       %{name} = %{version}-%{release}
405
406 %description php-pearprov
407 Additional utilities for checking php pear provides/requires in rpm
408 packages.
409
410 %description php-pearprov -l pl
411 Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów php pear w
412 pakietach rpm.
413
414 %package -n python-rpm
415 Summary:        Python interface to RPM library
416 Summary(pl):    Pythonowy interfejs do biblioteki RPM-a
417 Summary(pt_BR): Módulo Python para aplicativos que manipulam pacotes RPM
418 Group:          Development/Languages/Python
419 Requires:       %{name} = %{version}-%{release}
420 %pyrequires_eq  python
421 Obsoletes:      rpm-python
422
423 %description -n python-rpm
424 The rpm-python package contains a module which permits applications
425 written in the Python programming language to use the interface
426 supplied by RPM (RPM Package Manager) libraries.
427
428 This package should be installed if you want to develop Python
429 programs that will manipulate RPM packages and databases.
430
431 %description -n python-rpm -l pl
432 Pakiet rpm-python zawiera modu³, który pozwala aplikacjom napisanym w
433 Pythonie na u¿ywanie interfejsu dostarczanego przez biblioteki RPM-a.
434
435 Pakiet ten powinien zostaæ zainstalowany, je¶li chcesz pisaæ w
436 Pythonie programy manipuluj±ce pakietami i bazami danych rpm.
437
438 %description -n python-rpm -l pt_BR
439 O pacote rpm-python contém um módulo que permite que aplicações
440 escritas em Python utilizem a interface fornecida pelas bibliotecas
441 RPM (RPM Package Manager).
442
443 Esse pacote deve ser instalado se você quiser desenvolver programas em
444 Python para manipular pacotes e bancos de dados RPM.
445
446 %package lib
447 Summary:        RPMs library
448 Summary(pl):    Biblioteki RPM-a
449 Group:          Libraries
450 Requires:       db >= %{reqdb_ver}
451 Requires:       popt >= %{reqpopt_ver}
452 # avoid SEGV caused by mixed db versions
453 Conflicts:      poldek < 0.18.1-16
454
455 %description lib
456 RPMs library.
457
458 %description lib -l pl
459 Biblioteki RPM-a.
460
461 %package build
462 Summary:        Scripts for building binary RPM packages
463 Summary(de):    Scripts fürs Bauen binärer RPM-Pakete
464 Summary(pl):    Skrypty pomocnicze do budowania binarnych RPM-ów
465 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
466 Summary(ru):    óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
467 Summary(uk):    óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
468 Group:          Applications/File
469 Requires(pre):  findutils
470 Requires:       %{name}-utils = %{version}-%{release}
471 Requires:       /bin/id
472 Requires:       awk
473 Requires:       binutils
474 Requires:       chrpath >= 0.10-4
475 Requires:       cpio
476 Requires:       diffutils
477 Requires:       elfutils
478 Requires:       file >= 4.01
479 Requires:       fileutils
480 Requires:       findutils
481 %ifarch athlon
482 Requires:       gcc >= 3.0.3
483 %else
484 Requires:       gcc
485 %endif
486 Requires:       glibc-devel
487 Requires:       grep
488 Requires:       gzip
489 Requires:       make
490 Requires:       patch
491 Requires:       popt >= 1.7
492 Requires:       sed
493 Requires:       sh-utils
494 Requires:       tar
495 Requires:       textutils
496 Provides:       rpmbuild(macros) = %{rpm_macros_rev}
497 Provides:       rpmbuild(noauto) = 3
498 %ifarch amd64
499 Conflicts:      automake < 1:1.7.9-2
500 Conflicts:      libtool < 2:1.5-13
501 %endif
502
503 %description build
504 Scripts for building binary RPM packages.
505
506 %description build -l de
507 Scripts fürs Bauen binärer RPM-Pakete.
508
509 %description build -l pl
510 Skrypty pomocnicze do budowania binarnych RPM-ów.
511
512 %description build -l pt_BR
513 Este pacote contém scripts e programas executáveis que são usados para
514 construir pacotes usando o RPM.
515
516 %description build -l ru
517 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
518 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
519
520 %description build -l uk
521 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
522 ÐÏÂÕÄÏ×É RPM'¦×.
523
524 %package build-tools
525 Summary:        Scripts for managing .spec files and building RPM packages
526 Summary(de):    Scripts fürs Bauen binärer RPM-Pakete
527 Summary(pl):    Skrypty pomocnicze do zarz±dznia plikami .spec i budowania RPM-ów
528 Summary(pt_BR): Scripts e programas executáveis usados para construir pacotes
529 Summary(ru):    óËÒÉÐÔÙ É ÕÔÉÌÉÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ ÐÁËÅÔÏ×
530 Summary(uk):    óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
531 Group:          Applications/File
532 Requires:       %{name}-build = %{version}-%{release}
533 # these are optional
534 #Requires:      cvs
535 Requires:       wget
536
537 %description build-tools
538 Scripts for managing .spec files and building RPM packages.
539
540 %description build-tools -l de
541 Scripts fürs Bauen RPM-Pakete.
542
543 %description build-tools -l pl
544 Skrypty pomocnicze do zarz±dzania plikami .spec i do budowania RPM-ów.
545
546 %description build-tools -l pt_BR
547 Este pacote contém scripts e programas executáveis que são usados para
548 construir pacotes usando o RPM.
549
550 %description build-tools -l ru
551 òÁÚÌÉÞÎÙÅ ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓËÒÉÐÔÙ É ÉÓÐÏÌÎÑÅÍÙÅ ÐÒÏÇÒÁÍÍÙ, ËÏÔÏÒÙÅ
552 ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÓÂÏÒËÉ RPM'Ï×.
553
554 %description build-tools -l uk
555 ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
556 ÐÏÂÕÄÏ×É RPM'¦×.
557
558 %if %{with apidocs}
559 %package        apidocs
560 Summary:        rpm API documentation and guides
561 Summary(pl):    Documentacja API rpm i przewodniki.
562 Group:          Documentation   
563
564 %description apidocs
565 Documentation for rpm API and guides in html format generated
566 from rpm sources by doxygen.
567
568 %description apidocs -l pl
569 Dokumentacja API rpm oraz przewodniki w formacie html generowana
570 ze ¼rode³ rpm przez doxygen.
571 %endif
572
573 %prep
574 %setup -q -n %{name}
575 %patch1 -p1
576 %patch2 -p1
577 # temporarily moved after patch100 - messes too much in pl.po
578 #%patch3 -p1
579 %patch4 -p1
580 %patch5 -p1
581 %patch7 -p1
582 %patch8 -p1
583 %patch9 -p1
584 %patch10 -p1
585 %patch11 -p1
586 %patch12 -p1
587 %patch13 -p1
588 %patch14 -p1
589 # home-etc FIXME
590 #%patch15 -p1
591 %patch16 -p1
592 %patch17 -p1
593 %patch18 -p1
594 %patch19 -p1
595 %patch20 -p1
596 %patch21 -p1
597 sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
598 cp -f platform.in macros.pld.in
599 echo '%%define  __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
600 echo '%%define  __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
601 echo '# obsoleted file' > macros.python
602 echo '%%define  __php_provides  /usr/lib/rpm/php.prov' > macros.php
603 echo '%%define  __php_requires  /usr/lib/rpm/php.req' >> macros.php
604 install %{SOURCE5} scripts/find-lang.sh
605 install %{SOURCE9} scripts/php.prov.in
606 install %{SOURCE10} scripts/php.req.in
607 install %{SOURCE12} scripts/perl.prov
608 cat %{SOURCE11} >> macros.in
609 %patch22 -p1
610 %patch23 -p1
611 %patch24 -p1
612 %patch25 -p1
613 %patch26 -p1
614 %patch27 -p1
615 %patch28 -p1
616 %patch29 -p1
617 %patch30 -p1
618 %patch31 -p1
619 %patch32 -p1
620 %patch33 -p1
621 %patch35 -p1
622 %patch36 -p1
623 %patch37 -p1
624 %patch38 -p1
625 %patch39 -p1
626 %patch40 -p1
627 %patch41 -p1
628 %patch43 -p0
629 %patch44 -p1
630 %patch45 -p1
631 %patch46 -p1
632 %patch47 -p1
633 %patch100 -p1
634 %patch3 -p1
635
636 cd scripts;
637 mv -f perl.req perl.req.in
638 mv -f perl.prov perl.prov.in
639 cd ..
640
641 mv -f po/{no,nb}.po
642 mv -f po/{sr,sr@Latn}.po
643
644 rm -rf zlib libelf db db3 popt rpmdb/db.h
645
646 # generate Group translations to *.po
647 awk -f %{SOURCE6} %{SOURCE1}
648
649 # update macros paths
650 for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
651         sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp
652         mv -f ${f}.tmp $f
653 done
654
655 # ... and make some cleanings
656 rm -fr $(find ./ -type d -name CVS )
657 rm -f  $(find ./ -type f -name ".cvsignore" )
658
659 %build
660 cd file
661 %{__libtoolize}
662 %{__aclocal}
663 %{__autoheader}
664 %{__autoconf}
665 %{__automake}
666 cd ..
667
668 %{__libtoolize}
669 %{__gettextize}
670 %{__aclocal}
671 %{__autoheader}
672 %{__autoconf}
673 %{__automake}
674
675 # config.guess doesn't handle athlon, so we have to change it by hand.
676 # rpm checks for CPU type at runtime, but it looks better
677 sed -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' \
678         -e 's|@host_cpu@|%{_target_cpu}|' macros.in > macros.tmp
679 mv -f macros.tmp macros.in
680
681 # pass CC and CXX too in case of building with some older configure macro
682 %configure \
683         CC="%{__newcc}" \
684         CXX="%{__newcxx}" \
685         CPP="%{__newcpp}" \
686         --enable-shared \
687         --enable-static \
688         %{?with_apidoc:--with-apidocs} \
689         %{?with_pkgnameinautoreq:--enable-adding-packages-names-in-autogenerated-dependancies} \
690         %{?with_python:--with-python=auto} \
691         %{!?with_python:--without-python} \
692         %{!?with_selinux:--without-selinux} \
693         --without-db
694
695 # file_LDFLAGS, debugedit_LDADD - no need to link "file" and "debugedit" statically
696 %{__make} \
697         CC="%{__cc}" \
698         CXX="%{__cxx}" \
699         CPP="%{__cpp}" \
700         pylibdir=%{py_libdir} \
701         myLDFLAGS="%{rpmldflags}" \
702         file_LDFLAGS= \
703         debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt"
704
705 #       %{!?with_static:rpm_LDFLAGS="\$(myLDFLAGS)"} \
706 %{?with_apidocs:%{__make} doxygen}
707
708 %install
709 rm -rf $RPM_BUILD_ROOT
710 install -d $RPM_BUILD_ROOT{/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm}
711
712 %{__make} install \
713         DESTDIR=$RPM_BUILD_ROOT \
714         pylibdir=%{py_libdir} \
715         pkgbindir="%{_bindir}"
716
717 rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
718 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
719 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
720
721 install macros.perl     $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
722 install macros.python   $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
723 install macros.php      $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
724
725 install %{SOURCE1} doc/manual/groups
726 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
727 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
728 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
729 install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
730 install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
731 install scripts/find-php*       $RPM_BUILD_ROOT%{_rpmlibdir}
732 install scripts/php.{prov,req}  $RPM_BUILD_ROOT%{_rpmlibdir}
733 install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm
734
735 install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder
736 install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk
737 install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk
738
739 install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
740
741 %ifarch %{ix86}
742 ix86re=$(echo "(%{ix86})"|sed 's/ /|/g')
743 perl -p -i -e 's/^(buildarchtranslate: '"$ix86re"': ).*/\1%{_target_cpu}/' \
744         $RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc
745 %endif
746
747 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
748 # customized rpm macros - global for host
749 #
750 #%%_install_langs pl_PL:en_US
751 %%distribution PLD
752 #
753 # remove or replace with file_contexts path if you want to use custom
754 # SELinux file contexts policy instead of one stored in packages payload
755 %%_install_file_context_path    %%{nil}
756 %%_verify_file_context_path     %%{nil}
757 EOF
758
759 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
760 # global list of files (regexps) which don't generate Provides
761 EOF
762 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
763 # global list of script capabilities (regexps) not to be used in Provides
764 EOF
765 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
766 # global list of files (regexps) which don't generate Requires
767 ^/usr/src/examples/
768 ^/usr/share/doc/
769 EOF
770 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
771 # global list of script capabilities (regexps) not to be used in Requires
772 EOF
773 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
774 # global list of capabilities (SONAME, perl(module), php(module) regexps)
775 # which don't generate dependencies on package NAMES
776 # -- OpenGL implementation
777 ^libGL.so.1$
778 ^libGLU.so.1$
779 ^libOSMesa.so
780 # -- Glide
781 ^libglide3.so.3$
782 # -- mozilla
783 ^libgtkmozembed.so$
784 ^libgtksuperwin.so$
785 ^libxpcom.so$
786 # -- X11 implementation
787 ^libFS.so
788 ^libI810XvMC.so
789 ^libICE.so
790 ^libSM.so
791 ^libX11.so
792 ^libXRes.so
793 ^libXTrap.so
794 ^libXaw.so
795 ^libXcursor.so
796 ^libXext.so
797 ^libXfont.so
798 ^libXfontcache.so
799 ^libXft.so
800 ^libXi.so
801 ^libXinerama.so
802 ^libXmu.so
803 ^libXmuu.so
804 ^libXp.so
805 ^libXpm.so
806 ^libXrandr.so
807 ^libXrender.so
808 ^libXss.so
809 ^libXt.so
810 ^libXtst.so
811 ^libXv.so
812 ^libXvMC.so
813 ^libXxf86dga.so
814 ^libXxf86misc.so
815 ^libXxf86rush.so
816 ^libXxf86vm.so
817 ^libdps.so
818 ^libdpstk.so
819 ^libfontenc.so
820 ^libpsres.so
821 ^libxkbfile.so
822 ^libxkbui.so
823 EOF
824 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
825 # global list of file masks not to be compressed in DOCDIR
826 EOF
827
828 # for rpm -e|-U --repackage
829 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
830 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
831
832 # move libs to /lib
833 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so ; do
834         mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
835         ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
836 done
837
838 for f in $RPM_BUILD_ROOT%{_datadir}/locale/{en_RN,eu_ES,gl,hu,ro,wa,zh,zh_CN.GB2312}/LC_MESSAGES/rpm.mo ; do
839         [ "`file $f | sed -e 's/.*,//' -e 's/message.*//'`" -le 1 ] && rm -f $f
840 done
841 %find_lang %{name}
842
843 rm -rf manual
844 cp -a doc/manual manual
845 rm -f manual/Makefile*
846
847 %clean
848 rm -rf $RPM_BUILD_ROOT
849
850 %post   lib -p /sbin/ldconfig
851 %postun lib -p /sbin/ldconfig
852
853 %pre build
854 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
855
856 %files -f %{name}.lang
857 %defattr(644,root,root,755)
858 %doc RPM-PGP-KEY CHANGES manual
859
860 %attr(755,root,root) /bin/rpm
861 #%attr(755,root,root) %{_bindir}/rpmdb
862 #%attr(755,root,root) %{_bindir}/rpmquery
863 #%attr(755,root,root) %{_bindir}/rpmsign
864 #%attr(755,root,root) %{_bindir}/rpmverify
865
866 %dir %{_sysconfdir}/rpm
867 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/macros
868 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rpm
869
870 %{_mandir}/man8/rpm.8*
871 %lang(fr) %{_mandir}/fr/man8/rpm.8*
872 %lang(ja) %{_mandir}/ja/man8/rpm.8*
873 %lang(ko) %{_mandir}/ko/man8/rpm.8*
874 %lang(pl) %{_mandir}/pl/man8/rpm.8*
875 %lang(ru) %{_mandir}/ru/man8/rpm.8*
876 %lang(sk) %{_mandir}/sk/man8/rpm.8*
877
878 %dir /var/lib/rpm
879 %dir %attr(700,root,root) /var/spool/repackage
880 %dir /var/lock/rpm
881 /var/lock/rpm/transaction
882
883 %dir %{_rpmlibdir}
884 #%attr(755,root,root) %{_rpmlibdir}/rpmd
885 #%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]}
886 #%attr(755,root,root) %{_rpmlibdir}/rpmk
887 #%attr(755,root,root) %{_rpmlibdir}/rpm[qv]
888
889 %doc %attr(755,root,root) %{_rpmlibdir}/convertrpmrc.sh
890 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
891
892 %{_rpmlibdir}/rpmrc
893 %{_rpmlibdir}/rpmpopt*
894 %{_rpmlibdir}/macros
895
896 %files lib
897 %defattr(644,root,root,755)
898 %attr(755,root,root) /%{_lib}/librpm*-*.so
899 %attr(755,root,root) %{_libdir}/librpm*-*.so
900
901 %files build
902 %defattr(644,root,root,755)
903 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rpm/noauto*
904 %attr(755,root,root) %{_rpmlibdir}/compress-doc
905 %attr(755,root,root) %{_rpmlibdir}/cross-build
906 #%attr(755,root,root) %{_rpmlibdir}/find-provides
907 #%attr(755,root,root) %{_rpmlibdir}/find-provides-wrapper
908 #%attr(755,root,root) %{_rpmlibdir}/find-requires
909 #%attr(755,root,root) %{_rpmlibdir}/find-requires-wrapper
910 #%attr(755,root,root) %{_rpmlibdir}/find-rpm-provides
911 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
912 %attr(755,root,root) %{_rpmlibdir}/find-lang.sh
913 %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
914 %attr(755,root,root) %{_rpmlibdir}/config.*
915 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
916 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
917 %attr(755,root,root) %{_rpmlibdir}/brp-*
918 %attr(755,root,root) %{_rpmlibdir}/check-files
919 %attr(755,root,root) %{_rpmlibdir}/check-prereqs
920 #%attr(755,root,root) %{_rpmlibdir}/cpanflute
921 #%attr(755,root,root) %{_rpmlibdir}/cpanflute2
922 #%attr(755,root,root) %{_rpmlibdir}/Specfile.pm
923 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
924 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides.sh
925 #%attr(755,root,root) %{_rpmlibdir}/vpkg-provides2.sh
926 %attr(755,root,root) %{_rpmlibdir}/rpmb
927 %attr(755,root,root) %{_rpmlibdir}/rpmt
928 %{_rpmlibdir}/noarch-*
929 %ifarch %{ix86}
930 %{_rpmlibdir}/i?86*
931 %{_rpmlibdir}/pentium*
932 %{_rpmlibdir}/athlon*
933 %endif
934 %ifarch alpha
935 %{_rpmlibdir}/alpha*
936 %endif
937 %ifarch amd64
938 %{_rpmlibdir}/amd64*
939 %endif
940 %ifarch ia64
941 %{_rpmlibdir}/ia64*
942 %endif
943 %ifarch mips mipsel mips64 mips64el
944 %{_rpmlibdir}/mips*
945 %endif
946 %ifarch ppc
947 %{_rpmlibdir}/ppc*
948 %endif
949 %ifarch sparc sparc64
950 %{_rpmlibdir}/sparc*
951 %endif
952 # must be here for "Requires: rpm-*prov" to work
953 %{_rpmlibdir}/macros.perl
954 %{_rpmlibdir}/macros.php
955 # not used yet ... these six depend on perl
956 #%attr(755,root,root) %{_rpmlibdir}/http.req
957 #%attr(755,root,root) %{_rpmlibdir}/magic.prov
958 #%attr(755,root,root) %{_rpmlibdir}/magic.req
959 #%{_rpmlibdir}/sql.prov
960 #%{_rpmlibdir}/sql.req
961 #%{_rpmlibdir}/tcl.req
962 %{_rpmlibdir}/trpm
963
964 %attr(755,root,root) %{_bindir}/javadeps
965 %attr(755,root,root) %{_bindir}/gendiff
966 %attr(755,root,root) %{_bindir}/rpmbuild
967
968 %{_mandir}/man1/gendiff.1*
969 %{_mandir}/man8/rpmbuild.8*
970 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
971 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
972 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
973
974 %files devel
975 %defattr(644,root,root,755)
976 %{_includedir}/rpm
977 %{_libdir}/librpm*.la
978 %attr(755,root,root) %{_libdir}/librpm.so
979 %attr(755,root,root) %{_libdir}/librpmio.so
980 %attr(755,root,root) %{_libdir}/librpmdb.so
981 %attr(755,root,root) %{_libdir}/librpmbuild.so
982
983 %files static
984 %defattr(644,root,root,755)
985 %{_libdir}/librpm*.a
986
987 %files utils
988 %defattr(644,root,root,755)
989 %attr(755,root,root) %{_bindir}/debugedit
990 %attr(755,root,root) %{_bindir}/rpm2cpio
991 %attr(755,root,root) %{_bindir}/rpmcache
992 %attr(755,root,root) %{_bindir}/rpmdeps
993 %attr(755,root,root) %{_bindir}/rpmgraph
994 %attr(755,root,root) %{_bindir}/rpmfile
995 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
996 %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
997 %attr(755,root,root) %{_rpmlibdir}/tgpg
998 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
999 %{_mandir}/man8/rpm2cpio.8*
1000 %{_mandir}/man8/rpmdeps.8*
1001 %{_mandir}/man8/rpmcache.8*
1002 %{_mandir}/man8/rpmgraph.8*
1003 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1004 %lang(ja) %{_mandir}/ja/man8/rpmcache.8*
1005 %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
1006 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1007 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1008 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1009 %lang(pl) %{_mandir}/pl/man8/rpmcache.8*
1010 %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
1011 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1012
1013 %files utils-perl
1014 %defattr(644,root,root,755)
1015 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1016 # not here
1017 #%%{_rpmlibdir}/rpm.daily
1018 #%%{_rpmlibdir}/rpm.log
1019 #%%{_rpmlibdir}/rpm.xinetd
1020
1021
1022 %if %{with static}
1023 %files utils-static
1024 %defattr(644,root,root,755)
1025 %attr(755,root,root) %{_bindir}/rpm[ieu]
1026 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1027 %endif
1028
1029 %files perlprov
1030 %defattr(644,root,root,755)
1031 %attr(755,root,root) %{_rpmlibdir}/perl.*
1032 #%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1033 #%attr(755,root,root) %{_rpmlibdir}/find-perl-*
1034 #%attr(755,root,root) %{_rpmlibdir}/find-*.perl
1035 #%attr(755,root,root) %{_rpmlibdir}/find-prov.pl
1036 #%attr(755,root,root) %{_rpmlibdir}/find-req.pl
1037 %attr(755,root,root) %{_rpmlibdir}/get_magic.pl
1038
1039 %files pythonprov
1040 %defattr(644,root,root,755)
1041 %{_rpmlibdir}/macros.python
1042
1043 %files php-pearprov
1044 %defattr(644,root,root,755)
1045 %attr(755,root,root) %{_rpmlibdir}/php*
1046 %attr(755,root,root) %{_rpmlibdir}/find-php*
1047
1048 %if %{with python}
1049 %files -n python-rpm
1050 %defattr(644,root,root,755)
1051 %attr(755,root,root) %{py_sitedir}/*.so
1052 %attr(755,root,root) %{py_sitedir}/rpmdb/*.so
1053 %{py_sitedir}/rpmdb/*.py*
1054 %endif
1055
1056 %files build-tools
1057 %defattr(644,root,root,755)
1058 %attr(755,root,root) %{_bindir}/builder
1059 %attr(755,root,root) %{_bindir}/adapter.awk
1060 %attr(755,root,root) %{_bindir}/pldnotify.awk
1061
1062 %if %{with apidocs}
1063 %files apidocs
1064 %defattr(644,root,root,755)
1065 %doc apidocs
1066 %endif
This page took 0.218706 seconds and 4 git commands to generate.