rpm/rpm.spec

1165 lines
36 KiB
RPMSpec
Raw Normal View History

2012-02-01 14:15:49 +04:00
%bcond_with bootstrap
%bcond_with debug
2012-08-01 14:59:23 +04:00
%bcond_without ossp_uuid
2012-02-01 14:15:49 +04:00
%bcond_without augeas
#XXX: this macro is a bit awkward, better can be done!
%if %{with bootstrap}
%bcond_with perl
%bcond_with python
2012-08-01 14:59:23 +04:00
%bcond_with tcl
%bcond_with squirrel
%bcond_with embed
2012-02-01 14:15:49 +04:00
%bcond_with docs
%bcond_with sqlite
%else
%bcond_without perl
%bcond_without python
2012-08-01 14:59:23 +04:00
%bcond_without tcl
%bcond_without squirrel
%bcond_without embed
2012-02-01 14:15:49 +04:00
%bcond_without docs
2012-08-01 14:59:23 +04:00
# use what's in berkeley db
%bcond_with sqlite
2012-02-01 14:15:49 +04:00
%endif
%bcond_with notyet
%if %{with notyet}
%bcond_without xar
%bcond_without ruby
%bcond_without js
%else
%bcond_with xar
%bcond_with ruby
%bcond_with js
%endif
%if %{with debug}
2012-08-01 14:59:23 +04:00
%global debugcflags %{debugcflags} -g3 -O0
2012-02-01 14:15:49 +04:00
%endif
2012-08-01 14:59:23 +04:00
# can probably be restored now..
%if %{with bootstrap}
#include %%{_sourcedir}/bootstrap.spec
%endif
2012-02-01 14:15:49 +04:00
2012-08-01 14:59:23 +04:00
%define bdb db52
2012-02-01 14:15:49 +04:00
2012-08-01 14:59:23 +04:00
%define libver 5.4
%define minorver 9
2012-02-01 14:15:49 +04:00
%define srcver %{libver}.%{minorver}
2012-08-01 14:59:23 +04:00
%define librpmname %mklibname rpm %{libver}
2012-02-01 14:15:49 +04:00
%define librpmnamedevel %mklibname -d rpm
2012-08-01 14:59:23 +04:00
2012-02-01 14:15:49 +04:00
%define librpmstatic %mklibname -d -s rpm
Summary: The RPM package management system
Name: rpm
Epoch: 1
2012-08-01 14:59:23 +04:00
Version: %{libver}.%{minorver}
License: LGPLv2.1+
Release: 8
2012-02-01 14:15:49 +04:00
Group: System/Configuration/Packaging
URL: http://rpm5.org/
2012-08-01 14:59:23 +04:00
# snapshot from rpm-5_4 branch: 'cvs -d :pserver:anonymous@rpm5.org:/cvs co -r rpm-5_4 rpm'
2012-02-01 14:15:49 +04:00
# tarball generated with './devtool tarball.xz'
2012-08-01 14:59:23 +04:00
Source0: ftp://ftp.jbj.org/pub/rpm-%{libver}.x/%{name}-%{srcver}.tar.gz
2012-02-01 14:15:49 +04:00
#Source1: bootstrap.spec
# These are a bit dated with a lot of redundant macros and many of them no
# of use at all anymore! Should ideally just contain the macros different
# from the default; _arch, optflags, _lib & _multilib*.
# stripping away the rest (along with os specificity) and create a resulting
# cpu-macros.tar.gz to push upstream would seem like a sane improvement.
2012-08-01 14:59:23 +04:00
Source2: rpm.rpmlintrc
2012-02-01 14:15:49 +04:00
Source3: cpu-os-macros.tar.gz
Source4: legacy_compat.macros
# already merged upstream
Patch0: rpm-5.3.8-set-default-bdb-log-dir.patch
# TODO: should be disable for cooker, packaging needs to be fixed (enable for legacy compatibility)
2012-08-01 14:59:23 +04:00
# status: to be removed later..
2012-02-01 14:15:49 +04:00
Patch1: rpm-5.3.8-dependency-whiteout.patch
# TODO: make conditional & disabled through macro by default (enable for legacy compatibility)
2012-08-01 14:59:23 +04:00
# status: to be removed later
Patch2: rpm-5.4.9-non-pre-scripts-dont-fail.patch
# status: to be removed later
Patch3: rpm-5.4.9-no-doc-conflicts.patch
2012-02-01 14:15:49 +04:00
# if distsuffix is defined, use it for disttag (from Anssi)
2012-08-01 14:59:23 +04:00
# status: merged upstream IIRC, could probably be dropped
2012-02-01 14:15:49 +04:00
Patch4: rpm-5.3.8-disttag-distsuffix-fallback.patch
# ugly hack to workaround disttag/distepoch pattern matching issue to buy some
# time to come up with better pattern fix..
2012-08-01 14:59:23 +04:00
# status: needs to be fixed properly, but can be merged upstream
2012-02-01 14:15:49 +04:00
Patch5: rpm-5.3.8-distepoch-pattern-hack.patch
# fixes a typo in russian translation (#62333)
2012-08-01 14:59:23 +04:00
# status: needs to be pushed back to the Russian i18n project
Patch11: rpm-5.4.9-fix-russian-typo.patch
2012-02-01 14:15:49 +04:00
# temporary workaround for issues with file triggers firing multiple times and
# a huge memleak...
2012-08-01 14:59:23 +04:00
# DIE
2012-02-01 14:15:49 +04:00
Patch15: rpm-5.3.8-fire-file-triggers-only-once.patch
2012-08-01 14:59:23 +04:00
# status: keep as mandriva specific for now
2012-02-01 14:15:49 +04:00
Patch21: rpm-5.3.12-change-dep-loop-errors-to-warnings.patch
2012-08-01 14:59:23 +04:00
# status: need to be revisited and made sure that we get the correct behaviour,
# regression tests certainly required
2012-02-01 14:15:49 +04:00
Patch22: rpm-5.3.12-55810-rpmevrcmp-again-grf.patch
2012-08-01 14:59:23 +04:00
# status: ready to merge, it's already been merged on HEAD, so commiting it to rpm-5_4
# would basically just mean backporting it..
Patch29: rpm-5.4.4-add-_specfile-macro.patch
# status: ready for merge
Patch31: rpm-5.4.9-fix-rpm_qa-pattern.patch
# uhm.. broken?
# status: this one was fixed for real in 5.3.12, but I forgot commiting it
# on rpm-5_4 branch back then, and I've been unable to remember and not
# bothered figuring out what was wrong..
Patch32: rpm-5.4.4-really-always-invoke-clean-at-end.patch
# status: i18n strings is getting dropped, so this one might be of less relevance,
# but feel free to discuss it on rpm-devel
Patch33: rpm-5.4.9-fix-mdvbz62979.patch
# This patch adds support for untangling dependency loops with prioritized removal
# of dependencies from loops. It's very crude for now and certainly needs some obvious
# improvement, but it'll fix the most common scenario giving issues where ie.
# Requires(post) has been used and shouldn't introduce any regressions..
# REF: http://rpm5.org/community/rpm-devel/4633.html
# status: needs to be finished and probably rewrite the implementation,
# so keep locally for now, but feel free to discuss it on rpm-devel if you run out
# of things to do.. :p
Patch34: rpm-5.4.4-use-dependency-type-for-ordering.patch
# status: needs to be cleaned up and properly reviewed together with rest
# of the patches related to dependency generation
Patch37: rpm-5.4.9-avoid-dependencies-on-self.patch
# status: probably ready to merge
Patch40: rpm-5.4.4-pkgconfigdeps-check-path.patch
# status: probably okay to merge, but discuss on rpm-devel first
Patch42: rpm-5.4.4-glob-wildcards-for-loading-macro-files.patch
# status: needs to be discussed
Patch46: rpm-5.4.4-allow-installation-of-repackaged-rpms.patch
# status: same as for other dependency generation related patches
Patch47: rpm-5.4.4-fix-removal-of-overlapping-dependencies.patch
# status: ready to merge
Patch48: rpm-5.4.8-dont-show-suggests-with-requires.patch
Patch50: rpm-5.4.4-debugedit-recompute-build-id-only-on-dwarf-change.patch
Patch51: rpm-5.4.4-debugedit-fix-incorrect-error-messages-regarding_-b-and_-d.patch
Patch52: rpm-5.4.4-debugedit-remove-unused-variable.patch
Patch53: rpm-5.4.4-debugedit-bail-out-of-debuginfo-if-stabs-format-encountered.patch
Patch54: rpm-5.4.4-debugedit-add-dwarf4-support.patch
# backport from HEAD
# status: almost ready for merge, the strip reloc flag to debugedit needs to be made
# conditional first in order to not break backwards compatibility with older elfutils versions
Patch55: rpm-5.4.9-find-debuginfo-strip-reloc-debug-sections.patch
# status: ready for merge
Patch61: rpm-5.4.4-fix-same-package-with-epoch-possible-to-upgrade.patch
# status: ready for merge
Patch63: rpm-5.4.9-strip-buildroot-away-from-duplicate-files-list.patch
# status: probably okay to merge, but discuss on rpm-devel first
Patch64: rpm-5.4.9-duplicate_files_terminate_build.patch
# status: same as above
Patch65: rpm-5.4.9-unpackaged_subdirs_terminate_build.patch
# mdvbz#64898
# status: uncertain, might be okay to merge, discuss on rpm-devel first
Patch66: rpm-5.4.4-rpmbuild-withoutclean.patch
# status: ready for merge
Patch67: rpm-5.4.4-find-debuginfo-avoid-excessive-output-from-eu-strip.patch
# mdvbz#64914
# status: ready for merging
Patch68: rpm-5.4.4-enable-rpmgio-net-transport.patch
# no sense in having an additional dependency on 'pkgconfig' on all packages that
# have a pkgconfig file, it's not needed for them to be made useful and anything
# actuallly using pkgconfig for this purpose will pull it in as a dependency anyways...
# status: might be okay to merge, but discuss on rpm-devel first
Patch69: rpm-5.4.4-drop-useless-auto-generated-pkgconfig-dependency.patch
# drop dependencies such as /bin/sh which will always be satisfied by glibc's dependency on
# bash, and also on /sbin/ldconfig which always will be satisfied by glibc
# status: should *NOT* be merged
Patch70: rpm-5.4.4-drop-base-dependencies.patch
# status: ready for merge
Patch71: rpm-5.4.4-fix-rpmconstant-to-always-use-LC_CTYPE-C-for-case-conversion.patch
# from rpm.org
# status: ready for merge
Patch72: rpm-5.4.4-debugedit-recognize-debug_macro-section.patch
# from rpm.org
# status: ready for merge
Patch73: rpm-5.4.9-add-_build_pkgcheck.patch
# $RPM_BUILD_DIR isn't necessarily the same as $PWD, it's %%{_builddir}, not
# %%{_builddir}/%%{?buildsubdir}, messing up paths in debug packages created..
# status: needs to be discussed and investigated a bit better..
Patch74: rpm-5.4.4-pass-_builddir-properly-to-find-debuginfo.patch
# status: ready for merge
Patch75: rpm-5.4.4-srcdefattr.patch
# status: probably okay to merge, but discuss on rpm-devel first
Patch76: rpm-5.4.4-files-listed-twice-terminates-build.patch
# status: don't merge
Patch77: rpm-5.4.7-use-bdb-5.2.patch
# status: probably okay to merge
Patch78: rpm-5.4.4-ruby1.9-fixes.patch
# mdvbz#65269
# status: same as for other dependency generation patches
Patch79: rpm-5.4.4-dont-consider-ranged-dependencies-as-overlapping-for-removal.patch
# status: ignoree for now
Patch81: rpm-5.4.5-libsql-conditional.patch
# status: ready for merge
Patch83: rpm-5.4.5-kmod-deps-xz-support.patch
# status: same as for other dependency generation patches
Patch85: rpm-5.4.5-fix-removal-of-overlapping-dependencies-for-internal-dependency-generator.patch
# this updates to using the dependency generator shipped with mono, it has some
# issues which makes me cautious about actually merging it with rpm5 upstream,
# but we'll anyways use it as is for now to prevent any potential regressions
# by switching to the internal dependency generator
# status: shouldn't be merged as is
Patch86: rpm-5.4.5-update-mono-dependency-generator.patch
# status: probably okay to merge
Patch87: rpm-5.4.5-dont-generate-php-dependencies-only-when-executable.patch
# status: these three were lost on rpm-5_3 branch, so should be okay to merge
Patch88: rpm-5.4.5-patchset_16004.patch
Patch89: rpm-5.4.5-patchset_16005.patch
Patch90: rpm-5.4.5-patchset_16022.patch
# status: same as for other dep gen patches
Patch91: rpm-5.4.9-update-rpmfc-when-removing-dependencies-on-self.patch
# status: idem
Patch92: rpm-5.4.9-rpmfc-extract-dependencies-for-all-files.patch
# status: ready for merge
Patch93: rpm-5.4.5-rubygems-add-missing-newline.patch
# status: ugly, keep locally for now
Patch94: rpm-5.4.9-generate-haskell-dependencies.patch
# status: same as for other dep gen patches
Patch95: rpm-5.4.5-drop-some-interpreter-deps.patch
# status: probably okay to merge..
Patch96: rpm-5.4.5-fix-elf-interpreter-resolving-breaking-uclibc-deps.patch
# status: probably okay to merge
Patch97: rpm-5.4.5-set-proper-file-color-for-scripts-using-env-in-shellbang.patch
Patch98: rpm-5.4.5-update-rpmfc-when-removing-overlapping-dependencies.patch
# status: probably okay to merge
Patch99: rpm-5.4.5-python-export-spec-macros.patch
# status: same as for other dep gen patches
Patch100: rpm-5.4.5-do-not-merge-script-dependencies-with-non-script-dependencies.patch
# status: idem
Patch101: rpm-5.4.9-font-provides.patch
# status: idem
Patch102: rpm-5.4.7-kmod-dependencies.patch
# status: idem
Patch103: rpm-5.4.5-desktop-provides.patch
# status: probably okay to merge, discuss on rpm-devel first
Patch104: rpm-5.4.5-skip-dependencies-for-character-devices.patch
# status: ready to merge
Patch105: rpm-5.4.5-rpmfc-use-strlen-not-sizeof.patch
# status: same as for other dep gen patches
Patch106: rpm-5.4.5-break-out-of-elf-link-loop.patch
# status: probably okay to merge
Patch107: rpm-5.4.5-rpmfc-apply-python-coloring-from-magic.patch
# status: same as for other dep gen patches
Patch109: rpm-5.4.5-fix-generation-of-uclibc-deps-on-non-lib64.patch
# status: idem
Patch110: rpm-5.4.7-only-generate-devel-deps-for-symlinks-start-with-lib.patch
# status: keep locally
Patch111: rpm-5.4.9-keep-loading-script-macros.patch
# status: ready for merge
Patch112: rpm-5.4.7-use-gnu-hash-style-by-default-and-drop-rtld-dep.patch
# status: keep locally only
Patch113: rpm-5.4.9-add-distepoch-rpmlib-feature.patch
# status: probably okay to merge, but discuss on rpm-devel first
Patch114: rpm-5.4.9-dont-add-versioneddependency-rpmlib-feature-dependency.patch
# status: ready to merge
Patch115: rpm-5.4.7-rpmfc-fix-invalid-free-if-not-_defaultdocdir-set.patch
# status: probably okay to merge
Patch116: rpm-5.4.7-dont-try-generate-rpmfc-dependencies-from-doc-files.patch
# status: ready to merge
Patch117: rpm-5.4.7-only-generate-ruby-and-python-deps-for-executables-and-modules.patch
# status: same as for other dep gen patches
Patch118: rpm-5.4.7-dont-generate-soname-provides-for-dsos-with-no-soname.patch
# status: ready
Patch119: rpm-5.4.7-fix-generation-of-ruby-abi-provides.patch
# status: same as for other dep gen patches
Patch120: rpm-5.4.7-print-name-of-files-removed-dependencies-are-generated-from.patch
# status: idem
Patch121: rpm-5.4.7-always-choose-equal-only-deps-when-overlapping.patch
# status: idem
Patch122: rpm-5.4.7-rpmfc-strdup-EVR-in-overlap-removal.patch
# status: idem
Patch123: rpm-5.4.7-rpmds-dont-try-fopen-empty-filenames.patch
# status: ready
Patch124: rpm-5.4.7-change-to-debuginfo-suffix.patch
# crash reproducable with 'rpm -qa --triggers'
# status: ready
Patch125: rpm-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
# status: probably okay to merge, discuss on rpm-devel first
Patch126: rpm-5.4.9-add-filetriggers-regex-matching-support.patch
# status: idem
Patch127: rpm-5.4.9-add-matches-as-arguments-to-triggers.patch
# status: same as for other dep gen patches
Patch128: rpm-5.4.7-dont-consider-trigger-dependencies-as-overlapping.patch
# status: ready
Patch129: rpm-5.4.7-fix-minor-memleaks.patch
# status: ready
Patch130: rpm-5.4.9-mire-fix-strings-lacking-null-terminator.patch
# status: keep locally for now
Patch131: rpm-5.4.9-dlopen-embedded-interpreters.patch
# status: ready
Patch132: rpm-5.4.9-rpmpython-fix-input.patch
# status: same as for other dep gen patches
Patch133: rpm-5.4.7-generate-devel-provides-outside-of-libdirs.patch
# status: ready
Patch134: rpm-5.4.7-actually-perform-linking-against-internal-lua.patch
# status: ready
Patch135: rpm-5.4.7-no-seqid_init-on-rdonly-database.patch
# status: same as for other dep gen patches
Patch136: rpm-5.4.9-add-support-for-using-rpmdsMerge-with-filepath-tags.patch
# status: probably ready for merging
Patch137: rpm-5.4.9-avoid-double-slash-in-path-for-dirname-filetrigger-matching.patch
# status: unfinished
Patch138: rpm-5.4.7-trigtrans.patch
# status: probably ready to merge, discuss on rpm-devel first
Patch139: rpm-5.4.9-fix-verify-segfault.patch
# status: keep locally
Patch140: rpm-5.4.7-rpmv3-support.patch
# status: ready
Patch143: rpm-5.4.7-mono-find-requires-strip-newlines.patch
# status: ready
Patch144: rpm-5.4.8-URPM-build-fix.patch
# status: undefined
Patch145: rpm-5.4.8-add-armv7l-specific-macros.patch
# status: keep locally, might drop this one later..
Patch146: rpm-5.4.9-support-signatures-and-digest-disablers.patch
#ROSA stuff. Disable internal dependences generator
Patch147: rpm-5.4.9-disable_internal_dependency_generator.patch
BuildRequires: autoconf >= 2.57
BuildRequires: bzip2-devel
BuildRequires: automake >= 1.8
BuildRequires: elfutils-devel
BuildRequires: sed >= 4.0.3
BuildRequires: beecrypt-devel >= 4.2.1-8
BuildRequires: ed
BuildRequires: gettext-devel
BuildRequires: byacc
BuildRequires: pkgconfig(neon)
BuildRequires: rpm-mandriva-setup-build
BuildRequires: readline-devel
BuildRequires: ncurses-devel
BuildRequires: pkgconfig(libssl)
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(liblzma)
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(libpcreposix)
BuildRequires: acl-devel
BuildRequires: magic-devel
BuildRequires: pkgconfig(popt) >= 1.15
BuildRequires: libxml2-devel >= 2.7.8
# we're now building with internal..
#BuildRequires: pkgconfig(lua)
# needed by internal lua
BuildRequires: expat-devel
Patch23: rpm-5.3.12-fix-verify-segfault.patch
Patch24: rpm-5.3.12-cve-2012-0815,0060,0061.patch
2012-05-03 18:54:08 +04:00
Patch25: rpm-5.3.12.vendor.ROSA.patch
2012-05-04 15:13:20 +04:00
#Fix error in rpmbuild in GTK2-based terminals
Patch26: rpm-5.3.8-rpmsq-ignored-signal-return-value.patch
2012-08-01 14:59:23 +04:00
BuildRequires: autoconf >= 2.57
BuildRequires: bzip2-devel
BuildRequires: automake >= 1.8
BuildRequires: elfutils-devel
BuildRequires: sed >= 4.0.3
BuildRequires: beecrypt-devel
BuildRequires: ed
BuildRequires: gettext-devel
BuildRequires: byacc
BuildRequires: pkgconfig(neon)
BuildRequires: rpm-mandriva-setup-build
BuildRequires: readline-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: liblzma-devel
BuildRequires: lua-devel
BuildRequires: pcre-devel
BuildRequires: acl-devel
BuildRequires: magic-devel
BuildRequires: popt-devel >= 1.15
2012-02-01 14:15:49 +04:00
%ifarch %{ix86} x86_64 ppc ppc64 ia64
2012-08-01 14:59:23 +04:00
BuildRequires: pkgconfig(libcpuinfo)
2012-02-01 14:15:49 +04:00
%endif
2012-08-01 14:59:23 +04:00
BuildRequires: syck-devel
BuildRequires: keyutils-devel
BuildRequires: gomp-static-devel
BuildRequires: gomp-devel
BuildRequires: pkgconfig(gnutls)
BuildRequires: gnupg2
2012-02-01 14:15:49 +04:00
# required by parts of test suite...
BuildRequires: wget
# Should we prefer internal xar in stead? internal xar contains at least
# lzma/xz patches, what's the state of these and upstream?
# does internal xar contain any other rpm specific patches as well, or..?
%if %{with xar}
BuildRequires: xar-devel
%endif
2012-08-01 14:59:23 +04:00
BuildRequires: db-devel
2012-02-01 14:15:49 +04:00
# required by test suite
BuildRequires: %{bdb}-utils
%if %{with perl}
BuildRequires: perl-devel
%endif
%if %{with python}
2012-08-01 14:59:23 +04:00
BuildRequires: pkgconfig(python)
2012-02-01 14:15:49 +04:00
%endif
%if %{with js}
2012-08-01 14:59:23 +04:00
BuildRequires: pkgconfig(mozjs185)
2012-02-01 14:15:49 +04:00
%endif
%if %{with ruby}
BuildRequires: ruby-devel
%endif
%if %{with tcl}
2012-08-01 14:59:23 +04:00
BuildRequires: tcl-devel
%endif
%if %{with squirrel}
BuildRequires: squirrel-devel
2012-02-01 14:15:49 +04:00
%endif
%if %{with docs}
2012-08-01 14:59:23 +04:00
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: texlive
2012-02-01 14:15:49 +04:00
%endif
%if %{with sqlite}
2012-08-01 14:59:23 +04:00
BuildRequires: pkgconfig(sqlite3)
2012-02-01 14:15:49 +04:00
%endif
2012-08-01 14:59:23 +04:00
%if %{with ossp_uuid}
BuildRequires: pkgconfig(ossp-uuid)
2012-02-01 14:15:49 +04:00
%endif
%if %{with augeas}
2012-08-01 14:59:23 +04:00
BuildRequires: pkgconfig(augeas)
2012-02-01 14:15:49 +04:00
%endif
2012-08-01 14:59:23 +04:00
BuildRequires: spec-helper >= 0.31.12
BuildRequires: stdc++-static-devel >= 4.7.0
BuildRequires: elfutils >= 0.153
BuildRequires: libtool >= 2.4.2
Requires: cpio
Requires: gawk
Requires: mktemp
Requires: update-alternatives
2012-02-01 14:15:49 +04:00
Requires: %{bdb}_recover
Suggests: %{bdb}-utils
2012-08-01 14:59:23 +04:00
Requires: %{librpmname} = %{EVRD}
2012-02-01 14:15:49 +04:00
Conflicts: rpm-build < 1:5.3.10-0.20110422.3
Requires(pre): coreutils
%rename rpmconstant
%rename multiarch-utils
2012-08-01 14:59:23 +04:00
%rename rpm-manbo-setup
%rename rpm-mandriva-setup
Obsoletes: haskell-macros < 6.4-5
2012-02-01 14:15:49 +04:00
2012-08-01 16:37:53 +04:00
%description -n rpm
2012-02-01 14:15:49 +04:00
RPM is a powerful command line driven package management system capable of
installing, uninstalling, verifying, querying, and updating software packages.
Each software package consists of an archive of files along with information
about the package like its version, a description, etc.
%package -n %{librpmname}
Summary: Libraries used by rpm
Group: System/Libraries
# Forcing upgrades of anything else linked against it as rpmdb is incompatible
# with older versions (#61658, comment #136)
Conflicts: librpm < 5.3
Conflicts: %{_lib}db5.1 < 5.1.25
Conflicts: %{_lib}elfutils1 < 0.152
Conflicts: %{_lib}beecrypt7 < 4.2.1
%description -n %{librpmname}
RPM is a powerful command line driven package management system capable of
installing, uninstalling, verifying, querying, and updating software packages.
This package contains common files to all applications based on rpm.
%package -n %{librpmnamedevel}
Summary: Development files for applications which will manipulate RPM packages
Group: Development/C
Requires: %{librpmname} = %{EVRD}
Provides: rpm-devel = %{EVRD}
%rename %{_lib}rpmconstant-devel
Obsoletes: %{_lib}rpm4.4-devel
%description -n %{librpmnamedevel}
This package contains the RPM C library and header files. These
development files will simplify the process of writing programs
which manipulate RPM packages and databases and are intended to make
it easier to create graphical package managers or any other tools
that need an intimate knowledge of RPM packages in order to function.
This package should be installed if you want to develop programs that
will manipulate RPM packages and databases.
%package -n %{librpmstatic}
Summary: Static libraries for rpm development
Group: Development/C
Requires: %{librpmnamedevel} = %{EVRD}
%description -n %{librpmstatic}
Static libraries for rpm development.
%package build
Summary: Scripts and executable programs used to build packages
Group: System/Configuration/Packaging
Requires: autoconf
Requires: automake
Requires: file
Requires: gcc-c++
2012-08-01 14:59:23 +04:00
Requires: libtool-base >= 2.4.2-3
2012-02-01 14:15:49 +04:00
Requires: patch >= 2.5.9-7
Requires: make
Requires: unzip
2012-08-01 14:59:23 +04:00
Requires: elfutils >= 0.152-4
2012-02-01 14:15:49 +04:00
Requires: rpm = %{EVRD}
2012-08-01 14:59:23 +04:00
Requires: rpm-mandriva-setup-build
Requires: spec-helper >= 0.31.12
Requires: rpmlint-mandriva-policy >= 0.3.2
Requires: python-rpm = %{EVRD}
Requires: perl-RPM = %{EVRD}
Conflicts: rpmlint < 1.4-4
2012-02-01 14:15:49 +04:00
Conflicts: multiarch-utils < 1:5.3.10
2012-08-01 14:59:23 +04:00
Conflicts: rpm < 1:5.4.4-32
Obsoletes: rpm5-manbo-setup
%rename rpm-manbo-setup-build
2012-02-01 14:15:49 +04:00
%description build
This package contains scripts and executable programs that are used to
build packages using RPM.
%if %{with python}
%package -n python-rpm
Summary: Python bindings for apps which will manipulate RPM packages
Group: Development/Python
%description -n python-rpm
The rpm-python package contains a module which permits applications
written in the Python programming language to use the interface
supplied by RPM (RPM Package Manager) libraries.
This package should be installed if you want to develop Python
programs that will manipulate RPM packages and databases.
%endif
%if %{with perl}
%define perlmod RPM
%package -n perl-%{perlmod}
Summary: Perl bindings for RPM
Group: Development/Perl
Obsoletes: perl-RPM4
Requires: perl-IO-String
%description -n perl-%{perlmod}
The RPM Perl module provides an object-oriented interface to querying both
the installed RPM database as well as files on the filesystem.
%endif
2012-08-01 14:59:23 +04:00
%if %{with ruby}
%package -n rpm-rubyembed
Summary: Ruby embedding module for rpm
Group: Development/Ruby
Requires: ruby(abi)
%description -n rpm-rubyembed
This package provides embedded ruby interpreter support for RPM.
%endif
%if %{with tcl}
%package -n rpm-tclembed
Summary: Tcl embedding module for rpm
Group: Development/Other
Requires: tcl
%description -n rpm-tclembed
This package provides embedded Tcl interpreter support for RPM.
%endif
%if %{with squirrel}
%package -n rpm-squirrelembed
Summary: Squirrel embedding module for rpm
Group: Development/Other
Requires: squirrel
%description -n rpm-squirrelembed
This package provides embedded Squirrel interpreter support for RPM.
%endif
2012-02-01 14:15:49 +04:00
%if %{with docs}
%package apidocs
Summary: API documentation for RPM
Group: Books/Computer books
BuildArch: noarch
%description apidocs
This package contains the RPM API documentation generated in HTML format.
%endif
%prep
%setup -q
2012-08-01 14:59:23 +04:00
%patch111 -p1 -b .script_macros~
2012-02-01 14:15:49 +04:00
# These patches has been commited hastily upstream for review,
# keeping them around here for now untill finished...
%if 0
%patch0 -p1 -b .set_lg_dir~
%patch1 -p1 -b .dep_whiteout~
2012-08-01 14:59:23 +04:00
%endif
2012-02-01 14:15:49 +04:00
%patch2 -p1 -b .scriptlet~
%patch3 -p1 -b .doc_conflicts~
2012-08-01 14:59:23 +04:00
%patch11 -p1 -b .ru~
%if 0
2012-02-01 14:15:49 +04:00
%patch4 -p1 -b .distsuffix~
%patch5 -p1 -b .distpatt~
%patch15 -p1 -b .trigger_once~
%endif
2012-08-01 14:59:23 +04:00
%patch29 -p1 -b .specfile~
%patch31 -p1 -b .rpm_qa~
%patch34 -p1 -b .ordering~
%patch37 -p1 -b .drop_deps~
%patch40 -p1 -b .pc_paths~
%patch42 -p1 -b .glob~
%patch46 -p1 -b .repackage~
%patch47 -p1 -b .overlap~
%patch48 -p1 -b .suggests~
%patch55 -p1 -b .strip_reloc_debug~
%patch61 -p1 -b .epoch_cmp~
%patch63 -p1 -b .buildroot_dups~
%patch64 -p1 -b .dups_terminate~
%patch65 -p1 -b .subdir_terminate~
%patch66 -p1 -b .withoutclean~
%patch67 -p1 -b .strip_silent~
%patch68 -p1 -b .rpmgio_ufdio~
%patch69 -p1 -b .oneshot~
%patch70 -p1 -b .drop_basedeps~
%patch71 -p1 -b .locale~
%patch72 -p1 -b .debug_macro~
%patch73 -p1 -b .pkgcheck~
%patch74 -p1 -b .builddir~
%patch75 -p1 -b .srcdefattr~
%patch76 -p1 -b .twice_terminate~
%patch77 -p1 -b .db52~
%patch78 -p1 -b .ruby19~
%patch79 -p1 -b .range_nooverlap~
#patch81 -p1 -b .libsql~
%patch83 -p1 -b .kmod_xz~
%patch85 -p1 -b .int_gen_overlap~
%patch86 -p1 -b .mono_deps_new~
%patch87 -p1 -b .php_dep_gen~
%patch88 -p1 -b .16004~
%patch89 -p1 -b .16005~
%patch90 -p1 -b .16022~
%patch91 -p1 -b .fc_deps~
%patch92 -p1 -b .rpmfc_ruby~
%patch93 -p1 -b .rb_newline~
%patch94 -p1 -b .haskell~
%patch95 -p1 -b .interpret_deps~
%patch96 -p1 -b .uclibc~
%patch97 -p1 -b .env_color~
%patch98 -p1 -b .fc_overlap~
%patch99 -p1 -b .py_macros~
%patch100 -p1 -b .script_overlap~
%patch101 -p1 -b .font~
%patch102 -p1 -b .kmod~
%patch103 -p1 -b .desktop~
%patch104 -p1 -b .skip_chrdev~
%patch105 -p1 -b .sizeof~
%patch106 -p1 -b .link_loop~
%patch107 -p1 -b .python_color~
%patch109 -p1 -b .uclibc_nolib64~
%patch110 -p1 -b .req_devel~
%patch112 -p1 -b .gnu_hash~
%patch113 -p1 -b .depoch_rpmlib~
%patch114 -p1 -b .no_verdepfeat~
%patch115 -p1 -b .free~
%patch116 -p1 -b .skip_doc~
%patch117 -p1 -b .exec_modules~
#patch118 -p1 -b .soname_only~
%patch119 -p1 -b .rubyabi_prov~
%patch120 -p1 -b .filedep_origins~
%patch121 -p1 -b .equal_overlaps~
%patch122 -p1 -b .strdup~
%patch123 -p1 -b .ds_fopen~
%patch124 -p1 -b .debuginfo~
%patch125 -p1 -b .unitialized~
%patch126 -p1 -b .trig_pcre~
%patch127 -p1 -b .trigger_args~
%patch128 -p1 -b .triggers_nooverlap~
%patch129 -p1 -b .memleak~
%patch130 -p1 -b .str_nul~
%patch131 -p1 -b .dlopen~
%patch132 -p1 -b .py_input~
%patch133 -p1 -b .devel_prov~
#patch134 -p1 -b .lua~
%patch135 -p1 -b .db_rdonly~
%patch136 -p1 -b .ds_merge~
%patch137 -p1 -b .slash~
#patch138 -p1 -b .trigtrans~
%patch139 -p1 -b .fix_verify~
%patch140 -p1 -b .rpmv3~
%patch143 -p1 -b .mono_newline~
%patch144 -p1 -b .urpm~
%patch146 -p1 -b .nosig~
%patch147 -p1 -b .disable_int_gen_dep
#required by P55, P80, P81, P94..
./autogen.sh
#patch19 -p1 -b .doxygen~
#patch20 -p1 -b .syslog~
2012-02-01 14:15:49 +04:00
%patch21 -p1 -b .loop_warnings~
%patch22 -p1 -b .55810~
%patch23 -p1 -b .verify-segfault~
%patch24 -p1 -b .cve-2012~
2012-05-04 01:03:10 +04:00
%patch25 -p1
2012-02-01 14:15:49 +04:00
mkdir -p cpu-os-macros
tar -zxf %{SOURCE3} -C cpu-os-macros
2012-08-01 14:59:23 +04:00
%patch145 -p1
2012-02-01 14:15:49 +04:00
%build
%configure2_5x --enable-nls \
--with-pic \
%if %{with debug}
--enable-debug \
--with-valgrind \
%endif
--enable-posixmutexes \
%if %{with python}
--with-python=%{python_version} \
%if %{with embed}
--with-pythonembed=external \
%endif
%else
--without-python \
%endif
%if %{with perl}
--with-perl=vendor \
%if %{with embed}
--with-perlembed=external \
%endif
%else
--without-perl \
%endif
%if %{with js}
--with-mozjs185=external \
%else
--without-mozjs185 \
%endif
%if %{with ruby}
--with-ruby=external \
%if %{with embed}
--with-rubyembed=external \
%endif
%endif
%if %{with tcl}
--with-tcl=external \
2012-08-01 14:59:23 +04:00
%endif
%if %{with squirrel}
--with-squirrel=external \
2012-02-01 14:15:49 +04:00
%endif
--with-glob \
--without-selinux \
%if %{with docs}
--with-apidocs \
%endif
--with-libelf \
--with-popt=external \
--with-xz=external \
--with-bzip2=external \
2012-08-01 14:59:23 +04:00
--with-lua=internal \
--with-expat=external \
2012-02-01 14:15:49 +04:00
--with-pcre=external \
%ifarch %{ix86} x86_64 ppc ppc64 ia64
--with-cpuinfo=external \
%else
--without-cpuinfo \
%endif
--with-syck=external \
--with-file=external \
--with-path-magic=%{_datadir}/misc/magic.mgc \
--with-beecrypt=external \
--with-usecrypto=beecrypt \
--with-keyutils=external \
--with-neon=external \
--with-acl \
--enable-openmp \
%if %{with xar}
--with-xar=%{_includedir}/xar \
%endif
--with-db \
2012-08-01 14:59:23 +04:00
--with-dbsql=external \
2012-02-01 14:15:49 +04:00
--without-db-tools-integrated \
%if %{with sqlite}
--with-sqlite=external \
%else
--without-sqlite \
%endif
2012-08-01 14:59:23 +04:00
%if %{with ossp_uuid}
%if 0
# TODO: needs to be fixed properly for automatic detection in internal lua build
%endif
--with-uuid=%{_libdir}:%{_includedir}/ossp-uuid \
2012-02-01 14:15:49 +04:00
%else
--without-uuid \
%endif
%if %{with augeas}
--with-augeas=external \
%else
--without-augeas \
%endif
%if 0
--with-extra-path-macros=%{_usrlibrpm}/macros.d/mandriva \
%else
--with-extra-path-macros=%{_usrlibrpm}/platform/%%{_target}/macros:%{_sysconfdir}/rpm/macros.d/*.macros:%{_usrlibrpm}/macros.d/mandriva \
%endif
--with-vendor=mandriva \
--enable-build-warnings
# XXX: Making ie. a --with-pre-macros option might be more aestethic and easier
# of use to others if pushed back upstream?
# For our case, this is only used to define _prefer_target_cpu before any other
# macros so that rpm knows about this for libcpuinfo when loading macros, but
# could perhaps be useful to others, ie. for defining a _target_vendor earlier,
# so that vendor specific macros to load could be defined at runtime rather
# than compile time.. Sounds convenient if LSB certification is done on a specific
# set of binaries (does it..?) wrt. Manbo Labs.
echo '#define PREMACROFILES "%{_sysconfdir}/rpm/premacros.d/*.macros"' >> config.h
%make
%if %{with docs}
%make apidocs
%endif
%check
#make check
2012-02-01 14:15:49 +04:00
%install
%makeinstall_std
# XXX: why isn't this installed by 'make install'?
install -m755 scripts/symclash.* %{buildroot}%{_rpmhome}
# Save list of packages through cron
install -m755 scripts/rpm.daily -D %{buildroot}%{_sysconfdir}/cron.daily/rpm
install -m644 scripts/rpm.log -D %{buildroot}%{_sysconfdir}/logrotate.d/rpm
mkdir -p %{buildroot}/var/spool/repackage
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/{{pre,}macros.d,sysinfo}
# actual usefulness of this seems rather dubious with macros.d now...
cat > %{buildroot}%{_sysconfdir}/%{name}/macros <<EOF
# Put your own system macros here
# usually contains
# Set this one according your locales
# %%_install_langs
EOF
2012-08-01 14:59:23 +04:00
# FIXME: weird issue, seems to have issue with lines starting with '%%_'...
2012-02-01 14:15:49 +04:00
cat > %{buildroot}%{_sysconfdir}/%{name}/premacros.d/cpuinfo_target.macros <<EOF
# This sets which of the available architectures to prefer when building
# packages with libcpuinfo support enabled.
2012-08-01 14:59:23 +04:00
%%_prefer_target_cpu x86_64 i586
2012-02-01 14:15:49 +04:00
EOF
# Get rid of unpackaged files
# XXX: is there any of these we might want to keep?
2012-08-01 14:59:23 +04:00
for f in %{py_platsitedir}/poptmodule.a %{py_platsitedir}/rpmmodule.a \
%{py_platsitedir}/rpm/*.a %{_rpmhome}/*.a %{_rpmhome}/lib/*.a\
2012-02-01 14:15:49 +04:00
%{_rpmhome}/{Specfile.pm,cpanflute2,cpanflute,sql.prov,sql.req,tcl.req} \
%{_rpmhome}/{config.site,cross-build,rpmdiff.cgi} \
%{_rpmhome}/trpm %{_bindir}/rpmdiff; do
rm -f %{buildroot}$f
done
%find_lang %{name}
mkdir -p %{buildroot}/var/lib/rpm/{log,tmp}
2012-08-01 14:59:23 +04:00
for dbi in `./rpm --macros macros/macros --eval %_dbi_tags_4|tr : ' '` __db.00{0..9}; do
2012-02-01 14:15:49 +04:00
touch %{buildroot}/var/lib/rpm/$dbi
2012-08-01 14:59:23 +04:00
echo "%attr(0644, root, root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %{_localstatedir}/lib/rpm/$dbi" >> %{name}.lang
2012-02-01 14:15:49 +04:00
done
install -d %{buildroot}/bin
# FIXME: considering that most libraries dynamically linked against is located
# in /usr/lib*, this doesn't make much sense unless we either statically link
# against them (Ark Linux actually does this) or move the libraries to /lib*,
# neither being very attractive options, not to mention maintenance headaches
# spread across these library packages...
# So moving rpm back to /usr/bin probably makes the most sense...
# An optional, "minimal" rpm-static package with /bin/rpm could perhaps be done
# if anyone expresses actual interest in this...
mv %{buildroot}%{_bindir}/rpm %{buildroot}/bin/rpm
cp -r cpu-os-macros %{buildroot}%{_usrlibrpm}/platform
install -m644 %{SOURCE4} -D %{buildroot}%{_sysconfdir}/%{name}/macros.d/legacy_compat.macros
%if %{with docs}
install -d %{buildroot}%{_docdir}/rpm
cp -r apidocs/html %{buildroot}%{_docdir}/rpm
%endif
2012-08-01 14:59:23 +04:00
install -d %{buildroot}%{multiarch_bindir}
install -d %{buildroot}%{multiarch_includedir}
%if "%{_lib}" == "lib64"
install -d %{buildroot}%(linux32 rpm -E %%{multiarch_bindir})
install -d %{buildroot}%(linux32 rpm -E %%{multiarch_includedir})
%endif
2012-02-01 14:15:49 +04:00
# TODO: review which files goes into what packages...?
%files -f %{name}.lang
2012-08-01 14:59:23 +04:00
%doc CHANGES doc/manual/[a-z]*
2012-02-01 14:15:49 +04:00
%if %{with docs}
%exclude %{_docdir}/rpm/html
%endif
/bin/rpm
%{_bindir}/multiarch-dispatch
%{_bindir}/rpmconstant*
%{_bindir}/rpm2cpio*
%{_rpmhome}/bin/augtool
2012-08-01 14:59:23 +04:00
%{_rpmhome}/bin/chroot
%{_rpmhome}/bin/cp
2012-02-01 14:15:49 +04:00
%{_rpmhome}/bin/dbconvert
2012-08-01 14:59:23 +04:00
%{_rpmhome}/bin/find
#%%{_rpmhome}/bin/grep
#%%{_rpmhome}/bin/lua
2012-02-01 14:15:49 +04:00
%{_rpmhome}/bin/mtree
2012-08-01 14:59:23 +04:00
%{_rpmhome}/bin/mgo
#%%{_rpmhome}/bin/rc
2012-02-01 14:15:49 +04:00
%{_rpmhome}/bin/rpmspecdump
2012-08-01 14:59:23 +04:00
%{_rpmhome}/bin/wget
%if %{with xar}
%{_rpmhome}/bin/txar
%endif
2012-02-01 14:15:49 +04:00
%{_rpmhome}/dbconvert.sh
%{_rpmhome}/rpm.*
%{_rpmhome}/rpm2cpio
%{_rpmhome}/rpmdb_loadcvt
%{_rpmhome}/tgpg
%dir %{_localstatedir}/lib/rpm
%dir %{_localstatedir}/lib/rpm/log
%dir %{_localstatedir}/lib/rpm/tmp
%{_rpmhome}/macros.d/*
%{_rpmhome}/cpuinfo.yaml
%{_rpmhome}/macros
%{_rpmhome}/rpmpopt
%{_rpmhome}/platform/*/macros
%config(noreplace) %{_localstatedir}/lib/rpm/DB_CONFIG
%dir %{_localstatedir}/spool/repackage
%dir %{_rpmhome}
%dir %{_rpmhome}/bin
%dir %{_rpmhome}/platform/
%dir %{_rpmhome}/platform/*/
%dir %{_rpmhome}/macros.d
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/macros
%dir %{_sysconfdir}/%{name}/macros.d
%dir %{_sysconfdir}/%{name}/premacros.d
%dir %{_sysconfdir}/%{name}/sysinfo
%{_sysconfdir}/%{name}/macros.d/*.macros
%{_sysconfdir}/%{name}/premacros.d/*.macros
%{_mandir}/man[18]/*.[18]*
%lang(pl) %{_mandir}/pl/man[18]/*.[18]*
%lang(ru) %{_mandir}/ru/man[18]/*.[18]*
%lang(ja) %{_mandir}/ja/man[18]/*.[18]*
%lang(sk) %{_mandir}/sk/man[18]/*.[18]*
%lang(fr) %{_mandir}/fr/man[18]/*.[18]*
%lang(ko) %{_mandir}/ko/man[18]/*.[18]*
%exclude %{_mandir}/man8/rpmbuild.8*
%exclude %{_mandir}/man8/rpmdeps.8*
2012-08-01 14:59:23 +04:00
%{_sysconfdir}/cron.daily/rpm
%config(noreplace,missingok) %{_sysconfdir}/logrotate.d/rpm
%dir %{multiarch_bindir}
%dir %{multiarch_includedir}
%if "%{_lib}" == "lib64"
%dir %(linux32 rpm -E %%{multiarch_bindir})
%dir %(linux32 rpm -E %%{multiarch_includedir})
%endif
2012-02-01 14:15:49 +04:00
%{_includedir}/multiarch-dispatch.h
%files build
%{_bindir}/gendiff
%{_bindir}/rpmbuild
%{_bindir}/multiarch-platform
2012-08-01 14:59:23 +04:00
#%%{_rpmhome}/bin/abi-compliance-checker.pl
2012-02-01 14:15:49 +04:00
%{_rpmhome}/bin/api-sanity-autotest.pl
2012-08-01 14:59:23 +04:00
%{_rpmhome}/bin/api-sanity-checker.pl
2012-02-01 14:15:49 +04:00
%{_rpmhome}/bin/dbsql
%{_rpmhome}/bin/debugedit
%{_rpmhome}/bin/install-sh
2012-08-01 14:59:23 +04:00
%{_rpmhome}/bin/lua
%{_rpmhome}/bin/luac
2012-02-01 14:15:49 +04:00
%{_rpmhome}/bin/mkinstalldirs
2012-08-01 14:59:23 +04:00
%{_rpmhome}/bin/pom2spec
2012-02-01 14:15:49 +04:00
%{_rpmhome}/bin/rpmcache
%{_rpmhome}/bin/rpmcmp
%{_rpmhome}/bin/rpmdeps
%{_rpmhome}/bin/rpmdigest
%{_rpmhome}/bin/rpmkey
2012-08-01 14:59:23 +04:00
%{_rpmhome}/bin/rpmlua
%{_rpmhome}/bin/rpmluac
2012-02-01 14:15:49 +04:00
%{_rpmhome}/bin/rpmrepo
%{_rpmhome}/bin/sqlite3
%dir %{_rpmhome}/helpers
%{_rpmhome}/helpers/*
%dir %{_rpmhome}/qf
%{_rpmhome}/qf/*
%{_rpmhome}/vcheck
%{_rpmhome}/brp-*
%{_rpmhome}/check-files
%{_rpmhome}/check-multiarch-files
#%%{_rpmhome}/cross-build
%{_rpmhome}/find-debuginfo.sh
%{_rpmhome}/find-lang.sh
%{_rpmhome}/find-prov.pl
%{_rpmhome}/find-provides.perl
%{_rpmhome}/find-req.pl
%{_rpmhome}/find-requires.perl
2012-08-01 14:59:23 +04:00
%{_rpmhome}/fontconfig.prov
2012-02-01 14:15:49 +04:00
%{_rpmhome}/gem_helper.rb
%{_rpmhome}/getpo.sh
%{_rpmhome}/gstreamer.sh
2012-08-01 14:59:23 +04:00
%{_rpmhome}/haskelldeps.sh
2012-02-01 14:15:49 +04:00
%{_rpmhome}/http.req
%{_rpmhome}/javadeps.sh
%{_rpmhome}/kmod-deps.sh
%{_rpmhome}/mkmultiarch
%{_rpmhome}/mono-find-provides
%{_rpmhome}/mono-find-requires
%{_rpmhome}/executabledeps.sh
%{_rpmhome}/libtooldeps.sh
%{_rpmhome}/osgideps.pl
%{_rpmhome}/perldeps.pl
%{_rpmhome}/perl.prov
%{_rpmhome}/perl.req
%{_rpmhome}/php.prov
%{_rpmhome}/php.req
%{_rpmhome}/pkgconfigdeps.sh
%{_rpmhome}/pythondeps.sh
%{_rpmhome}/pythoneggs.py
%{_rpmhome}/rubygems.rb
%{_rpmhome}/symclash.*
%{_rpmhome}/u_pkg.sh
%{_rpmhome}/vpkg-provides.sh
%{_rpmhome}/vpkg-provides2.sh
%if %{with js}
%{_rpmhome}/bin/tjs
%endif
2012-08-01 14:59:23 +04:00
%{_rpmhome}/macros.rpmbuild
2012-02-01 14:15:49 +04:00
%{_mandir}/man8/rpmbuild.8*
%{_mandir}/man8/rpmdeps.8*
%files -n %{librpmname}
%{_libdir}/librpm-%{libver}.so
%{_libdir}/librpmconstant-%{libver}.so
%{_libdir}/librpmdb-%{libver}.so
%{_libdir}/librpmio-%{libver}.so
%{_libdir}/librpmmisc-%{libver}.so
%{_libdir}/librpmbuild-%{libver}.so
%if %{with js}
%{_rpmhome}/lib/librpmjsm.so.*
%{_rpmhome}/lib/rpmjsm.so
%endif
2012-08-01 14:59:23 +04:00
#%%if %%{with sqlite}
#%%{_rpmhome}/libsql*.so.*
#%%endif
%{_rpmhome}/lib/liblua.la
2012-02-01 14:15:49 +04:00
%files -n %{librpmnamedevel}
2012-08-01 14:59:23 +04:00
#%%doc apidocs/html
2012-02-01 14:15:49 +04:00
%{_includedir}/rpm
%{_libdir}/librpm.so
2012-08-01 14:59:23 +04:00
%{_libdir}/librpm.la
2012-02-01 14:15:49 +04:00
%{_libdir}/librpmconstant.la
%{_libdir}/librpmconstant.so
%{_libdir}/librpmdb.so
2012-08-01 14:59:23 +04:00
%{_libdir}/librpmdb.la
2012-02-01 14:15:49 +04:00
%{_libdir}/librpmio.so
2012-08-01 14:59:23 +04:00
%{_libdir}/librpmio.la
2012-02-01 14:15:49 +04:00
%{_libdir}/librpmmisc.so
2012-08-01 14:59:23 +04:00
%{_libdir}/librpmmisc.la
2012-02-01 14:15:49 +04:00
%{_libdir}/librpmbuild.so
2012-08-01 14:59:23 +04:00
%{_libdir}/librpmbuild.la
2012-02-01 14:15:49 +04:00
%{_libdir}/pkgconfig/rpm.pc
%if %{with js}
%{_rpmhome}/lib/librpmjsm.so
2012-08-01 14:59:23 +04:00
%{_rpmhome}/lib/librpmjsm.la
2012-02-01 14:15:49 +04:00
%endif
2012-08-01 14:59:23 +04:00
#%%if %%{with sqlite}
#%%{_rpmhome}/libsql*.so
#%%endif
2012-02-01 14:15:49 +04:00
%files -n %{librpmstatic}
%{_libdir}/librpm.a
%{_libdir}/librpmconstant.a
%{_libdir}/librpmdb.a
%{_libdir}/librpmio.a
%{_libdir}/librpmmisc.a
%{_libdir}/librpmbuild.a
%if %{with perl}
%files -n perl-%{perlmod}
2012-08-01 14:59:23 +04:00
#%%doc perl/Changes
%if %{with embed}
%{_rpmhome}/lib/rpmperl.so
%{_rpmhome}/lib/rpmperl.la
%endif
2012-02-01 14:15:49 +04:00
%{_mandir}/man3/RPM*
%{perl_vendorarch}/%{perlmod}.pm
%dir %{perl_vendorarch}/%{perlmod}
%{perl_vendorarch}/%{perlmod}/*.pm
%{perl_vendorarch}/auto/%{perlmod}
%endif
%if %{with python}
%files -n python-rpm
2012-08-01 14:59:23 +04:00
%if %{with embed}
%{_rpmhome}/lib/rpmpython.so
%{_rpmhome}/lib/rpmpython.la
%endif
2012-02-01 14:15:49 +04:00
%dir %{py_platsitedir}/rpm
%{py_platsitedir}/rpm/*.py
%{py_platsitedir}/rpm/*.so
2012-08-01 14:59:23 +04:00
%{py_platsitedir}/rpm/_rpmmodule.la
%endif
%if %{with ruby}
%files -n rpm-rubyembed
%{_rpmhome}/bin/trb
%{_rpmhome}/lib/rpm.so
%{_rpmhome}/lib/rpmruby.so
%endif
%if %{with tcl}
%files -n rpm-tclembed
%{_rpmhome}/lib/rpmtcl.so
%{_rpmhome}/lib/rpmtcl.la
%endif
%if %{with squirrel}
%files -n rpm-squirrelembed
%{_rpmhome}/lib/rpmsquirrel.so
%{_rpmhome}/lib/rpmsquirrel.la
2012-02-01 14:15:49 +04:00
%endif
%if %{with docs}
%files apidocs
%dir %{_docdir}/rpm/html
%{_docdir}/rpm/html/*
%endif
%changelog
2012-08-01 14:59:23 +04:00
* Wed Jun 13 2012 Alexader Kazancev 1:5.4.9-2
- initial import for ROSA 2012.1