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

  ViewVC Help
Powered by ViewVC 1.1.30