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

  ViewVC Help
Powered by ViewVC 1.1.30