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