/[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 49379 - (show annotations) (download)
Wed Feb 9 17:41:15 2011 UTC (13 years, 1 month ago) by dmorgan
Original Path: cauldron/rpm/current/SPECS/rpm.spec
File size: 21072 byte(s)
Add exit to not build rpm for now
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 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 #Do not enable until perl-RPM4 is ported
76 Release: %{release}
77 Group: System/Configuration/Packaging
78
79 Source: http://www.rpm.org/releases/rpm-%{libver}.x/rpm-%{srcver}.tar.bz2
80
81 # Add some undocumented feature to gendiff
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=15896
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 # Turbolinux patches
189 # add writeHeaderListTofile function into rpm-python (needed by "buildman" build system) (Toshihiro, 2003)
190 #Patch2002: rpm-4.6.0-rc1-python-writeHdlist.patch
191 # Crusoe CPUs say that their CPU family is "5" but they have enough features for i686.
192 Patch2003: rpm-4.4.2.3-rc1-transmeta-crusoe-is-686.patch
193
194 # The following patch isn't needed for Mandriva, but Turbolinux has it and it can't hurt much
195 #
196 # This patch fixes the problem when the post-scripts launched by rpm-build.
197 # The post-scripts launched by rpm-build works in LANG environment. If LANG is
198 # other locale except C, then some commands launched by post-scripts will not
199 # display characters which you expected.
200 Patch2005: rpm-4.6.0-rc1-buildlang.patch
201
202 Patch2000: rpm-4.6.0-rc1-serial-tag.patch
203 # re-enable "copyright" tag (Kiichiro, 2005)
204 Patch2001: rpm-4.6.0-rc1-copyright-tag.patch
205
206 Patch3000: mips_macros.patch
207 Patch3001: fix_stack_protector_check.patch
208 Patch3002: mips_define_isa_macros.patch
209 Patch3003: rpm_arm_mips_isa_macros.patch
210 Patch3004: rpm_add_armv5tl.patch
211
212 License: GPL
213 BuildRequires: autoconf >= 2.57
214 BuildRequires: zlib-devel
215 BuildRequires: bzip2-devel
216 BuildRequires: liblzma-devel >= 4.999.6-0.alpha.5
217 BuildRequires: automake >= 1.8
218 BuildRequires: elfutils-devel
219 BuildRequires: sed >= 4.0.3
220 BuildRequires: libbeecrypt-devel
221 BuildRequires: ed, gettext-devel
222 BuildRequires: libsqlite3-devel
223 BuildRequires: db4.8-devel
224 BuildRequires: neon-devel
225 BuildRequires: popt-devel
226 BuildRequires: nss-devel
227 BuildRequires: magic-devel
228 BuildRequires: rpm-%{_real_vendor}-setup-build %{?rpmsetup_version:>= %{rpmsetup_version}}
229 BuildRequires: readline-devel
230 BuildRequires: ncurses-devel
231 BuildRequires: openssl-devel >= 0.9.8
232 BuildRequires: lua-devel
233 # Need for doc
234 #BuildRequires: graphviz
235 BuildRequires: tetex
236 %if %buildpython
237 BuildRequires: python-devel
238 %endif
239
240 Requires: bzip2 >= 0.9.0c-2
241 Requires: lzma
242 Requires: cpio
243 Requires: gawk
244 Requires: glibc >= 2.1.92
245 Requires: mktemp
246 Requires: setup >= 2.2.0-8
247 Requires: rpm-%{_real_vendor}-setup >= 1.85
248 Requires: update-alternatives
249 Requires: %librpmname = %epoch:%version-%release
250 Conflicts: patch < 2.5
251 Conflicts: menu < 2.1.5-29
252 Conflicts: locales < 2.3.1.1
253 Conflicts: man-pages-fr < 0.9.7-16
254 Conflicts: man-pages-pl < 0.4-9
255 Conflicts: perl-URPM < 1.63-3
256 # rpm 4.6.0 dropped support for --repackage, so urpmi-recover can not work anymore:
257 Conflicts: urpmi-recover
258 URL: http://rpm.org/
259 %define git_url http://rpm.org/git/rpm.git
260 Requires(pre): rpm-helper >= 0.8
261 Requires(pre): coreutils
262 Requires(postun): rpm-helper >= 0.8
263 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
264
265 %description
266 RPM is a powerful command line driven package management system capable of
267 installing, uninstalling, verifying, querying, and updating software packages.
268 Each software package consists of an archive of files along with information
269 about the package like its version, a description, etc.
270
271 %package -n %librpmname
272 Summary: Library used by rpm
273 Group: System/Libraries
274 Provides: librpm = %version-%release
275
276 %description -n %librpmname
277 RPM is a powerful command line driven package management system capable of
278 installing, uninstalling, verifying, querying, and updating software packages.
279 This package contains common files to all applications based on rpm.
280
281 %package -n %librpmnamedevel
282 Summary: Development files for applications which will manipulate RPM packages
283 Group: Development/C
284 Requires: rpm = %epoch:%{version}-%{release}
285 Provides: librpm-devel = %version-%release
286 Provides: rpm-devel = %version-%release
287 Obsoletes: rpm-devel < 4.4.1
288 Obsoletes: %{_lib}rpm4.4-devel
289 Obsoletes: %{_lib}rpm4.2-devel
290
291 %description -n %librpmnamedevel
292 This package contains the RPM C library and header files. These
293 development files will simplify the process of writing programs
294 which manipulate RPM packages and databases and are intended to make
295 it easier to create graphical package managers or any other tools
296 that need an intimate knowledge of RPM packages in order to function.
297
298 This package should be installed if you want to develop programs that
299 will manipulate RPM packages and databases.
300
301 %package build
302 Summary: Scripts and executable programs used to build packages
303 Group: System/Configuration/Packaging
304 Requires: autoconf
305 Requires: automake
306 Requires: file
307 Requires: gcc-c++
308 # We need cputoolize & amd64-* alias to x86_64-* in config.sub
309 Requires: libtool-base >= 1.4.3-5
310 Requires: patch >= 2.5.9-7
311 Requires: make
312 Requires: tar
313 Requires: unzip
314 Requires: elfutils
315 Requires: rpm = %epoch:%{version}-%{release}
316 Requires: rpm-%{_real_vendor}-setup-build %{?rpmsetup_version:>= %{rpmsetup_version}}
317
318 %description build
319 This package contains scripts and executable programs that are used to
320 build packages using RPM.
321
322 %if %buildpython
323 %package -n python-rpm
324 Summary: Python bindings for apps which will manipulate RPM packages
325 Group: Development/Python
326 Requires: python >= %{pyver}
327 Requires: rpm = %epoch:%{version}-%{release}
328 Obsoletes: rpm-python < %epoch:%version-%release
329 Provides: rpm-python = %version-%release
330
331 %description -n python-rpm
332 The rpm-python package contains a module which permits applications
333 written in the Python programming language to use the interface
334 supplied by RPM (RPM Package Manager) libraries.
335
336 This package should be installed if you want to develop Python
337 programs that will manipulate RPM packages and databases.
338 %endif
339
340 %prep
341 %setup -q -n %name-%srcver
342 %apply_patches
343
344 %build
345
346 # Remove me when we will upload rpm
347 exit 1
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