]> git.pld-linux.org Git - packages/rpm.git/blame - rpm.spec
Fix linking with libgomp
[packages/rpm.git] / rpm.spec
CommitLineData
52c10eff 1#
2# TODO:
317ef122 3# - check if glob() patch needs resurrecting/rewriting
9dce4e74 4# - check if we want shell autodeps: Requires: executable(ln) executable(mv)
2d806774 5# - %{_arch} = i686 not as used to be i386 (platform file thing?):
afbcf91a
ER
6# 5.0.2: rpm -E '%_target_base_arch %_arch'
7# i386 i686
8# 4.4.9: rpm -E '%_target_base_arch %_arch'
9# i386 i386
644d8958
JB
10# - python(abi) cap is not provided automatically because /usr/lib*/libpython2*.so.*
11# matches ELF first
25ac75ae 12# - TODO: add macros for some ppc, mipsel, alpha and sparc
f3cb8244
ER
13# - uppackaged list:
14# /usr/lib/rpm/http.req
15# /usr/lib/rpm/install-sh
16# /usr/lib/rpm/mono-find-provides
17# /usr/lib/rpm/mono-find-requires
18# /usr/lib/rpm/osgideps.pl
19# /usr/lib/rpm/perldeps.pl
f3cb8244 20# /usr/lib/rpm/vcheck
ea417927 21# /usr/share/man/man8/rpmconstant.8
10abbd40 22#
76005b82 23# - headerGet() making poldek segfault http://rpm5.org/cvs/tktview?tn=38,1
76005b82 24# - rpm doesn't exit when no sources/patches available http://rpm5.org/cvs/tktview?tn=40,1
6664e05e 25# - http://rpm5.org/cvs/tktview?tn=41&_submit=Show
76005b82 26#
89427592 27# Conditional build:
01d7a578 28%bcond_with static # build static rpm+rpmi
514e0cea 29%bcond_with apidocs # don't generate documentation with doxygen
4af66a2c
JB
30%bcond_with autoreqdep # autogenerate package name deps in addition to sonames/perl(X)
31%bcond_without python # don't build python bindings
32%bcond_without selinux # build without selinux support
0dc47449 33%bcond_without suggest_tags # build without Suggest tag (bootstrapping)
33be5db0 34%bcond_with neon # build with HTTP/WebDAV support (neon library)
858aa7d0 35%bcond_without db # BerkeleyDB
241257bf 36%bcond_with sqlite # build with SQLite support
858aa7d0 37%bcond_with sqlite_dbapi # default database backend is sqlite
7564deb4 38%bcond_without system_lua # use system lua
89427592
JB
39# force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
40# force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
41# force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
858aa7d0
AM
42#
43%if %{with sqlite_dbapi}
44%define with_sqlite 1
45%endif
54bfdf99 46
858aa7d0 47%if %{without db} && %{without sqlite}
25ac75ae 48%{error:Need db or sqlite}
858aa7d0
AM
49ERROR
50%endif
51
003a039e 52# versions of required libraries
0229a8b9 53%define reqdb_ver 4.7.25
ec44785a 54%define reqpopt_ver 1.15
fc60c9f3 55%define beecrypt_ver 2:4.1.2-4
9282ffe4 56%define sover 5.2
fc60c9f3 57
e5f02e49 58Summary: RPM Package Manager
4ea2ed33
ER
59Summary(de.UTF-8): RPM Packet-Manager
60Summary(es.UTF-8): Gestor de paquetes RPM
61Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
62Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
63Summary(ru.UTF-8): Менеджер пакетов от RPM
64Summary(uk.UTF-8): Менеджер пакетів від RPM
76214164 65Name: rpm
9282ffe4
AF
66Version: 5.2.0
67Release: 0.1
b0434f77 68License: LGPL
76214164 69Group: Base
9282ffe4
AF
70Source0: http://rpm5.org/files/rpm/rpm-5.2/%{name}-%{version}.tar.gz
71# Source0-md5: 9126c960be02f2b0d6068801aa27fde7
ff7bc1e6 72Source1: %{name}.groups
c2673e18 73Source2: %{name}.platform
ff7bc1e6 74Source3: %{name}-install-tree
80b8a1f9 75Source4: %{name}-find-spec-bcond
cf709a39 76Source5: %{name}-hrmib-cache
80b8a1f9
JB
77Source6: %{name}-groups-po.awk
78Source7: %{name}-compress-doc
79Source8: %{name}-check-files
80Source9: %{name}-php-provides
81Source10: %{name}-php-requires
fbc0ff35 82Source11: %{name}.sysinfo
80b8a1f9 83Source12: perl.prov
d0370fe5 84Source13: %{name}-user_group.sh
85Source14: %{name}.sysconfig
1f625675
JB
86Source15: %{name}-macros.java
87Source16: %{name}-java-requires
a4b7ef27 88# http://svn.pld-linux.org/banner.sh/
1c2e2d8e 89Source17: banner.sh
cf198901 90Source18: %{name}-pld.macros
54eb1770 91Source19: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
317ef122 92# Source19-md5: 08b29584dd349aac9caa7610131a0a88
c75b3936 93Source20: %{name}-mimetypedeps
25ac75ae
AM
94Source100: %{name}-macros-athlon
95Source101: %{name}-macros-i386
96Source102: %{name}-macros-i486
97Source103: %{name}-macros-i586
98Source104: %{name}-macros-i686
99Source105: %{name}-macros-noarch
c8da1e4e
AM
100Source106: %{name}-macros-pentium3
101Source107: %{name}-macros-pentium4
102Source108: %{name}-macros-ppc
103Source109: %{name}-macros-x86_64
104Source110: %{name}-macros-ia32e
105Source111: %{name}-macros-amd64
25ac75ae 106
f05db907 107Patch0: %{name}-branch.patch
2f0ee4ec 108Patch1: %{name}-man_pl.patch
38e53563 109Patch2: %{name}-popt-aliases.patch
b174986a 110Patch3: %{name}-rpmpopt.patch
3465efba 111Patch4: %{name}-perl-macros.patch
c1768ce2 112Patch5: %{name}-perl-req-perlfile.patch
f14234e4
JB
113Patch6: %{name}-noexpand.patch
114Patch7: %{name}-scripts-closefds.patch
7a3b1f24 115Patch8: %{name}-php-macros.patch
f14234e4
JB
116Patch9: %{name}-gettext-in-header.patch
117Patch10: %{name}-compress-doc.patch
6a8612bc 118Patch11: %{name}-lua.patch
ec44785a 119Patch12: %{name}-am.patch
7a3b1f24 120
f14234e4 121Patch14: %{name}-etc_dir.patch
f14234e4 122Patch16: %{name}-php-deps.patch
fc60c9f3 123Patch17: %{name}-macros.patch
5251ec9e 124Patch18: %{name}-macros-th.patch
32d103b5 125Patch19: %{name}-glob.patch
7a3b1f24 126
644d8958 127Patch23: %{name}-pkgconfigdeps.patch
7a3b1f24 128
f14234e4
JB
129Patch26: %{name}-notsc.patch
130Patch27: %{name}-hack-norpmlibdep.patch
7a3b1f24 131
f14234e4 132Patch32: %{name}-pld-autodep.patch
950eead3 133Patch34: %{name}-epoch0.patch
f14234e4
JB
134Patch35: %{name}-perl_req-INC_dirs.patch
135Patch36: %{name}-debuginfo.patch
136Patch37: %{name}-doxygen_hack.patch
d8f2cbc6 137Patch38: %{name}-perl_req-use_base.patch
a0e476f5 138Patch39: %{name}-perl_req-skip_multiline.patch
ee236a2b 139Patch40: %{name}-perl_req-heredocs_pod.patch
7a3b1f24 140
9282ffe4
AF
141Patch41: vendor-pld.patch
142
bb98669b 143Patch42: %{name}-old-fileconflicts-behaviour.patch
644d8958 144
5790b583 145Patch46: %{name}-mono.patch
8482995c 146Patch47: %{name}-javadeps.patch
fbc0ff35 147
80e9f34d 148Patch52: %{name}-morearchs.patch
644d8958 149
d6080f70 150Patch55: %{name}-truncate-cvslog.patch
644d8958 151
59a562c2 152Patch59: %{name}-libtool-deps.patch
c75b3936 153Patch60: %{name}-mimetype.patch
7ffa7946 154Patch61: %{name}-sparc64.patch
7f26883c 155Patch62: %{name}-gendiff.patch
154aa589 156Patch63: %{name}-lua-exit-chroot-correctly.patch
71c31e2b 157Patch70: %{name}-configure-autoconf.patch
955f2725 158URL: http://rpm5.org/
6a8612bc 159BuildRequires: autoconf >= 2.60
644d8958 160BuildRequires: automake >= 1.4
87ef0d95 161BuildRequires: beecrypt-devel >= %{beecrypt_ver}
33be5db0 162BuildRequires: bzip2-devel >= 1.0.2-17
858aa7d0 163%{?with_db:BuildRequires: db-devel >= %{reqdb_ver}}
33be5db0 164BuildRequires: elfutils-devel >= 0.108
0ef6aeae 165#BuildRequires: gettext-autopoint >= 0.11.4-2
d1795eb0 166BuildRequires: gettext-devel >= 0.11.4-2
f7100a40 167BuildRequires: keyutils-devel
241257bf 168BuildRequires: libmagic-devel
8e159d42 169%{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
84cdee7a
JB
170# needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
171BuildRequires: libstdc++-devel
b60c74c3 172BuildRequires: libtool >= 1:1.4.2-9
33be5db0 173%if %{with neon}
fe861705 174BuildRequires: libxml2-devel
83d6a3fe 175BuildRequires: neon-devel >= 0.25.5
33be5db0 176%endif
7973b351 177BuildRequires: patch >= 2.2
1d49ffbc 178BuildRequires: popt-devel >= %{reqpopt_ver}
6a8612bc 179%{?with_system_lua:BuildRequires: lua51-devel >= 5.1.2}
950eead3
ER
180%{?with_python:BuildRequires: python-devel >= 1:2.3}
181BuildRequires: python-modules >= 1:2.3
2a813afe 182%{?with_python:BuildRequires: rpm-pythonprov}
241257bf 183%{?with_sqlite:BuildRequires: sqlite3-devel}
874f4c9a 184BuildRequires: zlib-devel
5c2ab5c7
AM
185%if %{with apidocs}
186BuildRequires: doxygen
187BuildRequires: ghostscript
188BuildRequires: graphviz
189BuildRequires: tetex-pdftex
190%endif
a6e56ce4 191%if %{with static}
e6090a7b 192# Require static library only for static build
87ef0d95 193BuildRequires: beecrypt-static >= %{beecrypt_ver}
33be5db0 194BuildRequires: bzip2-static >= 1.0.2-17
858aa7d0 195%{?with_db:BuildRequires: db-static >= %{reqdb_ver}}
290c1c30 196BuildRequires: elfutils-static
10abbd40 197BuildRequires: glibc-static >= 2.2.94
241257bf 198BuildRequires: libmagic-static
8e159d42 199%{?with_selinux:BuildRequires: libselinux-static >= 1.18}
003a039e 200BuildRequires: popt-static >= %{reqpopt_ver}
1d49ffbc 201BuildRequires: zlib-static
7a9d72ce 202%endif
66edd895 203Requires: %{name}-base = %{version}-%{release}
b26a9709 204Requires: %{name}-lib = %{version}-%{release}
10abbd40
ER
205Requires: beecrypt >= %{beecrypt_ver}
206Requires: popt >= %{reqpopt_ver}
0229a8b9
AM
207Provides: rpm-db-ver = %{reqdb_ver}
208Obsoletes: rpm-getdeps
4adb7d05 209%{!?with_static:Obsoletes: rpm-utils-static}
874f4c9a 210Conflicts: glibc < 2.2.92
8ee1c72c
AM
211# db4.6 poldek needed
212Conflicts: poldek < 0.21-0.20070703.00.3
d268a169
AM
213# segfaults with lzma 0.42.2
214Conflicts: lzma-libs < 4.999.3
1d49ffbc 215BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6d82b332 216
4adb7d05
JB
217%define _binary_payload w9.gzdio
218%define _noPayloadPrefix 1
6d82b332 219
4cd84746
JB
220# don't require very fresh rpm.macros to build
221%define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
950eead3 222%define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
9f517079 223%define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
80e9f34d 224%define ppc ppc ppc7400 ppc7450
9f517079 225%define x8664 amd64 ia32e x86_64
4cd84746 226
89427592 227# stabilize new build environment
f9ac32aa
AM
228%define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
229%define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
230%define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
89427592 231
d755a548 232%define _rpmlibdir /usr/lib/rpm
950eead3 233%define _noautocompressdoc RPM-GPG-KEY
d755a548 234
573e40e1
PS
235%define specflags -fno-strict-aliasing
236
ff7bc1e6 237%description
238RPM is a powerful package manager, which can be used to build,
239install, query, verify, update, and uninstall individual software
cf6faebc 240packages. A package consists of an archive of files, and package
fed73700 241information, including name, version, and description.
242
dd85fadc
JR
243%description -l de.UTF-8
244RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
fed73700 245Installation, Anfrage, Verifizierung, Aktualisierung und
246Uninstallation individueller Softwarepakete. Ein Paket besteht aus
247einem Archiv Dateien und Paketinformation, inklusive Name, Version und
313a4d1a 248Beschreibung.
249
dd85fadc 250%description -l es.UTF-8
313a4d1a 251RPM es un poderoso administrador de paquetes, que puede ser usado para
252construir, instalar, pesquisar, verificar, actualizar y desinstalar
253paquetes individuales de software. Un paquete consiste en un
dd85fadc
JR
254almacenaje de archivos, y información sobre el paquete, incluyendo
255nombre, versión y descripción.
256
257%description -l pl.UTF-8
258RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
259przebudowanie, instalację czy weryfikację dowolnego pakietu.
260Informacje dotyczące każdego pakietu, takie jak jego opis, lista
261plików wchodzących w skład pakietu, zależności od innych pakietów, są
262przechowywane w bazie danych i można je uzyskać za pomocą opcji
313a4d1a 263odpytywania programu rpm.
264
dd85fadc
JR
265%description -l pt_BR.UTF-8
266RPM é um poderoso gerenciador de pacotes, que pode ser usado para
313a4d1a 267construir, instalar, pesquisar, verificar, atualizar e desinstalar
268pacotes individuais de software. Um pacote consiste de um conjunto de
dd85fadc
JR
269arquivos e informações adicionais, incluindo nome, versão e descrição
270do pacote, permissões dos arquivos, etc.
271
272%description -l ru.UTF-8
273RPM - это мощный менеджер пакетов, который может быть использован для
274создания, инсталляции, запросов (query), проверки, обновления и
275удаления программных пакетов. Пакет состоит из файлового архива и
276служебной информации, включающей название, версию, описание и другие
277данные о пакете.
278
279%description -l uk.UTF-8
280RPM - це потужний менеджер пакетів, що може бути використаний для
281створення, інсталяції, запитів (query), перевірки, поновлення та
282видалення програмних пакетів. Пакет складається з файлового архіву та
283службової інформації, що містить назву, версію, опис та іншу
284інформацію про пакет.
7c6dc55f 285
66edd895
JB
286%package base
287Summary: RPM base package - scripts used by rpm packages themselves
4ea2ed33 288Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
66edd895 289Group: Base
1d9ca0c1 290Requires: filesystem
950eead3 291Obsoletes: rpm-scripts
66edd895
JB
292Obsoletes: vserver-rpm
293
294%description base
295The RPM base package contains scripts used by rpm packages themselves.
296These include:
297- scripts for adding/removing groups and users needed for rpm
298 packages,
299- banner.sh to display %%banner messages from rpm scriptlets.
300
dd85fadc
JR
301%description base -l pl.UTF-8
302Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
66edd895 303Zawiera on:
dd85fadc
JR
304- skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
305- banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
66edd895 306
69131f1a
JB
307%package lib
308Summary: RPMs library
4ea2ed33 309Summary(pl.UTF-8): Biblioteki RPM-a
69131f1a 310Group: Libraries
33be5db0 311Requires: beecrypt >= %{beecrypt_ver}
858aa7d0 312%{?with_db:Requires: db >= %{reqdb_ver}}
241257bf 313Requires: libmagic >= 1.15-2
d1795eb0 314%{?with_selinux:Requires: libselinux >= 1.18}
69131f1a 315Requires: popt >= %{reqpopt_ver}
d1795eb0 316Obsoletes: rpm-libs
69131f1a
JB
317# avoid SEGV caused by mixed db versions
318Conflicts: poldek < 0.18.1-16
319
320%description lib
321RPMs library.
322
dd85fadc 323%description lib -l pl.UTF-8
69131f1a
JB
324Biblioteki RPM-a.
325
fed73700 326%package devel
3f2d796a 327Summary: Header files for rpm libraries
4ea2ed33
ER
328Summary(de.UTF-8): Header-Dateien für rpm Libraries
329Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
330Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
331Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
332Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
333Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
89f92de0 334Group: Development/Libraries
153e5706 335Requires: %{name}-lib = %{version}-%{release}
87ef0d95 336Requires: beecrypt-devel >= %{beecrypt_ver}
fea3cb89 337Requires: bzip2-devel
858aa7d0 338%{?with_db:Requires: db-devel >= %{reqdb_ver}}
5c583f90 339Requires: elfutils-devel
f7100a40 340Requires: keyutils-devel
241257bf 341Requires: libmagic-devel
10abbd40 342%{?with_selinux:Requires: libselinux-devel}
a998ac11 343Requires: popt-devel >= %{reqpopt_ver}
fea3cb89 344Requires: zlib-devel
cf6faebc 345
346%description devel
3f2d796a
JB
347The RPM packaging system includes C libraries that make it easy to
348manipulate RPM packages and databases. They are intended to ease the
cf6faebc 349creation of graphical package managers and other tools that need
3f2d796a
JB
350intimate knowledge of RPM packages. This package contains header files
351for these libraries.
fed73700 352
dd85fadc
JR
353%description devel -l de.UTF-8
354Der RPM-Packensystem enthält eine C-Library, die macht es einfach
355RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
fed73700 356Vereinfachung des Schaffens grafischer Paket-Manager und anderer
313a4d1a 357Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
358
dd85fadc 359%description devel -l es.UTF-8
313a4d1a 360El sistema de empaquetado RPM incluye una biblioteca C que vuelve
dd85fadc
JR
361fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
362facilitar la creación de administradores gráficos de paquetes y otras
20f89981 363herramientas que necesiten un conocimiento profundo de paquetes RPM.
9e42d68a 364
dd85fadc
JR
365%description devel -l pl.UTF-8
366System RPM zawiera biblioteki C, które ułatwiają manipulowanie
367pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
368graficznych programów zarządzających pakietami oraz innych narzędzi,
369które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
370zawiera pliki nagłówkowe wspomnianych bibliotek.
371
372%description devel -l pt_BR.UTF-8
373O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
374a manipulação de pacotes e bases de dados RPM. Seu objetivo é
375facilitar a criação de gerenciadores gráficos de pacotes e outras
edacdf8f 376ferramentas que precisem de conhecimento profundo de pacotes RPM.
377
dd85fadc
JR
378%description devel -l ru.UTF-8
379Система управления пакетами RPM содержит библиотеку C, которая
380упрощает манипуляцию пакетами RPM и соответствующими базами данных.
381Эта библиотека предназначена для облегчения создания графических
382пакетных менеджеров и других утилит, которым необходимо работать с
383пакетами RPM.
7c6dc55f 384
dd85fadc
JR
385%description devel -l uk.UTF-8
386Система керування пакетами RPM містить бібліотеку C, котра спрощує
387роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
388призначена для полегшення створення графічних пакетних менеджерів та
389інших утиліт, що працюють з пакетами RPM.
7c6dc55f 390
fed73700 391%package static
9e42d68a 392Summary: RPM static libraries
4ea2ed33
ER
393Summary(de.UTF-8): RPMs statische Libraries
394Summary(pl.UTF-8): Biblioteki statyczne RPM-a
395Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
396Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
397Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
edacdf8f 398Group: Development/Libraries
153e5706 399Requires: %{name}-devel = %{version}-%{release}
87ef0d95 400Requires: beecrypt-static >= %{beecrypt_ver}
df76dbd9 401Requires: bzip2-static
858aa7d0 402%{?with_db:Requires: db-static >= %{reqdb_ver}}
ff03e01a 403Requires: elfutils-static
f7100a40 404Requires: keyutils-static
241257bf 405Requires: libmagic-static
a998ac11 406Requires: popt-static >= %{reqpopt_ver}
df76dbd9 407Requires: zlib-static
edacdf8f 408
409%description static
20f89981 410RPM static libraries.
fed73700 411
dd85fadc 412%description static -l de.UTF-8
20f89981 413RPMs statische Libraries.
9e42d68a 414
dd85fadc 415%description static -l pl.UTF-8
0a7ae9bc 416Biblioteki statyczne RPM-a.
313a4d1a 417
dd85fadc
JR
418%description static -l pt_BR.UTF-8
419Bibliotecas estáticas para desenvolvimento.
edacdf8f 420
dd85fadc
JR
421%description static -l ru.UTF-8
422Система управления пакетами RPM содержит библиотеку C, которая
423упрощает манипуляцию пакетами RPM и соответствующими базами данных.
424Это статическая библиотека RPM.
7c6dc55f 425
dd85fadc
JR
426%description static -l uk.UTF-8
427Система керування пакетами RPM містить бібліотеку C, котра спрощує
428роботу з пакетами RPM та відповідними базами даних. Це статична
429бібліотека RPM.
7c6dc55f 430
fed73700 431%package utils
8482995c 432Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
433Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
434Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
edacdf8f 435Group: Applications/File
153e5706 436Requires: %{name} = %{version}-%{release}
a998ac11 437Requires: popt >= %{reqpopt_ver}
86b85368
AG
438%if %{with suggest_tags}
439Suggests: bzip2
440Suggests: gzip
86b85368 441%endif
695e60ad 442Conflicts: filesystem-debuginfo < 3.0-16
edacdf8f 443
444%description utils
8482995c 445Additional utilities for managing RPM packages and database.
fed73700 446
dd85fadc
JR
447%description utils -l de.UTF-8
448Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
9e42d68a 449
dd85fadc
JR
450%description utils -l pl.UTF-8
451Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
fed73700 452
92b3f576 453%package utils-perl
8482995c 454Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
455Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
456Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
92b3f576 457Group: Applications/File
153e5706 458Requires: %{name}-utils = %{version}-%{release}
92b3f576 459Requires: popt >= %{reqpopt_ver}
460
461%description utils-perl
8482995c 462Additional utilities for managing RPM packages and database.
92b3f576 463
dd85fadc
JR
464%description utils-perl -l de.UTF-8
465Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
92b3f576 466
dd85fadc
JR
467%description utils-perl -l pl.UTF-8
468Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
92b3f576 469
a00926bc
JB
470%package utils-static
471Summary: Static rpm utilities
4ea2ed33 472Summary(pl.UTF-8): Statyczne narzędzia rpm
a00926bc 473Group: Applications/System
153e5706 474Requires: %{name} = %{version}-%{release}
a00926bc
JB
475
476%description utils-static
477Static rpm utilities for repairing system in case something with
478shared libraries used by rpm become broken. Currently it contains rpmi
479binary, which can be used to install/upgrade/remove packages without
480using shared libraries (well, in fact with exception of NSS modules).
481
dd85fadc
JR
482%description utils-static -l pl.UTF-8
483Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
484związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
485Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
486uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
487(z wyjątkiem modułów NSS).
a00926bc 488
fed73700 489%package build
e191287c 490Summary: Scripts for building binary RPM packages
4ea2ed33
ER
491Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
492Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
493Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
494Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
495Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
e191287c 496Group: Applications/File
8f76a271 497Requires(pre): findutils
950eead3 498Requires: %{name}-build-macros >= 1.433-2
153e5706 499Requires: %{name}-utils = %{version}-%{release}
e191287c 500Requires: /bin/id
501Requires: awk
cfa7898a 502Requires: bzip2
e950a6d7 503Requires: chrpath >= 0.10-4
b6547e10 504Requires: cpio
e191287c 505Requires: diffutils
195f647c 506Requires: elfutils
583135b4 507Requires: file >= 4.17
e191287c 508Requires: fileutils
509Requires: findutils
950eead3
ER
510%ifarch athlon
511Requires: gcc >= 3.0.3
512%else
513Requires: gcc
514%endif
e191287c 515Requires: glibc-devel
516Requires: grep
517Requires: gzip
518Requires: make
519Requires: patch
e191287c 520Requires: sed
521Requires: sh-utils
522Requires: tar
523Requires: textutils
ca3648b1 524Provides: rpmbuild(monoautodeps)
37ea389a 525Provides: rpmbuild(noauto) = 3
02d17bf9 526%ifarch %{x8664}
195f647c
JB
527Conflicts: automake < 1:1.7.9-2
528Conflicts: libtool < 2:1.5-13
529%endif
0096c5cd 530
e2025ad1 531%description build
58399c37 532Scripts for building binary RPM packages.
fed73700 533
dd85fadc
JR
534%description build -l de.UTF-8
535Scripts fürs Bauen binärer RPM-Pakete.
9e42d68a 536
dd85fadc
JR
537%description build -l pl.UTF-8
538Skrypty pomocnicze do budowania binarnych RPM-ów.
313a4d1a 539
dd85fadc
JR
540%description build -l pt_BR.UTF-8
541Este pacote contém scripts e programas executáveis que são usados para
cf6faebc 542construir pacotes usando o RPM.
e73478cd 543
dd85fadc
JR
544%description build -l ru.UTF-8
545Различные вспомогательные скрипты и исполняемые программы, которые
546используются для сборки RPM'ов.
7c6dc55f 547
dd85fadc
JR
548%description build -l uk.UTF-8
549Різноманітні допоміжні скрипти та утиліти, які використовуються для
550побудови RPM'ів.
7c6dc55f 551
8482995c
JB
552%package javaprov
553Summary: Additional utilities for checking Java provides/requires in RPM packages
554Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
555Group: Applications/File
556Requires: %{name} = %{version}-%{release}
557Requires: file
558Requires: findutils >= 1:4.2.26
559Requires: mktemp
560Requires: unzip
561
562%description javaprov
563Additional utilities for checking Java provides/requires in RPM
564packages.
565
566%description javaprov -l pl.UTF-8
567Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
568RPM.
569
69131f1a 570%package perlprov
8482995c 571Summary: Additional utilities for checking Perl provides/requires in RPM packages
4ea2ed33 572Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
8482995c 573Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
69131f1a
JB
574Group: Applications/File
575Requires: %{name} = %{version}-%{release}
576Requires: perl-devel
577Requires: perl-modules
578
579%description perlprov
8482995c 580Additional utilities for checking Perl provides/requires in RPM
69131f1a
JB
581packages.
582
dd85fadc
JR
583%description perlprov -l de.UTF-8
584Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
69131f1a 585
dd85fadc 586%description perlprov -l pl.UTF-8
8482995c
JB
587Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
588pakietach RPM.
69131f1a
JB
589
590%package pythonprov
8482995c
JB
591Summary: Python macros, which simplifies creation of RPM packages with Python software
592Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
69131f1a
JB
593Group: Applications/File
594Requires: %{name} = %{version}-%{release}
cd800b3c 595Requires: python
243c6264 596Requires: python-modules
69131f1a
JB
597
598%description pythonprov
8482995c 599Python macros, which simplifies creation of RPM packages with Python
69131f1a
JB
600software.
601
dd85fadc 602%description pythonprov -l pl.UTF-8
8482995c 603Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
69131f1a
JB
604Pythonie.
605
606%package php-pearprov
8482995c
JB
607Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
608Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
69131f1a
JB
609Group: Applications/File
610Requires: %{name} = %{version}-%{release}
632f1b5c 611Requires: sed >= 4.0
69131f1a
JB
612
613%description php-pearprov
8482995c 614Additional utilities for checking PHP PEAR provides/requires in RPM
69131f1a
JB
615packages.
616
dd85fadc 617%description php-pearprov -l pl.UTF-8
8482995c
JB
618Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
619pakietach RPM.
69131f1a
JB
620
621%package -n python-rpm
622Summary: Python interface to RPM library
4ea2ed33
ER
623Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
624Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
69131f1a
JB
625Group: Development/Languages/Python
626Requires: %{name} = %{version}-%{release}
627%pyrequires_eq python
628Obsoletes: rpm-python
629
630%description -n python-rpm
631The rpm-python package contains a module which permits applications
632written in the Python programming language to use the interface
633supplied by RPM (RPM Package Manager) libraries.
634
635This package should be installed if you want to develop Python
636programs that will manipulate RPM packages and databases.
637
dd85fadc
JR
638%description -n python-rpm -l pl.UTF-8
639Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
640Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
69131f1a 641
dd85fadc
JR
642Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
643Pythonie programy manipulujące pakietami i bazami danych rpm.
69131f1a 644
dd85fadc
JR
645%description -n python-rpm -l pt_BR.UTF-8
646O pacote rpm-python contém um módulo que permite que aplicações
69131f1a
JB
647escritas em Python utilizem a interface fornecida pelas bibliotecas
648RPM (RPM Package Manager).
649
dd85fadc 650Esse pacote deve ser instalado se você quiser desenvolver programas em
69131f1a
JB
651Python para manipular pacotes e bancos de dados RPM.
652
5c2ab5c7
AM
653%package apidocs
654Summary: RPM API documentation and guides
655Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
656Group: Documentation
657
658%description apidocs
659Documentation for RPM API and guides in HTML format generated from rpm
660sources by doxygen.
661
662%description apidocs -l pl.UTF-8
663Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
664źrodeł RPM-a przez doxygen.
665
e2025ad1 666%prep
fc60c9f3 667%setup -q -n %{name}-%{version}%{?subver}
317ef122 668#patch0 -p1
2f0ee4ec 669%patch1 -p1
4d5b8e4c 670%patch2 -p1
ece43ea2 671%patch3 -p1
7a3b1f24
AM
672%patch4 -p1
673%patch5 -p1
ec44785a 674#%patch6 -p1 // in upstream
c1768ce2 675%patch7 -p1
7a3b1f24 676%patch8 -p1
fefe9d30 677%patch9 -p1
ec44785a 678# compress doc in upstream
ece43ea2 679%patch10 -p1
6a8612bc 680%{?with_system_lua:%patch11 -p1}
9282ffe4 681#patch12 -p1
2a321171 682# CHECK ME - macrofiles: ~/etc could be used
98a21402 683#%%patch14 -p1
fefe9d30 684%patch16 -p1
8e989934 685echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
686echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
c2673e18 687echo '# obsoleted file' > macros.python
ac090b0f
ER
688echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
689echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
120d96b6 690echo '%%define __mono_provides /usr/lib/rpm/mono-find-provides' > macros.mono
691echo '%%define __mono_requires /usr/lib/rpm/mono-find-requires' >> macros.mono
80b8a1f9
JB
692install %{SOURCE9} scripts/php.prov.in
693install %{SOURCE10} scripts/php.req.in
694install %{SOURCE12} scripts/perl.prov
ec44785a
BZ
695# looks like upstream??
696#%patch23 -p1
169dcb39 697
a736a97d 698%ifarch i386 i486
0bf2c47b
AM
699# disable TSC
700%patch26 -p1
701%endif
24123ddd 702%patch27 -p1
ec44785a
BZ
703# to port
704#%patch32 -p1
950eead3 705%patch34 -p1
7a3b1f24 706%patch35 -p0
cf198901 707%patch36 -p1
e24da480 708%patch37 -p1
9282ffe4
AF
709#patch38 -p1 applied
710#patch39 -p1 applied
711#patch40 -p1 applied
712%patch41 -p1
ece43ea2 713%patch42 -p1
2a321171 714%patch46 -p1
ec44785a
BZ
715# port to new implementation
716#%patch47 -p1
241257bf 717# OLD COMMENTED OUT
950eead3 718#%%patch52 -p1 -- morearchs (rpmrc patch) adds ppc7400, ppc7400
d6080f70 719%patch55 -p1
59a562c2 720%patch59 -p1
fc60c9f3 721%patch17 -p1
5251ec9e 722%patch18 -p1
317ef122
JR
723# Maybe, at last we can remove this?
724#patch19 -p1
ec44785a
BZ
725# port to new implementation
726#%patch60 -p1
7ffa7946 727%ifarch sparc64
728%patch61 -p1
729%endif
7f26883c 730%patch62 -p1
154aa589 731%patch63 -p1
9282ffe4 732%patch70 -p1 -b .wiget
d36cb682 733
7a3b1f24
AM
734cd scripts
735mv -f perl.req perl.req.in
736mv -f perl.prov perl.prov.in
737cd ..
633d1e9e 738
cd86db2e 739# generate Group translations to *.po
80b8a1f9 740awk -f %{SOURCE6} %{SOURCE1}
fefe9d30
JB
741
742# update macros paths
241257bf
AM
743#for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
744# sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp
745# mv -f ${f}.tmp $f
746#done
0d76071c 747
87ef0d95 748%build
ea816ea6 749%{__libtoolize}
c0a9be8f 750#%{__autopoint}
ceaaacee 751%{__aclocal}
4cd84746 752%{__autoheader}
7a9d72ce 753%{__autoconf}
7a9d72ce 754%{__automake}
7a9d72ce 755
cd86db2e 756# config.guess doesn't handle athlon, so we have to change it by hand.
757# rpm checks for CPU type at runtime, but it looks better
241257bf 758#sed -i -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' -e 's|@host_cpu@|%{_target_cpu}|' macros.in
7a9d72ce 759
d268a169 760%{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"}
89427592 761# pass CC and CXX too in case of building with some older configure macro
624f96ff 762%configure \
f9ac32aa
AM
763 CC="%{__newcc}" \
764 CXX="%{__newcxx}" \
765 CPP="%{__newcpp}" \
01d7a578 766 WITH_PERL_VERSION=no \
33be5db0 767 %{?with_autoreqdep:--enable-adding-packages-names-in-autogenerated-dependancies} \
cd86db2e 768 --enable-shared \
874f4c9a 769 --enable-static \
5c2ab5c7 770 %{!?with_apidocs:--without-apidocs} \
f3cb8244 771 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
a6e56ce4 772 %{!?with_python:--without-python} \
241257bf
AM
773 --with%{!?with_selinux:out}-selinux \
774 --with-libelf \
775 --with-zlib=external \
776 --with-bzip2=external \
777 --with-beecrypt=external \
1afa05ce 778 --with-lzma=external \
241257bf
AM
779 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
780 --with-file=external \
781 --with-popt=external \
858aa7d0 782 --with-db=%{?with_db:external}%{!?with_db:no} \
241257bf 783 --with-sqlite=%{?with_sqlite:external}%{!?with_sqlite:no} \
950eead3 784 --with-dbapi=%{!?with_sqlite_dbapi:db}%{?with_sqlite_dbapi:sqlite} \
6a8612bc 785 --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
557fa0ca 786 --with-pcre=no \
241257bf
AM
787 --with-keyutils=none \
788 --without-path-versioned \
dd8c7988 789 --with-path-macros='%{_rpmlibdir}/macros:%{_rpmlibdir}/macros.pld:%{_rpmlibdir}/macros.build:%{_rpmlibdir}/%%{_target}/macros:%{_sysconfdir}/rpm/macros.*:%{_sysconfdir}/rpm/macros:%{_sysconfdir}/rpm/%%{_target}/macros:~/etc/rpmmacros:~/etc/.rpmmacros:~/.rpmmacros' \
241257bf 790 --with-bugreport="http://bugs.pld-linux.org/"
cf6faebc 791
25e974c7 792%{__make} -j1 \
f9ac32aa
AM
793 CC="%{__cc}" \
794 CXX="%{__cxx}" \
241257bf 795 CPP="%{__cpp}"
33be5db0 796
5c2ab5c7
AM
797%{?with_apidocs:%{__make} apidocs}
798
b064b8e6 799%install
ff7bc1e6 800rm -rf $RPM_BUILD_ROOT
54eb1770
AM
801install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm,/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
802
803install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
76214164 804
a5e7fb84 805%{__make} install \
241257bf
AM
806 pkgconfigdir=%{_pkgconfigdir} \
807 DESTDIR=$RPM_BUILD_ROOT
718426e1 808
25ac75ae
AM
809# install ARCH macros
810install -d $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux
811install %{SOURCE105} $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux/macros
812
813%ifarch %{ix86}
814install -d $RPM_BUILD_ROOT%{_rpmlibdir}/{i386,i486,i586,i686,athlon,pentium3,pentium4}-linux
815install %{SOURCE100} $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
816install %{SOURCE101} $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
817install %{SOURCE102} $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
818install %{SOURCE103} $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
819install %{SOURCE104} $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
c8da1e4e
AM
820install %{SOURCE106} $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
821install %{SOURCE107} $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
25ac75ae
AM
822%endif
823
824%ifarch %{x8664}
825install -d $RPM_BUILD_ROOT%{_rpmlibdir}/{x86_64,ia32e,amd64}-linux
c8da1e4e
AM
826install %{SOURCE109} $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
827install %{SOURCE110} $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
828install %{SOURCE111} $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
25ac75ae
AM
829%endif
830
831%ifarch %{ppc}
832install -d $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux
c8da1e4e 833install %{SOURCE108} $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
25ac75ae
AM
834%endif
835
2eb9303e 836cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
ca076ee5 837# first platform file entry can't contain regexps
2eb9303e 838%{_target_cpu}-%{_target_vendor}-linux
caf453d4 839
2d8ae03e
AM
840# x86_64 things
841%ifarch x86_64
53fd58bc 842x86_64-[^-]*-[Ll]inux(-gnu)?
9cfcb6c8 843amd64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 844%endif
2d8ae03e 845%ifarch amd64
53fd58bc
AM
846amd64-[^-]*-[Ll]inux(-gnu)?
847x86_64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 848%endif
2d8ae03e 849%ifarch ia32e
53fd58bc
AM
850ia32e-[^-]*-[Ll]inux(-gnu)?
851x86_64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
852%endif
853
854# x86 things
06bd38df 855%ifarch athlon %{x8664}
53fd58bc 856athlon-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 857%endif
06bd38df 858%ifarch pentium4 athlon %{x8664}
53fd58bc 859pentium4-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 860%endif
06bd38df 861%ifarch pentium3 pentium4 athlon %{x8664}
53fd58bc 862pentium3-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 863%endif
06bd38df 864%ifarch i686 pentium3 pentium4 athlon %{x8664}
53fd58bc 865i686-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 866%endif
06bd38df 867%ifarch i586 i686 pentium3 pentium4 athlon %{x8664}
53fd58bc 868i586-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 869%endif
06bd38df 870%ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664}
53fd58bc 871i486-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 872%endif
06bd38df 873%ifarch %{ix86} %{x8664}
53fd58bc 874i386-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
875%endif
876
5074eba9 877%ifarch alpha
53fd58bc 878alpha-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
879%endif
880
881%ifarch ia64
53fd58bc 882ia64-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
883%endif
884
885%ifarch ppc64
53fd58bc
AM
886powerpc64-[^-]*-[Ll]inux(-gnu)?
887ppc64-[^-]*-[Ll]inux(-gnu)?
5074eba9 888%endif
950eead3 889%ifarch %{ppc} ppc64
53fd58bc
AM
890powerpc-[^-]*-[Ll]inux(-gnu)?
891ppc-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
892%endif
893
894%ifarch s390x
53fd58bc 895s390x-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
896%endif
897%ifarch s390 s390x
53fd58bc 898s390-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
899%endif
900
901%ifarch sparc64
53fd58bc
AM
902sparc64-[^-]*-[Ll]inux(-gnu)?
903sparcv8-[^-]*-[Ll]inux(-gnu)?
904sparcv9-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
905%endif
906%ifarch sparcv9
53fd58bc
AM
907sparcv8-[^-]*-[Ll]inux(-gnu)?
908sparcv9-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
909%endif
910%ifarch sparc sparcv9 sparc64
53fd58bc 911sparc-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
912%endif
913
914# noarch
2eb9303e
ER
915noarch-[^-]*-.*
916EOF
2d8ae03e 917
137e2891 918%ifarch %{ppc}
a05b34dc 919#sed -e '/_target_platform/s/[%]{_target_cpu}/ppc/' \
920# -i $RPM_BUILD_ROOT%{_rpmlibdir}/ppc74[05]0-linux/macros
137e2891 921%endif
922
02919de5
JK
923rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
924rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
925rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
950eead3 926rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
02919de5 927
644d8958
JB
928# not installed since 4.4.8 (-tools-perl subpackage)
929install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
930
d755a548
JK
931install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
932install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
933install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
5790b583 934install macros.mono $RPM_BUILD_ROOT%{_rpmlibdir}/macros.mono
1f625675 935install %{SOURCE15} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.java
cf198901 936install %{SOURCE18} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.pld
7ba63f26 937
61f7e1b3 938install %{SOURCE1} doc/manual/groups
d755a548 939install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
80b8a1f9
JB
940install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
941install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
942install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
d0370fe5 943install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
7d8492bb 944install %{SOURCE16} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
d755a548
JK
945install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
946install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
c75b3936 947install %{SOURCE20} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
cf709a39 948install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
d0370fe5 949install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm
e663e5ff 950
1c2e2d8e 951install %{SOURCE17} $RPM_BUILD_ROOT%{_bindir}/banner.sh
7c6dc55f 952
950eead3
ER
953install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
954
955touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
956touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
957install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
958touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
959touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
960touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
fbc0ff35 961
e663e5ff
JB
962cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
963# customized rpm macros - global for host
964#
40c1ea77
AF
965#%%_install_langs pl_PL:en_US
966%%distribution PLD
541eacd3
JB
967#
968# remove or replace with file_contexts path if you want to use custom
969# SELinux file contexts policy instead of one stored in packages payload
31858397
JB
970%%_install_file_context_path %%{nil}
971%%_verify_file_context_path %%{nil}
627d5615
ER
972
973# If non-zero, all erasures will be automagically repackaged.
974#%%_repackage_all_erasures 1
09bb810c
AF
975EOF
976
3d9806c2 977cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
99a3012c 978# global list of files (regexps) which don't generate Provides
3d9806c2
JB
979EOF
980cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
99a3012c 981# global list of script capabilities (regexps) not to be used in Provides
3d9806c2
JB
982EOF
983cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
99a3012c 984# global list of files (regexps) which don't generate Requires
e93003df
ER
985^%{_examplesdir}/
986^%{_docdir}/
3d9806c2
JB
987EOF
988cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
99a3012c 989# global list of script capabilities (regexps) not to be used in Requires
3d9806c2
JB
990EOF
991cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
99a3012c 992# global list of capabilities (SONAME, perl(module), php(module) regexps)
3d9806c2 993# which don't generate dependencies on package NAMES
195f647c 994# -- OpenGL implementation
f694a4d9
JB
995^libGL.so.1
996^libGLU.so.1
195f647c
JB
997^libOSMesa.so
998# -- Glide
f694a4d9 999^libglide3.so.3
195f647c 1000# -- mozilla
f694a4d9
JB
1001^libgtkmozembed.so
1002^libgtksuperwin.so
1003^libxpcom.so
195f647c
JB
1004# -- X11 implementation
1005^libFS.so
1006^libI810XvMC.so
1007^libICE.so
1008^libSM.so
1009^libX11.so
1010^libXRes.so
1011^libXTrap.so
1012^libXaw.so
8c3b25a7 1013^libXcomposite.so
195f647c 1014^libXcursor.so
8c3b25a7
JB
1015^libXdamage.so
1016^libXdmcp.so
1017^libXevie.so
195f647c 1018^libXext.so
8c3b25a7 1019^libXfixes.so
195f647c
JB
1020^libXfont.so
1021^libXfontcache.so
1022^libXft.so
1023^libXi.so
1024^libXinerama.so
1025^libXmu.so
1026^libXmuu.so
1027^libXp.so
1028^libXpm.so
1029^libXrandr.so
1030^libXrender.so
1031^libXss.so
1032^libXt.so
1033^libXtst.so
1034^libXv.so
1035^libXvMC.so
1036^libXxf86dga.so
1037^libXxf86misc.so
1038^libXxf86rush.so
1039^libXxf86vm.so
37ea389a
JB
1040^libdps.so
1041^libdpstk.so
195f647c 1042^libfontenc.so
37ea389a 1043^libpsres.so
195f647c
JB
1044^libxkbfile.so
1045^libxkbui.so
eec3b202
JB
1046# -- fam / gamin
1047^libfam.so.0
ae866251
ER
1048# -- mdns-bonjour: mDNSResponder-libs / avahi-compat-libdns_sd
1049^libdns_sd.so.1
3d9806c2 1050EOF
a4852742
JB
1051cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
1052# global list of file masks not to be compressed in DOCDIR
1053EOF
3d9806c2 1054
f3fd387a 1055# for rpm -e|-U --repackage
a11e0e27
AM
1056install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
1057touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
f3fd387a 1058
950eead3
ER
1059# move rpm to /bin
1060mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
1061# move essential libs to /lib (libs that /bin/rpm links to)
ece880e2 1062for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
50dc9ac0
JK
1063 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
1064 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
c2673e18
AF
1065done
1066
31fb5b22 1067# Append rpm.platform contents to /usr/lib/rpm/${arch}-linux/macros
1068for m in $RPM_BUILD_ROOT%{_rpmlibdir}/*/macros ; do
1069 cat %{SOURCE2} | %{__sed} 's#@LIB@#%{_lib}#' >> $m
1070done
fca52ae1 1071# remove arch dependant macros which have no use on noarch
31fb5b22 1072%{__sed} -i -e '
1073/{__spec_install_post_strip}/d
1074/{__spec_install_post_chrpath}/d
1075/{__spec_install_post_compress_modules}/d
1076' $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux/macros
fca52ae1 1077
950eead3
ER
1078# Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
1079mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
1080
6f18cdb7
AF
1081%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1082%py_comp $RPM_BUILD_ROOT%{py_sitedir}
1083
241257bf 1084rm $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
01d7a578 1085
01d7a578 1086# wrong location, not used anyway
241257bf 1087rm $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
950eead3 1088# utils dropped in 4.4.8 -- their manuals
ece880e2 1089rm $RPM_BUILD_ROOT%{_mandir}/*/man8/rpmgraph.8
01d7a578 1090
90b03dd6 1091%find_lang %{name}
cf6faebc 1092
c2673e18 1093rm -rf manual
a998ac11
AF
1094cp -a doc/manual manual
1095rm -f manual/Makefile*
874f4c9a 1096
13eb5ebf 1097%clean
d7df46b8 1098rm -rf $RPM_BUILD_ROOT
76214164 1099
cc1a4992
ER
1100%triggerpostun lib -- %{name}-lib < %{version}
1101rm -f /var/lib/rpm/__db*
1102
1103%pretrans
1104# this needs to be a dir
1105if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
c1097150 1106 umask 022
cc1a4992
ER
1107 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
1108 mkdir %{_sysconfdir}/rpm/sysinfo
1109fi
1110
cf709a39
ER
1111%triggerpostun -- %{name} < 4.4.9-44
1112%{_rpmlibdir}/hrmib-cache
1113
ceaaacee
JB
1114%post lib -p /sbin/ldconfig
1115%postun lib -p /sbin/ldconfig
76214164 1116
37a5a2fc 1117%pretrans build
d755a548 1118find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
8f76a271 1119
3684d90f
JB
1120%files -f %{name}.lang
1121%defattr(644,root,root,755)
241257bf 1122%doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
3684d90f 1123
54eb1770
AM
1124%dir %{_sysconfdir}/pki/rpm-gpg
1125%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1126
7a9d72ce 1127%attr(755,root,root) /bin/rpm
35a6f2f9
JB
1128#%attr(755,root,root) %{_bindir}/rpmdb
1129#%attr(755,root,root) %{_bindir}/rpmquery
1130#%attr(755,root,root) %{_bindir}/rpmsign
1131#%attr(755,root,root) %{_bindir}/rpmverify
e73478cd 1132
66edd895 1133%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
950eead3 1134%dir %{_sysconfdir}/rpm/sysinfo
caf453d4 1135# these are ok to be replaced
950eead3 1136%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
caf453d4
AM
1137%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1138
e73478cd 1139
09bb810c 1140%{_mandir}/man8/rpm.8*
feb1f12e 1141%lang(fr) %{_mandir}/fr/man8/rpm.8*
e2025ad1 1142%lang(ja) %{_mandir}/ja/man8/rpm.8*
1162bdc1 1143%lang(ko) %{_mandir}/ko/man8/rpm.8*
ff7bc1e6 1144%lang(pl) %{_mandir}/pl/man8/rpm.8*
cf6faebc 1145%lang(ru) %{_mandir}/ru/man8/rpm.8*
740f105d 1146%lang(sk) %{_mandir}/sk/man8/rpm.8*
76214164 1147
e2025ad1 1148%dir /var/lib/rpm
f3fd387a 1149%dir %attr(700,root,root) /var/spool/repackage
a11e0e27
AM
1150%dir /var/lock/rpm
1151/var/lock/rpm/transaction
4acac5de 1152
cf709a39
ER
1153# exported package NVRA (stamped with install tid)
1154# net-snmp hrSWInstalledName queries, bash-completions
1155%dir /var/cache/hrmib
1156
4acac5de 1157#%attr(755,root,root) %{_rpmlibdir}/rpmd
4adb7d05 1158#%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]}
4acac5de
JB
1159#%attr(755,root,root) %{_rpmlibdir}/rpmk
1160#%attr(755,root,root) %{_rpmlibdir}/rpm[qv]
e2025ad1 1161
ec44785a 1162%{_rpmlibdir}/qf
d755a548
JK
1163%{_rpmlibdir}/rpmpopt*
1164%{_rpmlibdir}/macros
cf198901 1165%{_rpmlibdir}/macros.pld
9282ffe4 1166%{_rpmlibdir}/cpuinfo.yaml
3684d90f 1167
cf709a39
ER
1168%attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1169
66edd895
JB
1170%files base
1171%defattr(644,root,root,755)
492a2bd4 1172%dir %{_sysconfdir}/rpm
66edd895
JB
1173%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1174%dir %{_rpmlibdir}
1175%attr(755,root,root) %{_bindir}/banner.sh
1176%attr(755,root,root) %{_rpmlibdir}/user_group.sh
1177%dir /var/lib/banner
1178
874f4c9a
MM
1179%files lib
1180%defattr(644,root,root,755)
950eead3
ER
1181%attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1182%attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1183%attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1184%attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
a434679c 1185%attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
ece880e2 1186%attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
874f4c9a 1187
69131f1a
JB
1188%files devel
1189%defattr(644,root,root,755)
69131f1a
JB
1190%attr(755,root,root) %{_libdir}/librpm.so
1191%attr(755,root,root) %{_libdir}/librpm-%{sover}.so
950eead3
ER
1192%attr(755,root,root) %{_libdir}/librpmbuild.so
1193%attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
02510ee8
AM
1194%attr(755,root,root) %{_libdir}/librpmconstant.so
1195%attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
950eead3
ER
1196%attr(755,root,root) %{_libdir}/librpmdb.so
1197%attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
69131f1a
JB
1198%attr(755,root,root) %{_libdir}/librpmio.so
1199%attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
02510ee8
AM
1200%attr(755,root,root) %{_libdir}/librpmmisc.so
1201%attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
950eead3
ER
1202%{_libdir}/librpm*.la
1203%{_includedir}/rpm
1204%{_pkgconfigdir}/*.pc
69131f1a
JB
1205
1206%files static
1207%defattr(644,root,root,755)
1208%{_libdir}/librpm*.a
1209
1210%files utils
1211%defattr(644,root,root,755)
69131f1a 1212%attr(755,root,root) %{_bindir}/rpm2cpio
25e974c7 1213%attr(755,root,root) %{_bindir}/rpmconstant
69131f1a 1214%attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
69131f1a 1215%attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
25e974c7 1216%attr(755,root,root) %{_rpmlibdir}/tgpg
9282ffe4
AF
1217%dir %{_rpmlibdir}/bin
1218%attr(755,root,root) %{_rpmlibdir}/bin/debugedit
1219%attr(755,root,root) %{_rpmlibdir}/bin/grep
1220%attr(755,root,root) %{_rpmlibdir}/bin/mtree
1221%attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1222%attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1223%attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1224%attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
1225%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey
1226%attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
25e974c7 1227%{_mandir}/man1/rpmgrep.1*
69131f1a 1228%{_mandir}/man8/rpm2cpio.8*
950eead3 1229%{_mandir}/man8/rpmcache.8*
ec44785a 1230%{_mandir}/man8/rpmconstant.8*
69131f1a 1231%{_mandir}/man8/rpmdeps.8*
c0a9be8f 1232%{_mandir}/man8/rpmmtree.8*
69131f1a 1233%lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
950eead3 1234%lang(ja) %{_mandir}/ja/man8/rpmcache.8*
69131f1a
JB
1235%lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1236%lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
950eead3 1237%lang(pl) %{_mandir}/pl/man8/rpmcache.8*
69131f1a 1238%lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
69131f1a
JB
1239%lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1240
1241%files utils-perl
1242%defattr(644,root,root,755)
1243%attr(755,root,root) %{_rpmlibdir}/rpmdiff*
69131f1a
JB
1244
1245%if %{with static}
1246%files utils-static
1247%defattr(644,root,root,755)
1248%attr(755,root,root) %{_bindir}/rpm[ieu]
1249%attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1250%endif
1251
3684d90f 1252%files build
a45ae6d8 1253%defattr(644,root,root,755)
66edd895 1254%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
01d7a578
JB
1255%attr(755,root,root) %{_rpmlibdir}/brp-*
1256%attr(755,root,root) %{_rpmlibdir}/check-files
374b40ea 1257# %attr(755,root,root) %{_rpmlibdir}/check-prereqs
d755a548 1258%attr(755,root,root) %{_rpmlibdir}/compress-doc
241257bf 1259#%attr(755,root,root) %{_rpmlibdir}/config.*
d755a548 1260%attr(755,root,root) %{_rpmlibdir}/cross-build
d755a548 1261%attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
d755a548 1262%attr(755,root,root) %{_rpmlibdir}/getpo.sh
ec44785a 1263%attr(755,root,root) %{_rpmlibdir}/install-sh
d755a548 1264%attr(755,root,root) %{_rpmlibdir}/install-build-tree
01d7a578 1265%attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
d755a548 1266%attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
01d7a578 1267%attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
01d7a578 1268%attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
c75b3936 1269%attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
01d7a578
JB
1270# needs hacked pkg-config to return anything
1271%attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
241257bf
AM
1272#%attr(755,root,root) %{_rpmlibdir}/rpmb
1273#%attr(755,root,root) %{_rpmlibdir}/rpmt
ec44785a 1274%attr(755,root,root) %{_rpmlibdir}/vcheck
d755a548 1275%{_rpmlibdir}/noarch-*
e9fe9fc5 1276%ifarch %{ix86}
d755a548 1277%{_rpmlibdir}/i?86*
e9fe9fc5 1278%{_rpmlibdir}/pentium*
d755a548
JK
1279%{_rpmlibdir}/athlon*
1280%endif
ad628734
JB
1281%ifarch alpha
1282%{_rpmlibdir}/alpha*
1283%endif
ad628734
JB
1284%ifarch ia64
1285%{_rpmlibdir}/ia64*
8f76a271 1286%endif
410dd742 1287%ifarch mips mipsel mips64 mips64el
1288%{_rpmlibdir}/mips*
1289%endif
80e9f34d 1290%ifarch %{ppc}
410dd742 1291%{_rpmlibdir}/ppc*
1292%endif
1293%ifarch sparc sparc64
1294%{_rpmlibdir}/sparc*
1295%endif
9f517079 1296%ifarch %{x8664}
206b32be
JB
1297%{_rpmlibdir}/amd64*
1298%{_rpmlibdir}/ia32e*
cedf1bfa
PS
1299%{_rpmlibdir}/x86_64*
1300%endif
410dd742 1301# must be here for "Requires: rpm-*prov" to work
7d8492bb 1302%{_rpmlibdir}/macros.java
5790b583 1303%{_rpmlibdir}/macros.mono
410dd742 1304%{_rpmlibdir}/macros.perl
1305%{_rpmlibdir}/macros.php
1306# not used yet ... these six depend on perl
ec44785a 1307%attr(755,root,root) %{_rpmlibdir}/http.req
591cc005
JB
1308#%attr(755,root,root) %{_rpmlibdir}/magic.prov
1309#%attr(755,root,root) %{_rpmlibdir}/magic.req
1310#%{_rpmlibdir}/sql.prov
1311#%{_rpmlibdir}/sql.req
1312#%{_rpmlibdir}/tcl.req
ec44785a 1313%attr(755,root,root) %{_rpmlibdir}/mono*
7a9d72ce 1314
874f4c9a
MM
1315%attr(755,root,root) %{_bindir}/gendiff
1316%attr(755,root,root) %{_bindir}/rpmbuild
9282ffe4
AF
1317%attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1318%attr(755,root,root) %{_rpmlibdir}/bin/wget
ec44785a
BZ
1319
1320%dir %{_rpmlibdir}/helpers
1321%attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
874f4c9a 1322
a00926bc 1323%{_mandir}/man1/gendiff.1*
874f4c9a 1324%{_mandir}/man8/rpmbuild.8*
fefe9d30
JB
1325%lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1326%lang(pl) %{_mandir}/pl/man1/gendiff.1*
1327%lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
f3fe287f 1328
7d8492bb
JB
1329%files javaprov
1330%defattr(644,root,root,755)
1331%attr(755,root,root) %{_rpmlibdir}/java-find-requires
1332# needs jar (any jdk), jcf-dump (gcc-java) to work
1333%attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1334
89334051
AF
1335%files perlprov
1336%defattr(644,root,root,755)
d755a548 1337%attr(755,root,root) %{_rpmlibdir}/perl.*
ec44785a
BZ
1338%attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1339%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
d755a548 1340#%attr(755,root,root) %{_rpmlibdir}/find-perl-*
02919de5
JK
1341#%attr(755,root,root) %{_rpmlibdir}/find-*.perl
1342#%attr(755,root,root) %{_rpmlibdir}/find-prov.pl
1343#%attr(755,root,root) %{_rpmlibdir}/find-req.pl
374b40ea 1344#%attr(755,root,root) %{_rpmlibdir}/get_magic.pl
9805fd6d 1345
80d3b868 1346%files pythonprov
d8fcb9b0 1347%defattr(644,root,root,755)
d755a548 1348%{_rpmlibdir}/macros.python
25d296e1 1349%attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
09bb810c 1350
d36cb682
PG
1351%files php-pearprov
1352%defattr(644,root,root,755)
d755a548
JK
1353%attr(755,root,root) %{_rpmlibdir}/php*
1354%attr(755,root,root) %{_rpmlibdir}/find-php*
d36cb682 1355
50dc9ac0 1356%if %{with python}
cf6faebc 1357%files -n python-rpm
42a0025c 1358%defattr(644,root,root,755)
b33910fe 1359%dir %{py_sitedir}/rpm
6f18cdb7 1360%attr(755,root,root) %{py_sitedir}/rpm/*.so
8c99b39a 1361%{py_sitedir}/rpm/*.py[co]
50dc9ac0 1362%endif
5c2ab5c7
AM
1363
1364%if %{with apidocs}
1365%files apidocs
1366%defattr(644,root,root,755)
1367%doc apidocs
1368%endif
This page took 1.002068 seconds and 4 git commands to generate.