]> git.pld-linux.org Git - packages/rpm.git/blame - rpm.spec
- renumber patches
[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
9fb5ee9e 12# - add macros for some ppc, mipsel, alpha and sparc
10abbd40 13#
76005b82 14# - headerGet() making poldek segfault http://rpm5.org/cvs/tktview?tn=38,1
76005b82 15# - rpm doesn't exit when no sources/patches available http://rpm5.org/cvs/tktview?tn=40,1
6664e05e 16# - http://rpm5.org/cvs/tktview?tn=41&_submit=Show
c296fee0 17# - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985
76005b82 18#
89427592 19# Conditional build:
01d7a578 20%bcond_with static # build static rpm+rpmi
0a1ccab0 21%bcond_without apidocs # don't generate documentation with doxygen
4af66a2c
JB
22%bcond_without python # don't build python bindings
23%bcond_without selinux # build without selinux support
0dc47449 24%bcond_without suggest_tags # build without Suggest tag (bootstrapping)
77fcdbf7 25%bcond_without neon # build with HTTP/WebDAV support (neon library)
858aa7d0 26%bcond_without db # BerkeleyDB
77fcdbf7 27%bcond_without sqlite # build with SQLite support
858aa7d0 28%bcond_with sqlite_dbapi # default database backend is sqlite
7564deb4 29%bcond_without system_lua # use system lua
89427592
JB
30# force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
31# force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
32# force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
858aa7d0
AM
33#
34%if %{with sqlite_dbapi}
35%define with_sqlite 1
36%endif
54bfdf99 37
858aa7d0 38%if %{without db} && %{without sqlite}
25ac75ae 39%{error:Need db or sqlite}
858aa7d0
AM
40ERROR
41%endif
42
003a039e 43# versions of required libraries
afb55538 44%define reqdb_ver 5.3
ec44785a 45%define reqpopt_ver 1.15
fc60c9f3 46%define beecrypt_ver 2:4.1.2-4
70f8787d 47%define sover 5.4
fc60c9f3 48
e5f02e49 49Summary: RPM Package Manager
4ea2ed33
ER
50Summary(de.UTF-8): RPM Packet-Manager
51Summary(es.UTF-8): Gestor de paquetes RPM
52Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
53Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
54Summary(ru.UTF-8): Менеджер пакетов от RPM
55Summary(uk.UTF-8): Менеджер пакетів від RPM
76214164 56Name: rpm
afb55538 57Version: 5.4.10
badae32f 58Release: 0.8
b0434f77 59License: LGPL
76214164 60Group: Base
afb55538
JR
61# http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.10-0.20120706.src.rpm
62Source0: %{name}-%{version}.tar.gz
63# Source0-md5: 5d099161bdd3203265ab32ffad3360b5
d38aed81
JR
64Source100: cpu-os-macros.tar.gz
65# Source100-md5: 928034a5bdceb398881bc14b5f29973b
ff7bc1e6 66Source1: %{name}.groups
08697680 67Source2: macros.pld.in
ff7bc1e6 68Source3: %{name}-install-tree
80b8a1f9 69Source4: %{name}-find-spec-bcond
cf709a39 70Source5: %{name}-hrmib-cache
80b8a1f9
JB
71Source6: %{name}-groups-po.awk
72Source7: %{name}-compress-doc
80b8a1f9
JB
73Source9: %{name}-php-provides
74Source10: %{name}-php-requires
fbc0ff35 75Source11: %{name}.sysinfo
80b8a1f9 76Source12: perl.prov
d0370fe5 77Source13: %{name}-user_group.sh
78Source14: %{name}.sysconfig
1f625675 79Source16: %{name}-java-requires
a4b7ef27 80# http://svn.pld-linux.org/banner.sh/
1c2e2d8e 81Source17: banner.sh
54eb1770 82Source19: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
317ef122 83# Source19-md5: 08b29584dd349aac9caa7610131a0a88
c75b3936 84Source20: %{name}-mimetypedeps
08697680
JR
85Source21: macros.local
86Source22: rpm.noautocompressdoc
87Source23: rpm.noautoprov
88Source24: rpm.noautoprovfiles
89Source25: rpm.noautoreq
90Source26: rpm.noautoreqdep
91Source27: rpm.noautoreqfiles
f15af52e 92Source29: %{name}-php-requires.php
f05db907 93Patch0: %{name}-branch.patch
2f0ee4ec 94Patch1: %{name}-man_pl.patch
38e53563 95Patch2: %{name}-popt-aliases.patch
b174986a 96Patch3: %{name}-rpmpopt.patch
3465efba 97Patch4: %{name}-perl-macros.patch
c1768ce2 98Patch5: %{name}-perl-req-perlfile.patch
3c7590cc
JR
99Patch6: %{name}-scripts-closefds.patch
100Patch7: %{name}-php-macros.patch
101Patch8: %{name}-gettext-in-header.patch
102Patch9: %{name}-lua.patch
103Patch10: %{name}-etc_dir.patch
104Patch11: %{name}-php-deps.patch
105Patch12: %{name}-glob.patch
106Patch13: %{name}-notsc.patch
107Patch14: %{name}-hack-norpmlibdep.patch
108Patch15: %{name}-epoch0.patch
109Patch16: %{name}-perl_req-INC_dirs.patch
110Patch17: %{name}-debuginfo.patch
111Patch18: vendor-pld.patch
112Patch19: %{name}-old-fileconflicts-behaviour.patch
113Patch20: %{name}-javadeps.patch
114Patch21: %{name}-truncate-cvslog.patch
115Patch22: %{name}-libtool-deps.patch
116Patch23: %{name}-mimetype.patch
117Patch24: %{name}-sparc64.patch
118Patch25: %{name}-gendiff.patch
119Patch26: openmp.patch
120Patch27: %{name}-URPM-build-fix.patch
121Patch28: %{name}-db5.3.patch
122Patch29: %{name}-helperEVR-noassert.patch
123Patch30: %{name}-unglobal.patch
124Patch31: %{name}-builddir-readlink.patch
125Patch32: %{name}-changelog_order_check_nonfatal.patch
126Patch33: %{name}-cleanbody.patch
127Patch34: %{name}-dirdeps-macro.patch
128Patch35: %{name}-installbeforeerase.patch
129Patch36: %{name}-libmagic-locale.patch
130Patch37: %{name}-namespace-probe.patch
131Patch38: %{name}-popt-coreutils.patch
132Patch39: %{name}-postun-nofail.patch
133Patch40: %{name}-silence-RPM_CHAR_TYPE.patch
134Patch41: %{name}-fix-missing-types-in-headers.patch
70f8787d
JR
135
136# Patches imported from Mandriva
137
138# status: ready to merge, it's already been merged on HEAD, so commiting it to rpm-5_4
139# would basically just mean backporting it..
140Patch1000: rpm-5.4.4-add-_specfile-macro.patch
141# status: needs to be cleaned up and properly reviewed together with rest
142# of the patches related to dependency generation
143Patch1001: rpm-5.4.9-avoid-dependencies-on-self.patch
144# status: probably ready to merge
145Patch1002: rpm-5.4.4-pkgconfigdeps-check-path.patch
146# status: probably okay to merge, but discuss on rpm-devel first
147Patch1003: rpm-5.4.4-glob-wildcards-for-loading-macro-files.patch
148# status: needs to be discussed
149Patch1004: rpm-5.4.4-allow-installation-of-repackaged-rpms.patch
150# status: ready to merge
151Patch1005: rpm-5.4.8-dont-show-suggests-with-requires.patch
152# status: ready for merge
153Patch1006: rpm-5.4.9-strip-buildroot-away-from-duplicate-files-list.patch
154# status: probably okay to merge, but discuss on rpm-devel first
155Patch1007: rpm-5.4.10-duplicate_files_terminate_build.patch
156# status: same as above
157Patch1008: rpm-5.4.10-unpackaged_subdirs_terminate_build.patch
158# mdvbz#64898
159# status: uncertain, might be okay to merge, discuss on rpm-devel first
160Patch1009: rpm-5.4.4-rpmbuild-withoutclean.patch
161# no sense in having an additional dependency on 'pkgconfig' on all packages that
162# have a pkgconfig file, it's not needed for them to be made useful and anything
163# actuallly using pkgconfig for this purpose will pull it in as a dependency anyways...
164# status: might be okay to merge, but discuss on rpm-devel first
165Patch1010: rpm-5.4.4-drop-useless-auto-generated-pkgconfig-dependency.patch
166# status: ready for merge
167Patch1011: rpm-5.4.4-fix-rpmconstant-to-always-use-LC_CTYPE-C-for-case-conversion.patch
168# $RPM_BUILD_DIR isn't necessarily the same as $PWD, it's %%{_builddir}, not
169# %%{_builddir}/%%{?buildsubdir}, messing up paths in debug packages created..
170# status: needs to be discussed and investigated a bit better..
171Patch1012: rpm-5.4.4-pass-_builddir-properly-to-find-debuginfo.patch
172# status: probably okay to merge, but discuss on rpm-devel first
173Patch1013: rpm-5.4.10-files-listed-twice-terminates-build.patch
174# status: probably okay to merge
175Patch1014: rpm-5.4.9-ruby1.9-fixes.patch
176# status: keep locally
177Patch1015: rpm-5.4.9-keep-loading-script-macros.patch
178# status: same as for other dep gen patches
179Patch1016: rpm-5.4.9-update-rpmfc-when-removing-dependencies-on-self.patch
180# status: idem
181Patch1017: rpm-5.4.9-rpmfc-extract-dependencies-for-all-files.patch
182# status: ready for merge
183Patch1018: rpm-5.4.5-rubygems-add-missing-newline.patch
184# status: probably okay to merge
185Patch1019: rpm-5.4.5-python-export-spec-macros.patch
186# status: idem
187Patch1020: rpm-5.4.9-font-provides.patch
188# stauus: idem
189Patch1021: rpm-5.4.7-kmod-dependencies.patch
190# status: probably okay to merge, discuss on rpm-devel first
191Patch1022: rpm-5.4.5-skip-dependencies-for-character-devices.patch
192# status: ready to merge
193Patch1023: rpm-5.4.5-rpmfc-use-strlen-not-sizeof.patch
194# status: probably okay to merge
195Patch1024: rpm-5.4.5-rpmfc-apply-python-coloring-from-magic.patch
196# status: ready to merge
197Patch1025: rpm-5.4.7-rpmfc-fix-invalid-free-if-not-_defaultdocdir-set.patch
198# status: probably okay to merge
199Patch1026: rpm-5.4.10-dont-try-generate-rpmfc-dependencies-from-doc-files.patch
200# status: ready
201Patch1027: rpm-5.4.7-fix-generation-of-ruby-abi-provides.patch
202# crash reproducable with 'rpm -qa --triggers'
203# status: ready
204Patch1028: rpm-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
205# status: same as for other dep gen patches
206Patch1029: rpm-5.4.7-dont-consider-trigger-dependencies-as-overlapping.patch
207# status: ready
208Patch1030: rpm-5.4.7-fix-minor-memleaks.patch
209# status: ready
210Patch1031: rpm-5.4.9-mire-fix-strings-lacking-null-terminator.patch
211# status: ready
212Patch1032: rpm-5.4.9-rpmpython-fix-input.patch
213# status: ready
214Patch1033: rpm-5.4.7-no-seqid_init-on-rdonly-database.patch
215# status: probably ready for merging
216Patch1034: rpm-5.4.9-avoid-double-slash-in-path-for-dirname-filetrigger-matching.patch
217# status: probably ready to merge, discuss on rpm-devel first
218Patch1035: rpm-5.4.9-fix-verify-segfault.patch
219# status: ready and should be merged
220Patch1036: rpm-5.4.9-fix-typo-in-rpmtag-header.patch
221# Due to rpmdav/neon being written in a different fashion than other rpmio clients,
222# the inconsistent behaviour affects code elsewhere which expects consistent behaviour,
223# with the result being that when unable to download files, neon will save error
224# page as the target file.
225# status: should go upstream, but uncertain about "correct" fix, ie. this is
226# more of a workaround, while rewriting rpmdav code to behave consistently
227# would be "the right thing to do". Yet I'm not fully able to grasp all of the
228# code and don't want to spend more time just to get the API..
229Patch1037: rpm-5.4.10-fix-neon-saving-error-pages-as-target-file.patch
230# As the transaction flags for ignoring arch & os are no longer used, there's
231# currently no way to ignore arch & os of packages anymore. This patch adds
232# support for doing this again by defining rpm variables and overriding
233# --ignorearch & --ignoreos to set these.
234# status: needs to be discussed upstream before thinking about merging
235Patch1038: rpm-5.4.10-support-ignore-arch-and-os-again.patch
236
955f2725 237URL: http://rpm5.org/
6a8612bc 238BuildRequires: autoconf >= 2.60
644d8958 239BuildRequires: automake >= 1.4
87ef0d95 240BuildRequires: beecrypt-devel >= %{beecrypt_ver}
33be5db0 241BuildRequires: bzip2-devel >= 1.0.2-17
858aa7d0 242%{?with_db:BuildRequires: db-devel >= %{reqdb_ver}}
33be5db0 243BuildRequires: elfutils-devel >= 0.108
0ef6aeae 244#BuildRequires: gettext-autopoint >= 0.11.4-2
d1795eb0 245BuildRequires: gettext-devel >= 0.11.4-2
f7100a40 246BuildRequires: keyutils-devel
241257bf 247BuildRequires: libmagic-devel
8e159d42 248%{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
84cdee7a
JB
249# needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
250BuildRequires: libstdc++-devel
b60c74c3 251BuildRequires: libtool >= 1:1.4.2-9
33be5db0 252%if %{with neon}
fe861705 253BuildRequires: libxml2-devel
83d6a3fe 254BuildRequires: neon-devel >= 0.25.5
33be5db0 255%endif
127a0b3c 256BuildRequires: ossp-uuid-devel
7973b351 257BuildRequires: patch >= 2.2
1d49ffbc 258BuildRequires: popt-devel >= %{reqpopt_ver}
6a8612bc 259%{?with_system_lua:BuildRequires: lua51-devel >= 5.1.2}
950eead3
ER
260%{?with_python:BuildRequires: python-devel >= 1:2.3}
261BuildRequires: python-modules >= 1:2.3
2a813afe 262%{?with_python:BuildRequires: rpm-pythonprov}
241257bf 263%{?with_sqlite:BuildRequires: sqlite3-devel}
e56a10a9 264BuildRequires: tcl
874f4c9a 265BuildRequires: zlib-devel
77fcdbf7 266BuildRequires: xz-devel
5c2ab5c7
AM
267%if %{with apidocs}
268BuildRequires: doxygen
269BuildRequires: ghostscript
270BuildRequires: graphviz
271BuildRequires: tetex-pdftex
272%endif
a6e56ce4 273%if %{with static}
e6090a7b 274# Require static library only for static build
87ef0d95 275BuildRequires: beecrypt-static >= %{beecrypt_ver}
33be5db0 276BuildRequires: bzip2-static >= 1.0.2-17
858aa7d0 277%{?with_db:BuildRequires: db-static >= %{reqdb_ver}}
290c1c30 278BuildRequires: elfutils-static
10abbd40 279BuildRequires: glibc-static >= 2.2.94
241257bf 280BuildRequires: libmagic-static
8e159d42 281%{?with_selinux:BuildRequires: libselinux-static >= 1.18}
003a039e 282BuildRequires: popt-static >= %{reqpopt_ver}
1d49ffbc 283BuildRequires: zlib-static
7a9d72ce 284%endif
66edd895 285Requires: %{name}-base = %{version}-%{release}
b26a9709 286Requires: %{name}-lib = %{version}-%{release}
10abbd40
ER
287Requires: beecrypt >= %{beecrypt_ver}
288Requires: popt >= %{reqpopt_ver}
0229a8b9
AM
289Provides: rpm-db-ver = %{reqdb_ver}
290Obsoletes: rpm-getdeps
4adb7d05 291%{!?with_static:Obsoletes: rpm-utils-static}
874f4c9a 292Conflicts: glibc < 2.2.92
8ee1c72c
AM
293# db4.6 poldek needed
294Conflicts: poldek < 0.21-0.20070703.00.3
d268a169
AM
295# segfaults with lzma 0.42.2
296Conflicts: lzma-libs < 4.999.3
1d49ffbc 297BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6d82b332 298
4adb7d05
JB
299%define _binary_payload w9.gzdio
300%define _noPayloadPrefix 1
6d82b332 301
4cd84746
JB
302# don't require very fresh rpm.macros to build
303%define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
950eead3 304%define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
9f517079 305%define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
80e9f34d 306%define ppc ppc ppc7400 ppc7450
9f517079 307%define x8664 amd64 ia32e x86_64
4cd84746 308
89427592 309# stabilize new build environment
f9ac32aa
AM
310%define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
311%define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
312%define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
89427592 313
d755a548 314%define _rpmlibdir /usr/lib/rpm
950eead3 315%define _noautocompressdoc RPM-GPG-KEY
d755a548 316
573e40e1
PS
317%define specflags -fno-strict-aliasing
318
ff7bc1e6 319%description
320RPM is a powerful package manager, which can be used to build,
321install, query, verify, update, and uninstall individual software
cf6faebc 322packages. A package consists of an archive of files, and package
fed73700 323information, including name, version, and description.
324
dd85fadc
JR
325%description -l de.UTF-8
326RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
fed73700 327Installation, Anfrage, Verifizierung, Aktualisierung und
328Uninstallation individueller Softwarepakete. Ein Paket besteht aus
329einem Archiv Dateien und Paketinformation, inklusive Name, Version und
313a4d1a 330Beschreibung.
331
dd85fadc 332%description -l es.UTF-8
313a4d1a 333RPM es un poderoso administrador de paquetes, que puede ser usado para
334construir, instalar, pesquisar, verificar, actualizar y desinstalar
335paquetes individuales de software. Un paquete consiste en un
dd85fadc
JR
336almacenaje de archivos, y información sobre el paquete, incluyendo
337nombre, versión y descripción.
338
339%description -l pl.UTF-8
340RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
341przebudowanie, instalację czy weryfikację dowolnego pakietu.
342Informacje dotyczące każdego pakietu, takie jak jego opis, lista
343plików wchodzących w skład pakietu, zależności od innych pakietów, są
344przechowywane w bazie danych i można je uzyskać za pomocą opcji
313a4d1a 345odpytywania programu rpm.
346
dd85fadc
JR
347%description -l pt_BR.UTF-8
348RPM é um poderoso gerenciador de pacotes, que pode ser usado para
313a4d1a 349construir, instalar, pesquisar, verificar, atualizar e desinstalar
350pacotes individuais de software. Um pacote consiste de um conjunto de
dd85fadc
JR
351arquivos e informações adicionais, incluindo nome, versão e descrição
352do pacote, permissões dos arquivos, etc.
353
354%description -l ru.UTF-8
355RPM - это мощный менеджер пакетов, который может быть использован для
356создания, инсталляции, запросов (query), проверки, обновления и
357удаления программных пакетов. Пакет состоит из файлового архива и
358служебной информации, включающей название, версию, описание и другие
359данные о пакете.
360
361%description -l uk.UTF-8
362RPM - це потужний менеджер пакетів, що може бути використаний для
363створення, інсталяції, запитів (query), перевірки, поновлення та
364видалення програмних пакетів. Пакет складається з файлового архіву та
365службової інформації, що містить назву, версію, опис та іншу
366інформацію про пакет.
7c6dc55f 367
66edd895
JB
368%package base
369Summary: RPM base package - scripts used by rpm packages themselves
4ea2ed33 370Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
66edd895 371Group: Base
1d9ca0c1 372Requires: filesystem
950eead3 373Obsoletes: rpm-scripts
66edd895
JB
374Obsoletes: vserver-rpm
375
376%description base
377The RPM base package contains scripts used by rpm packages themselves.
378These include:
379- scripts for adding/removing groups and users needed for rpm
380 packages,
381- banner.sh to display %%banner messages from rpm scriptlets.
382
dd85fadc
JR
383%description base -l pl.UTF-8
384Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
66edd895 385Zawiera on:
dd85fadc
JR
386- skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
387- banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
66edd895 388
69131f1a
JB
389%package lib
390Summary: RPMs library
4ea2ed33 391Summary(pl.UTF-8): Biblioteki RPM-a
69131f1a 392Group: Libraries
33be5db0 393Requires: beecrypt >= %{beecrypt_ver}
858aa7d0 394%{?with_db:Requires: db >= %{reqdb_ver}}
241257bf 395Requires: libmagic >= 1.15-2
d1795eb0 396%{?with_selinux:Requires: libselinux >= 1.18}
69131f1a 397Requires: popt >= %{reqpopt_ver}
d1795eb0 398Obsoletes: rpm-libs
69131f1a
JB
399# avoid SEGV caused by mixed db versions
400Conflicts: poldek < 0.18.1-16
401
402%description lib
403RPMs library.
404
dd85fadc 405%description lib -l pl.UTF-8
69131f1a
JB
406Biblioteki RPM-a.
407
fed73700 408%package devel
3f2d796a 409Summary: Header files for rpm libraries
4ea2ed33
ER
410Summary(de.UTF-8): Header-Dateien für rpm Libraries
411Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
412Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
413Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
414Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
415Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
89f92de0 416Group: Development/Libraries
153e5706 417Requires: %{name}-lib = %{version}-%{release}
87ef0d95 418Requires: beecrypt-devel >= %{beecrypt_ver}
fea3cb89 419Requires: bzip2-devel
858aa7d0 420%{?with_db:Requires: db-devel >= %{reqdb_ver}}
5c583f90 421Requires: elfutils-devel
f7100a40 422Requires: keyutils-devel
241257bf 423Requires: libmagic-devel
10abbd40 424%{?with_selinux:Requires: libselinux-devel}
a998ac11 425Requires: popt-devel >= %{reqpopt_ver}
fea3cb89 426Requires: zlib-devel
cf6faebc 427
428%description devel
3f2d796a
JB
429The RPM packaging system includes C libraries that make it easy to
430manipulate RPM packages and databases. They are intended to ease the
cf6faebc 431creation of graphical package managers and other tools that need
3f2d796a
JB
432intimate knowledge of RPM packages. This package contains header files
433for these libraries.
fed73700 434
dd85fadc
JR
435%description devel -l de.UTF-8
436Der RPM-Packensystem enthält eine C-Library, die macht es einfach
437RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
fed73700 438Vereinfachung des Schaffens grafischer Paket-Manager und anderer
313a4d1a 439Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
440
dd85fadc 441%description devel -l es.UTF-8
313a4d1a 442El sistema de empaquetado RPM incluye una biblioteca C que vuelve
dd85fadc
JR
443fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
444facilitar la creación de administradores gráficos de paquetes y otras
20f89981 445herramientas que necesiten un conocimiento profundo de paquetes RPM.
9e42d68a 446
dd85fadc
JR
447%description devel -l pl.UTF-8
448System RPM zawiera biblioteki C, które ułatwiają manipulowanie
449pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
450graficznych programów zarządzających pakietami oraz innych narzędzi,
451które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
452zawiera pliki nagłówkowe wspomnianych bibliotek.
453
454%description devel -l pt_BR.UTF-8
455O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
456a manipulação de pacotes e bases de dados RPM. Seu objetivo é
457facilitar a criação de gerenciadores gráficos de pacotes e outras
edacdf8f 458ferramentas que precisem de conhecimento profundo de pacotes RPM.
459
dd85fadc
JR
460%description devel -l ru.UTF-8
461Система управления пакетами RPM содержит библиотеку C, которая
462упрощает манипуляцию пакетами RPM и соответствующими базами данных.
463Эта библиотека предназначена для облегчения создания графических
464пакетных менеджеров и других утилит, которым необходимо работать с
465пакетами RPM.
7c6dc55f 466
dd85fadc
JR
467%description devel -l uk.UTF-8
468Система керування пакетами RPM містить бібліотеку C, котра спрощує
469роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
470призначена для полегшення створення графічних пакетних менеджерів та
471інших утиліт, що працюють з пакетами RPM.
7c6dc55f 472
fed73700 473%package static
9e42d68a 474Summary: RPM static libraries
4ea2ed33
ER
475Summary(de.UTF-8): RPMs statische Libraries
476Summary(pl.UTF-8): Biblioteki statyczne RPM-a
477Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
478Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
479Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
edacdf8f 480Group: Development/Libraries
153e5706 481Requires: %{name}-devel = %{version}-%{release}
87ef0d95 482Requires: beecrypt-static >= %{beecrypt_ver}
df76dbd9 483Requires: bzip2-static
858aa7d0 484%{?with_db:Requires: db-static >= %{reqdb_ver}}
ff03e01a 485Requires: elfutils-static
f7100a40 486Requires: keyutils-static
241257bf 487Requires: libmagic-static
a998ac11 488Requires: popt-static >= %{reqpopt_ver}
df76dbd9 489Requires: zlib-static
edacdf8f 490
491%description static
20f89981 492RPM static libraries.
fed73700 493
dd85fadc 494%description static -l de.UTF-8
20f89981 495RPMs statische Libraries.
9e42d68a 496
dd85fadc 497%description static -l pl.UTF-8
0a7ae9bc 498Biblioteki statyczne RPM-a.
313a4d1a 499
dd85fadc
JR
500%description static -l pt_BR.UTF-8
501Bibliotecas estáticas para desenvolvimento.
edacdf8f 502
dd85fadc
JR
503%description static -l ru.UTF-8
504Система управления пакетами RPM содержит библиотеку C, которая
505упрощает манипуляцию пакетами RPM и соответствующими базами данных.
506Это статическая библиотека RPM.
7c6dc55f 507
dd85fadc
JR
508%description static -l uk.UTF-8
509Система керування пакетами RPM містить бібліотеку C, котра спрощує
510роботу з пакетами RPM та відповідними базами даних. Це статична
511бібліотека RPM.
7c6dc55f 512
fed73700 513%package utils
8482995c 514Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
515Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
516Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
edacdf8f 517Group: Applications/File
153e5706 518Requires: %{name} = %{version}-%{release}
a998ac11 519Requires: popt >= %{reqpopt_ver}
86b85368
AG
520%if %{with suggest_tags}
521Suggests: bzip2
522Suggests: gzip
86b85368 523%endif
695e60ad 524Conflicts: filesystem-debuginfo < 3.0-16
edacdf8f 525
526%description utils
8482995c 527Additional utilities for managing RPM packages and database.
fed73700 528
dd85fadc
JR
529%description utils -l de.UTF-8
530Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
9e42d68a 531
dd85fadc
JR
532%description utils -l pl.UTF-8
533Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
fed73700 534
92b3f576 535%package utils-perl
8482995c 536Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
537Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
538Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
92b3f576 539Group: Applications/File
153e5706 540Requires: %{name}-utils = %{version}-%{release}
92b3f576 541Requires: popt >= %{reqpopt_ver}
542
543%description utils-perl
8482995c 544Additional utilities for managing RPM packages and database.
92b3f576 545
dd85fadc
JR
546%description utils-perl -l de.UTF-8
547Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
92b3f576 548
dd85fadc
JR
549%description utils-perl -l pl.UTF-8
550Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
92b3f576 551
a00926bc
JB
552%package utils-static
553Summary: Static rpm utilities
4ea2ed33 554Summary(pl.UTF-8): Statyczne narzędzia rpm
a00926bc 555Group: Applications/System
153e5706 556Requires: %{name} = %{version}-%{release}
a00926bc
JB
557
558%description utils-static
559Static rpm utilities for repairing system in case something with
560shared libraries used by rpm become broken. Currently it contains rpmi
561binary, which can be used to install/upgrade/remove packages without
562using shared libraries (well, in fact with exception of NSS modules).
563
dd85fadc
JR
564%description utils-static -l pl.UTF-8
565Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
566związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
567Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
568uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
569(z wyjątkiem modułów NSS).
a00926bc 570
fed73700 571%package build
e191287c 572Summary: Scripts for building binary RPM packages
4ea2ed33
ER
573Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
574Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
575Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
576Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
577Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
e191287c 578Group: Applications/File
8f76a271 579Requires(pre): findutils
950eead3 580Requires: %{name}-build-macros >= 1.433-2
153e5706 581Requires: %{name}-utils = %{version}-%{release}
e191287c 582Requires: /bin/id
583Requires: awk
cfa7898a 584Requires: bzip2
e950a6d7 585Requires: chrpath >= 0.10-4
b6547e10 586Requires: cpio
e191287c 587Requires: diffutils
195f647c 588Requires: elfutils
583135b4 589Requires: file >= 4.17
e191287c 590Requires: fileutils
591Requires: findutils
950eead3
ER
592%ifarch athlon
593Requires: gcc >= 3.0.3
594%else
595Requires: gcc
596%endif
e191287c 597Requires: glibc-devel
598Requires: grep
599Requires: gzip
600Requires: make
601Requires: patch
e191287c 602Requires: sed
603Requires: sh-utils
604Requires: tar
605Requires: textutils
ca3648b1 606Provides: rpmbuild(monoautodeps)
37ea389a 607Provides: rpmbuild(noauto) = 3
02d17bf9 608%ifarch %{x8664}
195f647c
JB
609Conflicts: automake < 1:1.7.9-2
610Conflicts: libtool < 2:1.5-13
611%endif
0096c5cd 612
e2025ad1 613%description build
58399c37 614Scripts for building binary RPM packages.
fed73700 615
dd85fadc
JR
616%description build -l de.UTF-8
617Scripts fürs Bauen binärer RPM-Pakete.
9e42d68a 618
dd85fadc
JR
619%description build -l pl.UTF-8
620Skrypty pomocnicze do budowania binarnych RPM-ów.
313a4d1a 621
dd85fadc
JR
622%description build -l pt_BR.UTF-8
623Este pacote contém scripts e programas executáveis que são usados para
cf6faebc 624construir pacotes usando o RPM.
e73478cd 625
dd85fadc
JR
626%description build -l ru.UTF-8
627Различные вспомогательные скрипты и исполняемые программы, которые
628используются для сборки RPM'ов.
7c6dc55f 629
dd85fadc
JR
630%description build -l uk.UTF-8
631Різноманітні допоміжні скрипти та утиліти, які використовуються для
632побудови RPM'ів.
7c6dc55f 633
8482995c
JB
634%package javaprov
635Summary: Additional utilities for checking Java provides/requires in RPM packages
636Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
637Group: Applications/File
638Requires: %{name} = %{version}-%{release}
639Requires: file
640Requires: findutils >= 1:4.2.26
641Requires: mktemp
642Requires: unzip
643
644%description javaprov
645Additional utilities for checking Java provides/requires in RPM
646packages.
647
648%description javaprov -l pl.UTF-8
649Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
650RPM.
651
69131f1a 652%package perlprov
8482995c 653Summary: Additional utilities for checking Perl provides/requires in RPM packages
4ea2ed33 654Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
8482995c 655Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
69131f1a
JB
656Group: Applications/File
657Requires: %{name} = %{version}-%{release}
658Requires: perl-devel
659Requires: perl-modules
660
661%description perlprov
8482995c 662Additional utilities for checking Perl provides/requires in RPM
69131f1a
JB
663packages.
664
dd85fadc
JR
665%description perlprov -l de.UTF-8
666Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
69131f1a 667
dd85fadc 668%description perlprov -l pl.UTF-8
8482995c
JB
669Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
670pakietach RPM.
69131f1a
JB
671
672%package pythonprov
8482995c
JB
673Summary: Python macros, which simplifies creation of RPM packages with Python software
674Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
69131f1a
JB
675Group: Applications/File
676Requires: %{name} = %{version}-%{release}
cd800b3c 677Requires: python
243c6264 678Requires: python-modules
bdbae303 679Requires: python-distribute
69131f1a
JB
680
681%description pythonprov
8482995c 682Python macros, which simplifies creation of RPM packages with Python
69131f1a
JB
683software.
684
dd85fadc 685%description pythonprov -l pl.UTF-8
8482995c 686Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
69131f1a
JB
687Pythonie.
688
689%package php-pearprov
8482995c
JB
690Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
691Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
69131f1a
JB
692Group: Applications/File
693Requires: %{name} = %{version}-%{release}
632f1b5c 694Requires: sed >= 4.0
69131f1a
JB
695
696%description php-pearprov
8482995c 697Additional utilities for checking PHP PEAR provides/requires in RPM
69131f1a
JB
698packages.
699
dd85fadc 700%description php-pearprov -l pl.UTF-8
8482995c
JB
701Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
702pakietach RPM.
69131f1a
JB
703
704%package -n python-rpm
705Summary: Python interface to RPM library
4ea2ed33
ER
706Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
707Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
69131f1a
JB
708Group: Development/Languages/Python
709Requires: %{name} = %{version}-%{release}
710%pyrequires_eq python
711Obsoletes: rpm-python
712
713%description -n python-rpm
714The rpm-python package contains a module which permits applications
715written in the Python programming language to use the interface
716supplied by RPM (RPM Package Manager) libraries.
717
718This package should be installed if you want to develop Python
719programs that will manipulate RPM packages and databases.
720
dd85fadc
JR
721%description -n python-rpm -l pl.UTF-8
722Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
723Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
69131f1a 724
dd85fadc
JR
725Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
726Pythonie programy manipulujące pakietami i bazami danych rpm.
69131f1a 727
dd85fadc
JR
728%description -n python-rpm -l pt_BR.UTF-8
729O pacote rpm-python contém um módulo que permite que aplicações
69131f1a
JB
730escritas em Python utilizem a interface fornecida pelas bibliotecas
731RPM (RPM Package Manager).
732
dd85fadc 733Esse pacote deve ser instalado se você quiser desenvolver programas em
69131f1a
JB
734Python para manipular pacotes e bancos de dados RPM.
735
5c2ab5c7
AM
736%package apidocs
737Summary: RPM API documentation and guides
738Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
739Group: Documentation
740
741%description apidocs
742Documentation for RPM API and guides in HTML format generated from rpm
743sources by doxygen.
744
745%description apidocs -l pl.UTF-8
746Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
747źrodeł RPM-a przez doxygen.
748
e2025ad1 749%prep
d38aed81 750%setup -q -n %{name}-%{version}%{?subver} -a100
317ef122 751#patch0 -p1
2f0ee4ec 752%patch1 -p1
4d5b8e4c 753%patch2 -p1
ece43ea2 754%patch3 -p1
7a3b1f24
AM
755%patch4 -p1
756%patch5 -p1
3c7590cc 757%patch6 -p1
c1768ce2 758%patch7 -p1
7a3b1f24 759%patch8 -p1
3c7590cc 760%{?with_system_lua:%patch9 -p1}
2a321171 761# CHECK ME - macrofiles: ~/etc could be used
3c7590cc
JR
762#%%patch10 -p1
763%patch11 -p1
686b0204
JR
764%ifnarch i386 i486
765# enable TSC for capable archs
3c7590cc
JR
766%patch13 -p1
767%endif
768%patch14 -p1
769%patch15 -p1
770%patch16 -p0
771%patch17 -p1
772%patch18 -p1
773%patch19 -p1
774%patch20 -p1
775%patch21 -p1
776%patch22 -p1
777# Maybe, at last we can remove this?
778#patch12 -p1
779%patch23 -p1
780%ifarch sparc64
781%patch24 -p1
0bf2c47b 782%endif
3c7590cc
JR
783%patch25 -p1
784%patch26 -p1 -b .wiget
24123ddd 785%patch27 -p1
3c7590cc
JR
786%patch28 -p1
787%patch29 -p1
788%patch30 -p1
789%patch31 -p1
790%patch32 -p1
791%patch33 -p1
950eead3 792%patch34 -p1
3c7590cc 793%patch35 -p1
148c9957 794%patch36 -p1
3c7590cc
JR
795%patch37 -p1
796%patch38 -p1
797%patch39 -p1
798%patch40 -p1
9282ffe4 799%patch41 -p1
765b7c41 800
70f8787d
JR
801%patch1000 -p1
802%patch1001 -p1
803%patch1002 -p1
804%patch1003 -p1
805%patch1004 -p1
806%patch1005 -p1
807%patch1006 -p1
808%patch1007 -p1
809%patch1008 -p1
810%patch1009 -p1
811%patch1010 -p1
812%patch1011 -p1
813%patch1012 -p1
814%patch1013 -p1
815%patch1014 -p1
816%patch1015 -p1
817%patch1016 -p1
818%patch1017 -p1
819%patch1018 -p1
820%patch1019 -p1
821%patch1020 -p1
822%patch1021 -p1
823%patch1022 -p1
824%patch1023 -p1
825%patch1024 -p1
826%patch1025 -p1
827%patch1026 -p1
828%patch1027 -p1
829%patch1028 -p1
830%patch1029 -p1
831%patch1030 -p1
832%patch1031 -p1
833%patch1032 -p1
834%patch1033 -p1
835%patch1034 -p1
836%patch1035 -p1
837%patch1036 -p1
838%patch1037 -p1
839%patch1038 -p1
840
841install %{SOURCE2} macros/pld.in
842install %{SOURCE9} scripts/php.prov.in
843install %{SOURCE10} scripts/php.req.in
844install %{SOURCE12} scripts/perl.prov.in
08697680 845
70f8787d 846%{__mv} -f scripts/perl.req{,.in}
633d1e9e 847
cd86db2e 848# generate Group translations to *.po
80b8a1f9 849awk -f %{SOURCE6} %{SOURCE1}
fefe9d30 850
87ef0d95 851%build
ea816ea6 852%{__libtoolize}
c0a9be8f 853#%{__autopoint}
ceaaacee 854%{__aclocal}
4cd84746 855%{__autoheader}
7a9d72ce 856%{__autoconf}
7a9d72ce 857%{__automake}
7a9d72ce 858
048d06f8
JR
859# rpm checks for CPU type at runtime, but it looks better
860sed -i \
861 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
862 -e 's|@host_cpu@|%{_target_cpu}|' \
863 -e 's|@host_os@|%{_target_os}|' \
3f84726d 864 macros/macros.in
048d06f8 865
d268a169 866%{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"}
89427592 867# pass CC and CXX too in case of building with some older configure macro
624f96ff 868%configure \
f9ac32aa
AM
869 CC="%{__newcc}" \
870 CXX="%{__newcxx}" \
871 CPP="%{__newcpp}" \
01d7a578 872 WITH_PERL_VERSION=no \
cd86db2e 873 --enable-shared \
874f4c9a 874 --enable-static \
5c2ab5c7 875 %{!?with_apidocs:--without-apidocs} \
f3cb8244 876 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
a6e56ce4 877 %{!?with_python:--without-python} \
241257bf
AM
878 --with%{!?with_selinux:out}-selinux \
879 --with-libelf \
880 --with-zlib=external \
881 --with-bzip2=external \
882 --with-beecrypt=external \
1afa05ce 883 --with-lzma=external \
77fcdbf7 884 --with-xz=external \
241257bf
AM
885 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
886 --with-file=external \
887 --with-popt=external \
afb55538 888 --with-db=%{?with_db:external}%{!?with_db:no} \
77fcdbf7 889 --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \
950eead3 890 --with-dbapi=%{!?with_sqlite_dbapi:db}%{?with_sqlite_dbapi:sqlite} \
6a8612bc 891 --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
77fcdbf7 892 --with-pcre=external \
241257bf 893 --with-keyutils=none \
127a0b3c 894 --with-uuid=%{_libdir}:%{_includedir}/ossp-uuid \
241257bf 895 --without-path-versioned \
badae32f 896 --with-extra-path-macros='%{_sysconfdir}/rpm/macros.d/*.macros:%{_rpmlibdir}/macros.d/pld:%{_rpmlibdir}/macros.build:~/etc/rpmmacros:~/etc/.rpmmacros:~/.rpmmacros' \
08697680
JR
897 --with-bugreport="http://bugs.pld-linux.org/" \
898 --with-vendor=pld
cf6faebc 899
25e974c7 900%{__make} -j1 \
f9ac32aa
AM
901 CC="%{__cc}" \
902 CXX="%{__cxx}" \
241257bf 903 CPP="%{__cpp}"
33be5db0 904
5c2ab5c7
AM
905%{?with_apidocs:%{__make} apidocs}
906
b064b8e6 907%install
ff7bc1e6 908rm -rf $RPM_BUILD_ROOT
54eb1770
AM
909install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm,/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
910
911install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
76214164 912
a5e7fb84 913%{__make} install \
241257bf
AM
914 pkgconfigdir=%{_pkgconfigdir} \
915 DESTDIR=$RPM_BUILD_ROOT
718426e1 916
25ac75ae
AM
917# install ARCH macros
918install -d $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux
d38aed81 919install cpu-os-macros/noarch-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux/macros
25ac75ae
AM
920
921%ifarch %{ix86}
922install -d $RPM_BUILD_ROOT%{_rpmlibdir}/{i386,i486,i586,i686,athlon,pentium3,pentium4}-linux
d38aed81
JR
923install cpu-os-macros/athlon-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
924install cpu-os-macros/i386-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
925install cpu-os-macros/i486-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
926install cpu-os-macros/i586-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
927install cpu-os-macros/i686-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
928install cpu-os-macros/pentium3-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
929install cpu-os-macros/pentium4-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
25ac75ae
AM
930%endif
931
932%ifarch %{x8664}
933install -d $RPM_BUILD_ROOT%{_rpmlibdir}/{x86_64,ia32e,amd64}-linux
d38aed81
JR
934install cpu-os-macros/x86_64-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
935install cpu-os-macros/ia32e-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
936install cpu-os-macros/amd64-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
25ac75ae
AM
937%endif
938
939%ifarch %{ppc}
940install -d $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux
d38aed81 941install cpu-os-macros/ppc-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
25ac75ae
AM
942%endif
943
2eb9303e 944cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
ca076ee5 945# first platform file entry can't contain regexps
2eb9303e 946%{_target_cpu}-%{_target_vendor}-linux
caf453d4 947
2d8ae03e
AM
948# x86_64 things
949%ifarch x86_64
53fd58bc 950x86_64-[^-]*-[Ll]inux(-gnu)?
9cfcb6c8 951amd64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 952%endif
2d8ae03e 953%ifarch amd64
53fd58bc
AM
954amd64-[^-]*-[Ll]inux(-gnu)?
955x86_64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 956%endif
2d8ae03e 957%ifarch ia32e
53fd58bc
AM
958ia32e-[^-]*-[Ll]inux(-gnu)?
959x86_64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
960%endif
961
962# x86 things
06bd38df 963%ifarch athlon %{x8664}
53fd58bc 964athlon-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 965%endif
06bd38df 966%ifarch pentium4 athlon %{x8664}
53fd58bc 967pentium4-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 968%endif
06bd38df 969%ifarch pentium3 pentium4 athlon %{x8664}
53fd58bc 970pentium3-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 971%endif
06bd38df 972%ifarch i686 pentium3 pentium4 athlon %{x8664}
53fd58bc 973i686-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 974%endif
06bd38df 975%ifarch i586 i686 pentium3 pentium4 athlon %{x8664}
53fd58bc 976i586-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 977%endif
06bd38df 978%ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664}
53fd58bc 979i486-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 980%endif
06bd38df 981%ifarch %{ix86} %{x8664}
53fd58bc 982i386-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
983%endif
984
5074eba9 985%ifarch alpha
53fd58bc 986alpha-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
987%endif
988
989%ifarch ia64
53fd58bc 990ia64-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
991%endif
992
993%ifarch ppc64
53fd58bc
AM
994powerpc64-[^-]*-[Ll]inux(-gnu)?
995ppc64-[^-]*-[Ll]inux(-gnu)?
5074eba9 996%endif
950eead3 997%ifarch %{ppc} ppc64
53fd58bc
AM
998powerpc-[^-]*-[Ll]inux(-gnu)?
999ppc-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
1000%endif
1001
1002%ifarch s390x
53fd58bc 1003s390x-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
1004%endif
1005%ifarch s390 s390x
53fd58bc 1006s390-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
1007%endif
1008
1009%ifarch sparc64
53fd58bc
AM
1010sparc64-[^-]*-[Ll]inux(-gnu)?
1011sparcv8-[^-]*-[Ll]inux(-gnu)?
1012sparcv9-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
1013%endif
1014%ifarch sparcv9
53fd58bc
AM
1015sparcv8-[^-]*-[Ll]inux(-gnu)?
1016sparcv9-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
1017%endif
1018%ifarch sparc sparcv9 sparc64
53fd58bc 1019sparc-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
1020%endif
1021
1022# noarch
2eb9303e
ER
1023noarch-[^-]*-.*
1024EOF
2d8ae03e 1025
02919de5
JK
1026rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
1027rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
1028rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
950eead3 1029rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
02919de5 1030
644d8958
JB
1031# not installed since 4.4.8 (-tools-perl subpackage)
1032install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
1033
61f7e1b3 1034install %{SOURCE1} doc/manual/groups
d755a548 1035install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
80b8a1f9
JB
1036install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
1037install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
d0370fe5 1038install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
7d8492bb 1039install %{SOURCE16} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
d755a548
JK
1040install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
1041install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
f15af52e 1042cp -p %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php
c75b3936 1043install %{SOURCE20} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
cf709a39 1044install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
d0370fe5 1045install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm
e663e5ff 1046
1c2e2d8e 1047install %{SOURCE17} $RPM_BUILD_ROOT%{_bindir}/banner.sh
7c6dc55f 1048
950eead3
ER
1049install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
1050
08697680
JR
1051install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
1052install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
1053install %{SOURCE23} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
1054install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
1055install %{SOURCE25} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
1056install %{SOURCE26} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep
1057install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
1058
950eead3
ER
1059touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
1060touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
1061install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
1062touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
1063touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
1064touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
fbc0ff35 1065
f3fd387a 1066# for rpm -e|-U --repackage
a11e0e27
AM
1067install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
1068touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
f3fd387a 1069
950eead3
ER
1070# move rpm to /bin
1071mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
1072# move essential libs to /lib (libs that /bin/rpm links to)
ece880e2 1073for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
50dc9ac0
JK
1074 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
1075 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
c2673e18
AF
1076done
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
08697680 1084%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
01d7a578 1085
01d7a578 1086# wrong location, not used anyway
08697680 1087%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
950eead3 1088# utils dropped in 4.4.8 -- their manuals
08697680 1089%{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man8/rpmgraph.8
e86bfbff 1090# utils dropped in 5.4 -- their manuals
854562c1 1091%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rpmgrep.1
e86bfbff
JR
1092# script obsoleted by /usr/lib/rpm/bin/dbconvert binary
1093%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/dbconvert.sh
01d7a578 1094
90b03dd6 1095%find_lang %{name}
cf6faebc 1096
08697680 1097%{__rm} -rf manual
a998ac11 1098cp -a doc/manual manual
08697680 1099%{__rm} -f manual/Makefile*
874f4c9a 1100
13eb5ebf 1101%clean
d7df46b8 1102rm -rf $RPM_BUILD_ROOT
76214164 1103
cc1a4992
ER
1104%triggerpostun lib -- %{name}-lib < %{version}
1105rm -f /var/lib/rpm/__db*
1106
1107%pretrans
1108# this needs to be a dir
1109if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
c1097150 1110 umask 022
cc1a4992
ER
1111 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
1112 mkdir %{_sysconfdir}/rpm/sysinfo
1113fi
1114
cf709a39
ER
1115%triggerpostun -- %{name} < 4.4.9-44
1116%{_rpmlibdir}/hrmib-cache
1117
ceaaacee
JB
1118%post lib -p /sbin/ldconfig
1119%postun lib -p /sbin/ldconfig
76214164 1120
37a5a2fc 1121%pretrans build
d755a548 1122find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
8f76a271 1123
3684d90f
JB
1124%files -f %{name}.lang
1125%defattr(644,root,root,755)
241257bf 1126%doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
3684d90f 1127
54eb1770
AM
1128%dir %{_sysconfdir}/pki/rpm-gpg
1129%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1130
7a9d72ce 1131%attr(755,root,root) /bin/rpm
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
09bb810c 1139%{_mandir}/man8/rpm.8*
feb1f12e 1140%lang(fr) %{_mandir}/fr/man8/rpm.8*
e2025ad1 1141%lang(ja) %{_mandir}/ja/man8/rpm.8*
1162bdc1 1142%lang(ko) %{_mandir}/ko/man8/rpm.8*
ff7bc1e6 1143%lang(pl) %{_mandir}/pl/man8/rpm.8*
cf6faebc 1144%lang(ru) %{_mandir}/ru/man8/rpm.8*
740f105d 1145%lang(sk) %{_mandir}/sk/man8/rpm.8*
76214164 1146
e2025ad1 1147%dir /var/lib/rpm
74a997bd
JR
1148%dir /var/lib/rpm/log
1149%dir /var/lib/rpm/tmp
1150%config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
f3fd387a 1151%dir %attr(700,root,root) /var/spool/repackage
a11e0e27
AM
1152%dir /var/lock/rpm
1153/var/lock/rpm/transaction
4acac5de 1154
cf709a39
ER
1155# exported package NVRA (stamped with install tid)
1156# net-snmp hrSWInstalledName queries, bash-completions
1157%dir /var/cache/hrmib
1158
ec44785a 1159%{_rpmlibdir}/qf
d755a548
JK
1160%{_rpmlibdir}/rpmpopt*
1161%{_rpmlibdir}/macros
08697680
JR
1162%dir %{_rpmlibdir}/macros.d
1163%{_rpmlibdir}/macros.d/pld
9282ffe4 1164%{_rpmlibdir}/cpuinfo.yaml
3684d90f 1165
cf709a39
ER
1166%attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1167
df50421f
JR
1168%dir %{_rpmlibdir}/bin
1169%attr(755,root,root) %{_rpmlibdir}/bin/dbconvert
1170
66edd895
JB
1171%files base
1172%defattr(644,root,root,755)
492a2bd4 1173%dir %{_sysconfdir}/rpm
66edd895
JB
1174%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1175%dir %{_rpmlibdir}
1176%attr(755,root,root) %{_bindir}/banner.sh
df50421f 1177%attr(755,root,root) %{_bindir}/multiarch-dispatch
66edd895
JB
1178%attr(755,root,root) %{_rpmlibdir}/user_group.sh
1179%dir /var/lib/banner
1180
874f4c9a
MM
1181%files lib
1182%defattr(644,root,root,755)
950eead3
ER
1183%attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1184%attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1185%attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1186%attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
a434679c 1187%attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
ece880e2 1188%attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
874f4c9a 1189
69131f1a
JB
1190%files devel
1191%defattr(644,root,root,755)
69131f1a
JB
1192%attr(755,root,root) %{_libdir}/librpm.so
1193%attr(755,root,root) %{_libdir}/librpm-%{sover}.so
950eead3
ER
1194%attr(755,root,root) %{_libdir}/librpmbuild.so
1195%attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
02510ee8
AM
1196%attr(755,root,root) %{_libdir}/librpmconstant.so
1197%attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
950eead3
ER
1198%attr(755,root,root) %{_libdir}/librpmdb.so
1199%attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
69131f1a
JB
1200%attr(755,root,root) %{_libdir}/librpmio.so
1201%attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
02510ee8
AM
1202%attr(755,root,root) %{_libdir}/librpmmisc.so
1203%attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
950eead3
ER
1204%{_libdir}/librpm*.la
1205%{_includedir}/rpm
df50421f 1206%{_includedir}/multiarch-dispatch.h
950eead3 1207%{_pkgconfigdir}/*.pc
69131f1a
JB
1208
1209%files static
1210%defattr(644,root,root,755)
1211%{_libdir}/librpm*.a
1212
1213%files utils
1214%defattr(644,root,root,755)
69131f1a 1215%attr(755,root,root) %{_bindir}/rpm2cpio
25e974c7 1216%attr(755,root,root) %{_bindir}/rpmconstant
69131f1a 1217%attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
69131f1a 1218%attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
25e974c7 1219%attr(755,root,root) %{_rpmlibdir}/tgpg
df50421f
JR
1220%attr(755,root,root) %{_rpmlibdir}/bin/chroot
1221%attr(755,root,root) %{_rpmlibdir}/bin/cp
9282ffe4 1222%attr(755,root,root) %{_rpmlibdir}/bin/debugedit
df50421f
JR
1223%attr(755,root,root) %{_rpmlibdir}/bin/find
1224%attr(755,root,root) %{_rpmlibdir}/bin/mgo
9282ffe4
AF
1225%attr(755,root,root) %{_rpmlibdir}/bin/mtree
1226%attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1227%attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1228%attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1229%attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
1230%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey
1231%attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
69131f1a 1232%{_mandir}/man8/rpm2cpio.8*
950eead3 1233%{_mandir}/man8/rpmcache.8*
ec44785a 1234%{_mandir}/man8/rpmconstant.8*
69131f1a 1235%{_mandir}/man8/rpmdeps.8*
c0a9be8f 1236%{_mandir}/man8/rpmmtree.8*
69131f1a 1237%lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
950eead3 1238%lang(ja) %{_mandir}/ja/man8/rpmcache.8*
69131f1a
JB
1239%lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1240%lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
950eead3 1241%lang(pl) %{_mandir}/pl/man8/rpmcache.8*
69131f1a 1242%lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
69131f1a
JB
1243%lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1244
1245%files utils-perl
1246%defattr(644,root,root,755)
1247%attr(755,root,root) %{_rpmlibdir}/rpmdiff*
69131f1a
JB
1248
1249%if %{with static}
1250%files utils-static
1251%defattr(644,root,root,755)
1252%attr(755,root,root) %{_bindir}/rpm[ieu]
1253%attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1254%endif
1255
3684d90f 1256%files build
a45ae6d8 1257%defattr(644,root,root,755)
66edd895 1258%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
01d7a578
JB
1259%attr(755,root,root) %{_rpmlibdir}/brp-*
1260%attr(755,root,root) %{_rpmlibdir}/check-files
d755a548
JK
1261%attr(755,root,root) %{_rpmlibdir}/compress-doc
1262%attr(755,root,root) %{_rpmlibdir}/cross-build
d755a548 1263%attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
d755a548
JK
1264%attr(755,root,root) %{_rpmlibdir}/getpo.sh
1265%attr(755,root,root) %{_rpmlibdir}/install-build-tree
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
df50421f
JR
1272%attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl
1273%attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl
77fcdbf7
AF
1274%attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1275%attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
df50421f
JR
1276%attr(755,root,root) %{_rpmlibdir}/bin/pom2spec
1277%attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1278%attr(755,root,root) %{_rpmlibdir}/bin/sqlite3
1279%attr(755,root,root) %{_rpmlibdir}/bin/wget
ec44785a 1280%attr(755,root,root) %{_rpmlibdir}/vcheck
d755a548 1281%{_rpmlibdir}/noarch-*
e9fe9fc5 1282%ifarch %{ix86}
d755a548 1283%{_rpmlibdir}/i?86*
e9fe9fc5 1284%{_rpmlibdir}/pentium*
d755a548
JK
1285%{_rpmlibdir}/athlon*
1286%endif
ad628734
JB
1287%ifarch alpha
1288%{_rpmlibdir}/alpha*
1289%endif
ad628734
JB
1290%ifarch ia64
1291%{_rpmlibdir}/ia64*
8f76a271 1292%endif
410dd742 1293%ifarch mips mipsel mips64 mips64el
1294%{_rpmlibdir}/mips*
1295%endif
80e9f34d 1296%ifarch %{ppc}
410dd742 1297%{_rpmlibdir}/ppc*
1298%endif
1299%ifarch sparc sparc64
1300%{_rpmlibdir}/sparc*
1301%endif
9f517079 1302%ifarch %{x8664}
206b32be
JB
1303%{_rpmlibdir}/amd64*
1304%{_rpmlibdir}/ia32e*
cedf1bfa
PS
1305%{_rpmlibdir}/x86_64*
1306%endif
410dd742 1307# not used yet ... these six depend on perl
ec44785a 1308%attr(755,root,root) %{_rpmlibdir}/http.req
428645e9
JR
1309# we always used scripts provided by mono-devel, maybe move them here
1310#%attr(755,root,root) %{_rpmlibdir}/mono-find-provides
1311#%attr(755,root,root) %{_rpmlibdir}/mono-find-requires
37e965e8 1312
70f8787d 1313%attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
37e965e8 1314# must be here for "Requires: rpm-*prov" to work
df50421f
JR
1315%{_rpmlibdir}/macros.d/cmake
1316%{_rpmlibdir}/macros.d/gstreamer
77fcdbf7 1317%{_rpmlibdir}/macros.d/java
df50421f 1318%{_rpmlibdir}/macros.d/kernel
77fcdbf7
AF
1319%{_rpmlibdir}/macros.d/libtool
1320%{_rpmlibdir}/macros.d/mono
1321%{_rpmlibdir}/macros.d/perl
1322%{_rpmlibdir}/macros.d/php
1323%{_rpmlibdir}/macros.d/pkgconfig
1324%{_rpmlibdir}/macros.d/python
df50421f 1325%{_rpmlibdir}/macros.d/ruby
77fcdbf7 1326%{_rpmlibdir}/macros.d/selinux
df50421f 1327%{_rpmlibdir}/macros.d/tcl
77fcdbf7
AF
1328%{_rpmlibdir}/macros.rpmbuild
1329
df50421f
JR
1330%attr(755,root,root) %{_rpmlibdir}/check-multiarch-files
1331%attr(755,root,root) %{_rpmlibdir}/gem_helper.rb
1332%attr(755,root,root) %{_rpmlibdir}/gstreamer.sh
1333%attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh
1334%attr(755,root,root) %{_rpmlibdir}/mkmultiarch
df50421f
JR
1335%attr(755,root,root) %{_rpmlibdir}/rubygems.rb
1336
874f4c9a 1337%attr(755,root,root) %{_bindir}/gendiff
df50421f 1338%attr(755,root,root) %{_bindir}/multiarch-platform
874f4c9a 1339%attr(755,root,root) %{_bindir}/rpmbuild
ec44785a
BZ
1340
1341%dir %{_rpmlibdir}/helpers
1342%attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
874f4c9a 1343
a00926bc 1344%{_mandir}/man1/gendiff.1*
874f4c9a 1345%{_mandir}/man8/rpmbuild.8*
fefe9d30
JB
1346%lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1347%lang(pl) %{_mandir}/pl/man1/gendiff.1*
1348%lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
f3fe287f 1349
7d8492bb
JB
1350%files javaprov
1351%defattr(644,root,root,755)
1352%attr(755,root,root) %{_rpmlibdir}/java-find-requires
1353# needs jar (any jdk), jcf-dump (gcc-java) to work
1354%attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1355
89334051
AF
1356%files perlprov
1357%defattr(644,root,root,755)
d755a548 1358%attr(755,root,root) %{_rpmlibdir}/perl.*
ec44785a
BZ
1359%attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1360%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
9805fd6d 1361
80d3b868 1362%files pythonprov
d8fcb9b0 1363%defattr(644,root,root,755)
bdbae303 1364%attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
25d296e1 1365%attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
09bb810c 1366
d36cb682
PG
1367%files php-pearprov
1368%defattr(644,root,root,755)
d755a548
JK
1369%attr(755,root,root) %{_rpmlibdir}/php*
1370%attr(755,root,root) %{_rpmlibdir}/find-php*
d36cb682 1371
50dc9ac0 1372%if %{with python}
cf6faebc 1373%files -n python-rpm
42a0025c 1374%defattr(644,root,root,755)
b33910fe 1375%dir %{py_sitedir}/rpm
6f18cdb7 1376%attr(755,root,root) %{py_sitedir}/rpm/*.so
8c99b39a 1377%{py_sitedir}/rpm/*.py[co]
50dc9ac0 1378%endif
5c2ab5c7
AM
1379
1380%if %{with apidocs}
1381%files apidocs
1382%defattr(644,root,root,755)
1383%doc apidocs
1384%endif
This page took 1.166099 seconds and 4 git commands to generate.