/[packages]/updates/1/rpm/current/SPECS/rpm.spec
ViewVC logotype

Contents of /updates/1/rpm/current/SPECS/rpm.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62040 - (show annotations) (download)
Tue Mar 1 13:37:51 2011 UTC (13 years, 1 month ago) by dmorgan
Original Path: cauldron/rpm/current/SPECS/rpm.spec
File size: 21155 byte(s)
Readd rpm-4.8.1-setup-rubygems.patch ( candidate for upstream )
1 # Do not change this spec directly but in the svn
2 # $Id: rpm.spec 134789 2007-03-27 15:13:43Z nanardon $
3
4 %define lib64arches x86_64 ppc64 sparc64
5
6 %ifarch %lib64arches
7 %define _lib lib64
8 %else
9 %define _lib lib
10 %endif
11
12 %define _prefix /usr
13 %define _libdir %_prefix/%_lib
14 %define _bindir %_prefix/bin
15 %define _sysconfdir /etc
16 %define _datadir /usr/share
17 %define _defaultdocdir %_datadir/doc
18 %define _localstatedir /var
19 %define _infodir %_datadir/info
20
21 %if %{?apply_patches:0}%{?!apply_patches:1}
22 %define apply_patches %(for p in `grep '^Patch.*:' "%{_specdir}/rpm.spec" | cut -d':' -f2-`; do echo "patch -p1 -F0 -i %{_sourcedir}/$p"; done )
23 %endif
24
25 # Define directory which holds rpm config files, and some binaries actually
26 # NOTE: it remains */lib even on lib64 platforms as only one version
27 # of rpm is supported anyway, per architecture
28 %define rpmdir %{_prefix}/lib/rpm
29
30 %if %{?mklibname:0}%{?!mklibname:1}
31 %define mklibname(ds) %{_lib}%{1}%{?2:%{2}}%{?3:_%{3}}%{-s:-static}%{-d:-devel}
32 %endif
33
34 %if %{?distsuffix:0}%{?!distsuffix:1}
35 %define distsuffix .mga
36 %endif
37
38 %if %{?mkrel:0}%{?!mkrel:1}
39 %define mkrel(c:) %{-c: 0.%{-c*}.}%{1}%{?distsuffix:%distsuffix}%{?!distsuffix:.mga}%{?mageia_release:%mageia_release}%{?subrel:.%subrel}
40 %endif
41
42 %if %{?mips:0}%{?!mips:1}
43 %define mips mips mipsel mips32 mips32el mips64 mips64el
44 %endif
45
46 %if %{?pyver:0}%{?!pyver:1}
47 %define pyver %(python -V 2>&1 | cut -f2 -d" " | cut -f1,2 -d".")
48 %endif
49
50 %define __find_requires %{rpmdir}/%{_real_vendor}/find-requires %{?buildroot:%{buildroot}} %{?_target_cpu:%{_target_cpu}}
51 %define __find_provides %{rpmdir}/%{_real_vendor}/find-provides
52
53 %define rpmversion 4.8.1
54 %define srcver %rpmversion
55 %define libver 4.8
56 %define libmajor 1
57 %define release %mkrel 2
58 %define librpmname %mklibname rpm %{libmajor}
59 %define librpmnamedevel %mklibname -d rpm
60
61 %define buildpython 1
62
63 %define rpmsetup_version 1.34
64
65 %define builddebug 0
66 %{?_with_debug:%define builddebug 1}
67
68 %{?_with_python:%define buildpython 1}
69 %{?_without_python:%define buildpython 0}
70
71 Summary: The RPM package management system
72 Name: rpm
73 Epoch: 1
74 Version: %{rpmversion}
75 Release: %{release}
76 Group: System/Configuration/Packaging
77
78 Source: http://www.rpm.org/releases/rpm-%{libver}.x/rpm-%{srcver}.tar.bz2
79
80 # Add some undocumented feature to gendiff
81 ## To be dropped.
82 Patch17: rpm-4.4.2.2-gendiff-improved.patch
83
84 # if %post of foo-2 fails,
85 # or if %preun of foo-1 fails,
86 # or if %postun of foo-1 fails,
87 # => foo-1 is not removed, so we end up with both packages in rpmdb
88 # this patch makes rpm ignore the error in those cases
89 # failing %pre must still make the rpm install fail (#23677)
90 #
91 # (nb: the exit code for pretrans/posttrans & trigger/triggerun/triggerpostun
92 # scripts is ignored with or without this patch)
93 Patch22: rpm-4.6.0-rc1-non-pre-scripts-dont-fail.patch
94
95 # (fredl) add loging facilities through syslog
96 Patch31: rpm-4.6.0-rc1-syslog.patch
97
98 # part of Backport from 4.2.1 provides becoming obsoletes bug (fpons)
99 # (is it still needed?)
100 Patch49: rpm-4.6.0-rc1-provides-obsoleted.patch
101
102 # - force /usr/lib/rpm/mageia/rpmrc instead of /usr/lib/rpm/<vendor>/rpmrc
103 # - read /usr/lib/rpm/mageia/rpmpopt (not only /usr/lib/rpm/rpmpopt)
104 Patch64: rpm-4.6.1-mageia-rpmrc-rpmpopt.patch
105
106 # In original rpm, -bb --short-circuit does not work and run all stage
107 # From popular request, we allow to do this
108 # http://qa.mandriva.com/show_bug.cgi?id=15896Z
109 # (A different implementation has landed in rpm-4.9)
110 Patch70: rpm-4.6.0-rc1-bb-shortcircuit.patch
111
112 # http://www.redhat.com/archives/rpm-list/2005-April/msg00131.html
113 # http://www.redhat.com/archives/rpm-list/2005-April/msg00132.html
114 # is this useful? "at least erasure ordering is just as non-existent as it was in 4.4.x" says Panu
115 #with rpm 4.8.0, breaks urpmi testsuite (ordering-scriptlets)
116 #Patch71: rpm-4.6.0-ordererase.patch#with rpm 4.8.0, breaks urpmi testsuite (ordering-scriptlets)
117
118 # don't conflict for doc files
119 # (to be able to install lib*-devel together with lib64*-devel even if they have conflicting manpages)
120 Patch83: rpm-4.6.0-no-doc-conflicts.patch
121
122 # Fix http://qa.mandriva.com/show_bug.cgi?id=19392
123 # (is this working??)
124 Patch84: rpm-4.4.2.2-rpmqv-ghost.patch
125
126 # Fix diff issue when buildroot contains some "//"
127 Patch111: rpm-check-file-trim-double-slash-in-buildroot.patch
128
129 # [Dec 2008] macrofiles from rpmrc does not overrides MACROFILES anymore
130 Patch114: rpm-4.6.0-rc1-read-macros_d-dot-macros.patch
131
132 # remove unused skipDir functionality that conflicts with patch124 below
133 #Patch1124: rpm-4.6.0-rc1-revert-unused-skipDir-functionality.patch
134
135 # [pixel] without this patch, "rpm -e" or "rpm -U" will need to stat(2) every dirnames of
136 # files from the package (eg COPYING) in the db. This is quite costly when not in cache
137 # (eg on a test here: >300 stats, and so 3 seconds after a "echo 3 > /proc/sys/vm/drop_caches")
138 # this breaks urpmi test case test_rpm_i_fail('gd') in superuser--file-conflicts.t,
139 # but this is bad design anyway
140 #Patch124: rpm-4.6.0-rc1-speedup-by-not-checking-same-files-with-different-paths-through-symlink.patch
141
142 # [from SuSE] handle "Suggests" via RPMTAG_SUGGESTSNAME
143 Patch133: rpm-4.6.0-rc1-weakdeps.patch
144
145 # (from Turbolinux) remove a wrong check in case %_topdir is /RPM (ie when it is short)
146 Patch135: rpm-4.4.2.3-rc1-fix-debugedit.patch
147
148 # convert data in the header to a specific encoding which used in the selected locale.
149 Patch137: rpm-4.6.0-rc1-headerIconv.patch
150
151 # Mandriva does not need the (broken) ldconfig hack since it uses filetriggers
152 #Patch141: rpm-4.6.0-rc1-drop-skipping-ldconfig-hack.patch
153
154 # without this patch, "#%define foo bar" is surprisingly equivalent to "%define foo bar"
155 # with this patch, "#%define foo bar" is a fatal error
156 Patch145: rpm-forbid-badly-commented-define-in-spec.patch
157
158 # cf http://wiki.mandriva.com/en/Rpm_filetriggers
159 Patch146: rpm-4.6.0-rc1-filetriggers.patch
160
161 # add two fatal errors (during package build)
162 Patch147: rpm-rpmbuild-check-useless-tags-in-non-existant-binary-packages.patch
163
164 # (nb: see the patch for more info about this issue)
165 Patch151: rpm-4.6.0-rc1-protect-against-non-robust-futex.patch
166
167 Patch152: rpm-4.6.0-rc1-fix-nss-detection.patch
168
169 Patch157: introduce-_after_setup-which-is-called-after-setup.patch
170 Patch158: introduce-_patch-and-allow-easy-override-when-the-p.patch
171 Patch159: introduce-apply_patches-and-lua-var-patches_num.patch
172
173 #Patch1001: rpm-4.6.0-rc1-new-liblzma.patch
174
175 # default behaviour in rpm-jbj >= 4.4.6
176 Patch1005: rpm-allow-conflicting-ghost-files.patch
177
178 Patch1007: rpm-4.6.0-rc3-xz-support.patch
179
180 # Prevents $DOCDIR from being wiped out when using %%doc <fileinbuilddir>,
181 # as this breaks stuff that installs files to $DOCDIR during %%install
182 Patch1008: rpm-4.6.0-rc3-no_rm_-rf_DOCDIR.patch
183
184 # Exposes packagecolor tag and adds new tags from rpm5 as it otherwise will
185 # break when these unknown tags might be found in the rpmdb. Notice that this
186 # will only make rpm recognize these, not implement actual support for them..
187 Patch1009: rpm-4.6.0-rpm5-tags.patch
188
189 # Automatically handle ruby gem extraction in %setup
190 Patch1018: rpm-4.8.1-setup-rubygems.patch
191
192 # Turbolinux patches
193 # add writeHeaderListTofile function into rpm-python (needed by "buildman" build system) (Toshihiro, 2003)
194 #Patch2002: rpm-4.6.0-rc1-python-writeHdlist.patch
195 # Crusoe CPUs say that their CPU family is "5" but they have enough features for i686.
196 Patch2003: rpm-4.4.2.3-rc1-transmeta-crusoe-is-686.patch
197
198 # The following patch isn't needed for Mandriva, but Turbolinux has it and it can't hurt much
199 #
200 # This patch fixes the problem when the post-scripts launched by rpm-build.
201 # The post-scripts launched by rpm-build works in LANG environment. If LANG is
202 # other locale except C, then some commands launched by post-scripts will not
203 # display characters which you expected.
204 Patch2005: rpm-4.6.0-rc1-buildlang.patch
205
206 Patch2000: rpm-4.6.0-rc1-serial-tag.patch
207 # re-enable "copyright" tag (Kiichiro, 2005)
208 Patch2001: rpm-4.6.0-rc1-copyright-tag.patch
209
210 Patch3000: mips_macros.patch
211 Patch3001: fix_stack_protector_check.patch
212 Patch3002: mips_define_isa_macros.patch
213 Patch3003: rpm_arm_mips_isa_macros.patch
214 Patch3004: rpm_add_armv5tl.patch
215
216 License: GPL
217 BuildRequires: autoconf >= 2.57
218 BuildRequires: zlib-devel
219 BuildRequires: bzip2-devel
220 BuildRequires: liblzma-devel >= 4.999.6-0.alpha.5
221 BuildRequires: automake >= 1.8
222 BuildRequires: elfutils-devel
223 BuildRequires: sed >= 4.0.3
224 BuildRequires: libbeecrypt-devel
225 BuildRequires: ed, gettext-devel
226 BuildRequires: libsqlite3-devel
227 BuildRequires: db4.8-devel
228 BuildRequires: neon-devel
229 BuildRequires: popt-devel
230 BuildRequires: nss-devel
231 BuildRequires: magic-devel
232 BuildRequires: rpm-%{_real_vendor}-setup-build %{?rpmsetup_version:>= %{rpmsetup_version}}
233 BuildRequires: readline-devel
234 BuildRequires: ncurses-devel
235 BuildRequires: openssl-devel >= 0.9.8
236 BuildRequires: lua-devel
237 # Need for doc
238 #BuildRequires: graphviz
239 BuildRequires: tetex
240 %if %buildpython
241 BuildRequires: python-devel
242 %endif
243
244 Requires: bzip2 >= 0.9.0c-2
245 Requires: lzma
246 Requires: cpio
247 Requires: gawk
248 Requires: glibc >= 2.1.92
249 Requires: mktemp
250 Requires: setup >= 2.2.0-8
251 Requires: rpm-%{_real_vendor}-setup >= 1.85
252 Requires: update-alternatives
253 Requires: %librpmname = %epoch:%version-%release
254 Conflicts: patch < 2.5
255 Conflicts: menu < 2.1.5-29
256 Conflicts: locales < 2.3.1.1
257 Conflicts: man-pages-fr < 0.9.7-16
258 Conflicts: man-pages-pl < 0.4-9
259 Conflicts: perl-URPM < 1.63-3
260 # rpm 4.6.0 dropped support for --repackage, so urpmi-recover can not work anymore:
261 Conflicts: urpmi-recover
262 URL: http://rpm.org/
263 %define git_url http://rpm.org/git/rpm.git
264 Requires(pre): rpm-helper >= 0.8
265 Requires(pre): coreutils
266 Requires(postun): rpm-helper >= 0.8
267 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
268
269 %description
270 RPM is a powerful command line driven package management system capable of
271 installing, uninstalling, verifying, querying, and updating software packages.
272 Each software package consists of an archive of files along with information
273 about the package like its version, a description, etc.
274
275 %package -n %librpmname
276 Summary: Library used by rpm
277 Group: System/Libraries
278 Provides: librpm = %version-%release
279
280 %description -n %librpmname
281 RPM is a powerful command line driven package management system capable of
282 installing, uninstalling, verifying, querying, and updating software packages.
283 This package contains common files to all applications based on rpm.
284
285 %package -n %librpmnamedevel
286 Summary: Development files for applications which will manipulate RPM packages
287 Group: Development/C
288 Requires: rpm = %epoch:%{version}-%{release}
289 Provides: librpm-devel = %version-%release
290 Provides: rpm-devel = %version-%release
291 Obsoletes: rpm-devel < 4.4.1
292 Obsoletes: %{_lib}rpm4.4-devel
293 Obsoletes: %{_lib}rpm4.2-devel
294
295 %description -n %librpmnamedevel
296 This package contains the RPM C library and header files. These
297 development files will simplify the process of writing programs
298 which manipulate RPM packages and databases and are intended to make
299 it easier to create graphical package managers or any other tools
300 that need an intimate knowledge of RPM packages in order to function.
301
302 This package should be installed if you want to develop programs that
303 will manipulate RPM packages and databases.
304
305 %package build
306 Summary: Scripts and executable programs used to build packages
307 Group: System/Configuration/Packaging
308 Requires: autoconf
309 Requires: automake
310 Requires: file
311 Requires: gcc-c++
312 # We need cputoolize & amd64-* alias to x86_64-* in config.sub
313 Requires: libtool-base >= 1.4.3-5
314 Requires: patch >= 2.5.9-7
315 Requires: make
316 Requires: tar
317 Requires: unzip
318 Requires: elfutils
319 Requires: rpm = %epoch:%{version}-%{release}
320 Requires: rpm-%{_real_vendor}-setup-build %{?rpmsetup_version:>= %{rpmsetup_version}}
321
322 %description build
323 This package contains scripts and executable programs that are used to
324 build packages using RPM.
325
326 %if %buildpython
327 %package -n python-rpm
328 Summary: Python bindings for apps which will manipulate RPM packages
329 Group: Development/Python
330 Requires: python >= %{pyver}
331 Requires: rpm = %epoch:%{version}-%{release}
332 Obsoletes: rpm-python < %epoch:%version-%release
333 Provides: rpm-python = %version-%release
334
335 %description -n python-rpm
336 The rpm-python package contains a module which permits applications
337 written in the Python programming language to use the interface
338 supplied by RPM (RPM Package Manager) libraries.
339
340 This package should be installed if you want to develop Python
341 programs that will manipulate RPM packages and databases.
342 %endif
343
344 %prep
345 %setup -q -n %name-%srcver
346 %apply_patches
347
348 %build
349
350 autoreconf
351
352 %if %builddebug
353 RPM_OPT_FLAGS=-g
354 %endif
355 CFLAGS="$RPM_OPT_FLAGS -fPIC" CXXFLAGS="$RPM_OPT_FLAGS -fPIC" \
356 %configure \
357 --enable-nls \
358 --enable-python \
359 --enable-sqlite3 \
360 --without-javaglue \
361 %if %builddebug
362 --enable-debug \
363 %endif
364 --with-external-db \
365 %if %buildpython
366 --with-python=%{pyver} \
367 %else
368 --without-python \
369 %endif
370 --with-glob \
371 --without-selinux \
372 --without-apidocs
373
374 %make
375
376 %install
377 rm -rf $RPM_BUILD_ROOT
378
379 make DESTDIR=%buildroot install
380
381 %ifarch ppc powerpc
382 ln -sf ppc-%{_real_vendor}-linux $RPM_BUILD_ROOT%{rpmdir}/powerpc-%{_real_vendor}-linux
383 %endif
384
385 #mv -f $RPM_BUILD_ROOT/%{rpmdir}/rpmdiff $RPM_BUILD_ROOT/%{_bindir}
386
387 # Save list of packages through cron
388 mkdir -p ${RPM_BUILD_ROOT}/etc/cron.daily
389 install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}/etc/cron.daily/rpm
390
391 mkdir -p ${RPM_BUILD_ROOT}/etc/logrotate.d
392 install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}/etc/logrotate.d/rpm
393
394 mkdir -p $RPM_BUILD_ROOT/var/lib/rpm
395 for dbi in \
396 Basenames Conflictname Dirnames Group Installtid Name Providename \
397 Provideversion Removetid Requirename Requireversion Triggername \
398 Packages __db.001 __db.002 __db.003 __db.004
399 do
400 touch $RPM_BUILD_ROOT/var/lib/rpm/$dbi
401 done
402
403 test -d doc-copy || mkdir doc-copy
404 rm -rf doc-copy/*
405 ln -f doc/manual/* doc-copy/
406 rm -f doc-copy/Makefile*
407
408 mkdir -p $RPM_BUILD_ROOT/var/spool/repackage
409
410 mkdir -p %buildroot%_sysconfdir/rpm/macros.d
411 cat > %buildroot%_sysconfdir/rpm/macros <<EOF
412 # Put your own system macros here
413 # usually contains
414
415 # Set this one according your locales
416 # %%_install_langs
417
418 EOF
419
420 # Get rid of unpackaged files
421 (cd $RPM_BUILD_ROOT;
422 rm -rf .%{_includedir}/beecrypt/
423 rm -f .%{_libdir}/libbeecrypt.{a,la,so*}
424 rm -f .%{_libdir}/python*/site-packages/rpmmodule.{a,la}
425 rm -f .%{rpmdir}/{Specfile.pm,cpanflute2,cpanflute,sql.prov,sql.req,tcl.req}
426 rm -f .%{rpmdir}/{config.site,cross-build,rpmdiff.cgi}
427 rm -f .%{rpmdir}/trpm
428 rm -f .%{_bindir}/rpmdiff
429 )
430
431 %{rpmdir}/%{_host_vendor}/find-lang.pl $RPM_BUILD_ROOT %{name}
432
433 %clean
434 rm -rf $RPM_BUILD_ROOT
435
436 %pre
437 if [ -f /var/lib/rpm/Packages -a -f /var/lib/rpm/packages.rpm ]; then
438 echo "
439 You have both
440 /var/lib/rpm/packages.rpm db1 format installed package headers
441 /var/lib/rpm/Packages db3 format installed package headers
442 Please remove (or at least rename) one of those files, and re-install.
443 "
444 exit 1
445 fi
446
447 /usr/share/rpm-helper/add-user rpm $1 rpm /var/lib/rpm /bin/false
448
449 rm -rf /usr/lib/rpm/*-mandrake-*
450 rm -rf /usr/lib/rpm/*-%{_real_vendor}-*
451
452
453 %post
454 # nuke __db.00? when updating to this rpm
455 rm -f /var/lib/rpm/__db.00?
456
457 if [ ! -e /etc/rpm/macros -a -e /etc/rpmrc -a -f %{rpmdir}/convertrpmrc.sh ]
458 then
459 sh %{rpmdir}/convertrpmrc.sh 2>&1 > /dev/null
460 fi
461
462 if [ -f /var/lib/rpm/packages.rpm ]; then
463 /bin/chown rpm.rpm /var/lib/rpm/*.rpm
464 elif [ ! -f /var/lib/rpm/Packages ]; then
465 /bin/rpm --initdb
466 fi
467
468 %postun
469 /usr/share/rpm-helper/del-user rpm $1 rpm
470
471 %triggerpostun -- rpm < 1:4.4.2.3-11
472 if [ -f /etc/rpm/macros.cdb.rpmsave ]; then
473 echo "warning: restoring /etc/rpm/macros.cdb from macros.cdb.rpmsave, please check you really need the changes"
474 mv /etc/rpm/macros.cdb.rpmsave /etc/rpm/macros.cdb
475 fi
476
477 %define rpmattr %attr(0755, rpm, rpm)
478
479 %files -f %{name}.lang
480 %defattr(-,root,root)
481 %doc GROUPS CHANGES doc/manual/[a-z]*
482 %attr(0755,rpm,rpm) /bin/rpm
483 %attr(0755, rpm, rpm) %{_bindir}/rpm2cpio
484 %attr(0755, rpm, rpm) %{_bindir}/gendiff
485 %attr(0755, rpm, rpm) %{_bindir}/rpmdb
486 %attr(0755, rpm, rpm) %{_bindir}/rpmgraph
487 %attr(0755, rpm, rpm) %{_bindir}/rpmsign
488 %attr(0755, rpm, rpm) %{_bindir}/rpmquery
489 %attr(0755, rpm, rpm) %{_bindir}/rpmverify
490
491 %dir %{_localstatedir}/spool/repackage
492 %dir %{rpmdir}
493 %dir /etc/rpm
494 %config(noreplace) /etc/rpm/macros
495 %dir /etc/rpm/macros.d
496 %attr(0755, rpm, rpm) %{rpmdir}/config.guess
497 %attr(0755, rpm, rpm) %{rpmdir}/config.sub
498 #%attr(0755, rpm, rpm) %{rpmdir}/convertrpmrc.sh
499 %attr(0755, rpm, rpm) %{rpmdir}/rpmdb_*
500 %attr(0644, rpm, rpm) %{rpmdir}/macros
501 %attr(0755, rpm, rpm) %{rpmdir}/mkinstalldirs
502 %attr(0755, rpm, rpm) %{rpmdir}/rpm.*
503 %attr(0644, rpm, rpm) %{rpmdir}/rpmpopt*
504 %attr(0644, rpm, rpm) %{rpmdir}/rpmrc
505
506 %rpmattr %{rpmdir}/rpm2cpio.sh
507 %rpmattr %{rpmdir}/tgpg
508
509 %dir %attr( -, rpm, rpm) %{rpmdir}/platform/
510 %ifarch %{ix86} x86_64
511 %attr( -, rpm, rpm) %{rpmdir}/platform/i*86-*
512 %attr( -, rpm, rpm) %{rpmdir}/platform/athlon-*
513 %attr( -, rpm, rpm) %{rpmdir}/platform/pentium*-*
514 %attr( -, rpm, rpm) %{rpmdir}/platform/geode-*
515 %endif
516 %ifarch alpha
517 %attr( -, rpm, rpm) %{rpmdir}/platform/alpha*
518 %endif
519 %ifarch %{sunsparc}
520 %attr( -, rpm, rpm) %{rpmdir}/platform/sparc*
521 %endif
522 %ifarch ppc powerpc
523 %attr( -, rpm, rpm) %{rpmdir}/platform/ppc-*
524 %attr( -, rpm, rpm) %{rpmdir}/platform/ppc32-*
525 %attr( -, rpm, rpm) %{rpmdir}/platform/ppc64-*
526 %attr( -, rpm, rpm) %{rpmdir}/platform/powerpc-*
527 %endif
528 %ifarch ppc powerpc ppc64
529 %attr( -, rpm, rpm) %{rpmdir}/platform/ppc*series-*
530 %endif
531 %ifarch ppc64
532 %attr( -, rpm, rpm) %{rpmdir}/platform/ppc-*
533 %attr( -, rpm, rpm) %{rpmdir}/platform/ppc32-*
534 %attr( -, rpm, rpm) %{rpmdir}/platform/ppc64-*
535 %endif
536 %ifarch ia64
537 %attr( -, rpm, rpm) %{rpmdir}/platform/ia64-*
538 %endif
539 %ifarch x86_64
540 %attr( -, rpm, rpm) %{rpmdir}/platform/amd64-*
541 %attr( -, rpm, rpm) %{rpmdir}/platform/x86_64-*
542 %attr( -, rpm, rpm) %{rpmdir}/platform/ia32e-*
543 %endif
544 %ifarch %arm
545 %attr( -, rpm, rpm) %{rpmdir}/platform/armv*
546 %endif
547 %ifarch %mips
548 %attr( -, rpm, rpm) %{rpmdir}/platform/mips*
549 %endif
550 %attr( -, rpm, rpm) %{rpmdir}/platform/noarch*
551
552 %{_mandir}/man[18]/*.[18]*
553 %lang(pl) %{_mandir}/pl/man[18]/*.[18]*
554 %lang(ru) %{_mandir}/ru/man[18]/*.[18]*
555 %lang(ja) %{_mandir}/ja/man[18]/*.[18]*
556 %lang(sk) %{_mandir}/sk/man[18]/*.[18]*
557 %lang(fr) %{_mandir}/fr/man[18]/*.[18]*
558 %lang(ko) %{_mandir}/ko/man[18]/*.[18]*
559
560 %config(noreplace,missingok) /etc/cron.daily/rpm
561 %config(noreplace,missingok) /etc/logrotate.d/rpm
562
563 %attr(0755, rpm, rpm) %dir %_localstatedir/lib/rpm
564
565 %define rpmdbattr %attr(0644, rpm, rpm) %verify(not md5 size mtime) %ghost %config(missingok,noreplace)
566
567 %rpmdbattr /var/lib/rpm/Basenames
568 %rpmdbattr /var/lib/rpm/Conflictname
569 %rpmdbattr /var/lib/rpm/__db.0*
570 %rpmdbattr /var/lib/rpm/Dirnames
571 %rpmdbattr /var/lib/rpm/Group
572 %rpmdbattr /var/lib/rpm/Installtid
573 %rpmdbattr /var/lib/rpm/Name
574 %rpmdbattr /var/lib/rpm/Packages
575 %rpmdbattr /var/lib/rpm/Providename
576 %rpmdbattr /var/lib/rpm/Provideversion
577 %rpmdbattr /var/lib/rpm/Removetid
578 %rpmdbattr /var/lib/rpm/Requirename
579 %rpmdbattr /var/lib/rpm/Requireversion
580 %rpmdbattr /var/lib/rpm/Triggername
581
582 %files build
583 %defattr(-,root,root)
584 %doc CHANGES
585 %doc doc-copy/*
586 %rpmattr %{_bindir}/rpmbuild
587 %rpmattr %{_prefix}/lib/rpm/brp-*
588 %rpmattr %{_prefix}/lib/rpm/check-files
589 %rpmattr %{_prefix}/lib/rpm/debugedit
590 %rpmattr %{_prefix}/lib/rpm/desktop-file.prov
591 %rpmattr %{_prefix}/lib/rpm/find-debuginfo.sh
592 %rpmattr %{_prefix}/lib/rpm/find-lang.sh
593 %rpmattr %{_prefix}/lib/rpm/find-provides
594 %rpmattr %{_prefix}/lib/rpm/find-requires
595 %rpmattr %{_prefix}/lib/rpm/fontconfig.prov
596 %rpmattr %{_prefix}/lib/rpm/perldeps.pl
597 %rpmattr %{_prefix}/lib/rpm/perl.prov
598 %rpmattr %{_prefix}/lib/rpm/perl.req
599
600 %rpmattr %{_prefix}/lib/rpm/check-buildroot
601 %rpmattr %{_prefix}/lib/rpm/check-prereqs
602 %rpmattr %{_prefix}/lib/rpm/check-rpaths
603 %rpmattr %{_prefix}/lib/rpm/check-rpaths-worker
604 %rpmattr %{_prefix}/lib/rpm/javadeps
605 %rpmattr %{_prefix}/lib/rpm/libtooldeps.sh
606 %rpmattr %{_prefix}/lib/rpm/macros.perl
607 %rpmattr %{_prefix}/lib/rpm/macros.php
608 %rpmattr %{_prefix}/lib/rpm/macros.python
609 %rpmattr %{_prefix}/lib/rpm/mono-find-provides
610 %rpmattr %{_prefix}/lib/rpm/mono-find-requires
611 %rpmattr %{_prefix}/lib/rpm/ocaml-find-provides.sh
612 %rpmattr %{_prefix}/lib/rpm/ocaml-find-requires.sh
613 %rpmattr %{_prefix}/lib/rpm/osgideps.pl
614 %rpmattr %{_prefix}/lib/rpm/pkgconfigdeps.sh
615 %rpmattr %{_prefix}/lib/rpm/rpmdiff
616
617 %rpmattr %{_prefix}/lib/rpm/rpmdeps
618 #%rpmattr %{_prefix}/lib/rpm/trpm
619 %rpmattr %{_prefix}/lib/rpm/pythondeps.sh
620
621 %{_mandir}/man8/rpmbuild.8*
622 %{_mandir}/man8/rpmdeps.8*
623
624 %if %buildpython
625 %files -n python-rpm
626 %defattr(-,root,root)
627 %{_libdir}/python*/site-packages/rpm
628 %endif
629
630 %files -n %librpmname
631 %defattr(-,root,root)
632 %{_libdir}/librpm.so.%{libmajor}*
633 %{_libdir}/librpmio.so.%{libmajor}*
634 %{_libdir}/librpmbuild.so.%{libmajor}*
635
636 %files -n %librpmnamedevel
637 %defattr(-,root,root)
638 %{_includedir}/rpm
639 %{_libdir}/librpm.la
640 %{_libdir}/librpm.so
641 %{_libdir}/librpmio.la
642 %{_libdir}/librpmio.so
643 %{_libdir}/librpmbuild.la
644 %{_libdir}/librpmbuild.so
645 %{_libdir}/pkgconfig/rpm.pc

  ViewVC Help
Powered by ViewVC 1.1.30