55dba468 |
Summary: Package manager |
71e15024 |
Name: rpm |
55dba468 |
Version: 4.11.2 |
fdba7f85 |
Release: 19%{?dist} |
55dba468 |
License: GPLv2+
URL: http://rpm.org
Group: Applications/System
Vendor: VMware, Inc.
Distribution: Photon
Source0: http://rpm.org/releases/rpm-4.11.x/%{name}-%{version}.tar.bz2 |
71e15024 |
%define sha1 rpm-4.11.2=ceef44bd180d48d4004c437bc31a3ea038f54e3e |
55dba468 |
Source1: http://download.oracle.com/berkeley-db/db-5.3.28.tar.gz |
71e15024 |
%define sha1 db=fa3f8a41ad5101f43d08bc0efb6241c9b6fc1ae9 |
ef8c3db3 |
Source2: macros
Source3: brp-strip-debug-symbols
Source4: brp-strip-unneeded |
71e15024 |
Patch0: find-debuginfo-do-not-generate-non-existing-build-id.patch
Patch1: rpm-4.11.2-cve-2014-8118.patch |
55dba468 |
Requires: bash |
fb300e7c |
Requires: rpm-libs = %{version}-%{release} |
55dba468 |
BuildRequires: python2
BuildRequires: python2-libs
BuildRequires: python2-devel
BuildRequires: popt-devel
BuildRequires: nss-devel
BuildRequires: elfutils-devel
BuildRequires: libcap-devel |
fdba7f85 |
BuildRequires: xz-devel |
f4d17450 |
%description
RPM package manager
%package devel
Requires: python2
Summary: Libraries and header files for rpm |
9126f601 |
Provides: pkgconfig(rpm) |
fb300e7c |
Requires: %{name} = %{version}-%{release} |
f4d17450 |
%description devel
Static libraries and header files for the support library for rpm
|
fb300e7c |
%package libs
Summary: Libraries for rpm
Requires: nss
Requires: popt
Requires: libgcc
Requires: libcap |
19467f09 |
Requires: zlib
Requires: bzip2
Requires: elfutils-libelf |
fdba7f85 |
Requires: xz |
fb300e7c |
%description libs
Shared libraries librpm and librpmio
|
04a6f557 |
%package build |
71e15024 |
Requires: perl
Requires: %{name}-devel = %{version}-%{release}
Requires: elfutils-libelf |
04a6f557 |
Summary: Binaries, scripts and libraries needed to build rpms.
%description build
Binaries, libraries and scripts to build rpms.
|
71e15024 |
%package lang
Summary: Additional language files for rpm
Group: Applications/System
Requires: %{name} = %{version}-%{release}
%description lang
These are the additional language files of rpm.
|
f4d17450 |
%prep
%setup -q |
ef8c3db3 |
%patch0 -p1 |
ccc7925f |
%patch1 -p1 |
f4d17450 |
%setup -q -T -D -a 1
mv db-5.3.28 db
%build
./autogen.sh --noconfigure
./configure \ |
55dba468 |
CPPFLAGS='-I/usr/include/nspr -I/usr/include/nss -DLUA_COMPAT_APIINTCASTS' \ |
f4d17450 |
--program-prefix= \
--prefix=%{_prefix} \
--exec-prefix=%{_prefix} \
--bindir=%{_bindir} \
--sbindir=%{_sbindir} \
--sysconfdir=%{_sysconfdir} \
--datadir=%{_datadir} \
--includedir=%{_includedir} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--localstatedir=%{_var} \
--sharedstatedir=%{_sharedstatedir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--disable-dependency-tracking \ |
55dba468 |
--disable-static \ |
f4d17450 |
--enable-python \ |
55dba468 |
--with-cap \ |
a078357f |
--without-lua \ |
55dba468 |
--disable-silent-rules |
f4d17450 |
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
find %{buildroot} -name '*.la' -delete
%find_lang %{name} |
55dba468 |
# System macros and prefix |
f4d17450 |
install -dm 755 %{buildroot}%{_sysconfdir}/rpm |
ef8c3db3 |
install -vm644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/
install -vm755 %{SOURCE3} %{buildroot}%{_libdir}/rpm/
install -vm755 %{SOURCE4} %{buildroot}%{_libdir}/rpm/ |
d100feaf |
%check
make %{?_smp_mflags} check
|
fb300e7c |
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig |
f4d17450 |
%clean
rm -rf %{buildroot} |
71e15024 |
%files |
f4d17450 |
%defattr(-,root,root)
/bin/rpm |
04a6f557 |
%{_bindir}/gendiff
%{_bindir}/rpm2cpio
%{_bindir}/rpmdb
%{_bindir}/rpmgraph
%{_bindir}/rpmkeys
%{_bindir}/rpmquery
%{_bindir}/rpmverify
|
988f4885 |
%{_libdir}/rpm/rpmpopt-*
%{_libdir}/rpm/rpmdb_* |
04a6f557 |
%{_libdir}/rpm/rpm.daily
%{_libdir}/rpm/rpm.log
%{_libdir}/rpm/rpm.supp
%{_libdir}/rpm/rpm2cpio.sh
%{_libdir}/rpm/tgpg |
988f4885 |
%{_libdir}/rpm/platform |
f4d17450 |
%{_libdir}/rpm-plugins/* |
04a6f557 |
%{_mandir}/man8/rpm.8.gz
%{_mandir}/man8/rpm2cpio.8.gz
%{_mandir}/man8/rpmdb.8.gz
%{_mandir}/man8/rpmgraph.8.gz
%{_mandir}/man8/rpmkeys.8.gz
%exclude %{_mandir}/fr/man8/*.gz
%exclude %{_mandir}/ja/man8/*.gz
%exclude %{_mandir}/ko/man8/*.gz
%exclude %{_mandir}/pl/man1/*.gz
%exclude %{_mandir}/pl/man8/*.gz
%exclude %{_mandir}/ru/man8/*.gz
%exclude %{_mandir}/sk/man8/*.gz
|
fb300e7c |
%files libs
%defattr(-,root,root) |
19467f09 |
%{_sysconfdir}/rpm/macros |
fb300e7c |
%{_libdir}/librpmio.so.*
%{_libdir}/librpm.so.* |
19467f09 |
%{_libdir}/rpm/macros
%{_libdir}/rpm/rpmrc
%{_libdir}/rpm/platform/* |
fb300e7c |
|
04a6f557 |
%files build
%{_bindir}/rpmbuild
%{_bindir}/rpmsign
%{_bindir}/rpmspec |
fb300e7c |
%{_libdir}/librpmbuild.so
%{_libdir}/librpmbuild.so.* |
04a6f557 |
%{_libdir}/rpm/osgideps.pl
%{_libdir}/rpm/perldeps.pl
%{_libdir}/rpm/macros.perl
%{_libdir}/rpm/perl.prov
%{_libdir}/rpm/perl.req
%{_libdir}/rpm/perldeps.pl
%{_libdir}/rpm/find-debuginfo.sh
%{_libdir}/rpm/find-lang.sh
%{_libdir}/rpm/find-provides
%{_libdir}/rpm/find-requires
%{_libdir}/rpm/brp-*
%{_libdir}/rpm/mono-find-provides
%{_libdir}/rpm/mono-find-requires
%{_libdir}/rpm/ocaml-find-provides.sh
%{_libdir}/rpm/ocaml-find-requires.sh
%{_libdir}/rpm/macros.perl
%{_libdir}/rpm/macros.php
%{_libdir}/rpm/macros.python
%{_libdir}/rpm/fileattrs/* |
05aa13e7 |
%{_libdir}/rpm/script.req
%{_libdir}/rpm/tcl.req |
988f4885 |
%{_libdir}/rpm/check-buildroot
%{_libdir}/rpm/check-files
%{_libdir}/rpm/check-prereqs
%{_libdir}/rpm/check-rpaths
%{_libdir}/rpm/check-rpaths-worker
%{_libdir}/rpm/config.guess
%{_libdir}/rpm/config.sub
%{_libdir}/rpm/debugedit
%{_libdir}/rpm/desktop-file.prov
%{_libdir}/rpm/elfdeps
%{_libdir}/rpm/fontconfig.prov
%{_libdir}/rpm/libtooldeps.sh
%{_libdir}/rpm/mkinstalldirs
%{_libdir}/rpm/pkgconfigdeps.sh
%{_libdir}/rpm/pythondeps.sh
%{_libdir}/rpm/rpmdeps |
04a6f557 |
%{_mandir}/man1/gendiff.1*
%{_mandir}/man8/rpmbuild.8*
%{_mandir}/man8/rpmdeps.8*
%{_mandir}/man8/rpmspec.8*
%{_mandir}/man8/rpmsign.8.gz |
f4d17450 |
%files devel
%defattr(-,root,root)
%{_libdir}/python*
%{_includedir}/*
%{_libdir}/pkgconfig/rpm.pc
%{_libdir}/librpmio.so
%{_libdir}/librpm.so |
05aa13e7 |
%{_libdir}/librpmsign.so
%{_libdir}/librpmsign.so.* |
f4d17450 |
|
71e15024 |
%files lang -f %{name}.lang
%defattr(-,root,root)
|
f4d17450 |
%changelog |
fdba7f85 |
* Mon Jan 10 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-19
- added buildrequires for xz-devel for PayloadIsLzma cap |
988f4885 |
* Thu Dec 15 2016 Xiaolin Li <xiaolinl@vmware.com> 4.11.2-18
- Moved some files from rpm to rpm-build. |
71e15024 |
* Tue Dec 06 2016 Xiaolin Li <xiaolinl@vmware.com> 4.11.2-17
- Added -lang subpackage. |
19467f09 |
* Wed Nov 23 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-16
- Move rpmrc and macros into -libs subpackage
- Move zlib and elfutils-libelf dependency from rpm to rpm-libs
- Add bzip2 dependency to rpm-libs |
fb300e7c |
* Thu Nov 17 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-15
- Added -libs subpackage |
a078357f |
* Tue Nov 15 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-14
- Disable lua support |
ccc7925f |
* Tue Oct 18 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-13
- Apply patch for CVE-2014-8118 |
d100feaf |
* Wed Oct 05 2016 ChangLee <changlee@vmware.com> 4.11.2-12
- Modified %check |
ef8c3db3 |
* Fri Aug 26 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-11
- find-debuginfo...patch: exclude non existing .build-id from packaging
- Move all files from rpm-system-configuring-scripts tarball to here |
1b60191b |
* Wed May 25 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-10
- Exclude .build-id/.1 and .build-id/.1.debug from debuginfo pkg |
ef8c3db3 |
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-9
- GA - Bump release of all rpms |
51981387 |
* Thu May 05 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-8
- Update rpm version in lock-step with lua update to 5.3.2 |
55dba468 |
* Fri Apr 08 2016 Mahmoud Bassiouny <mbassiouny@vmware.com> 4.11.2-7
- Build rpm with capabilities.
* Thu Aug 05 2015 Sharath George <sharathg@vmware.com> 4.11.2-6
- Moving build utils to a different package.
* Sat Jun 27 2015 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-5
- Update rpm-system-configuring-scripts. Use tar --no-same-owner for rpmbuild.
* Thu Jun 18 2015 Anish Swaminathan <anishs@vmware.com> 4.11.2-4
- Add pkgconfig Provides directive
* Thu Jun 18 2015 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-3
- Do no strip debug info from .debug files
* Wed Jun 3 2015 Divya Thaluru <dthaluru@vmware.com> 4.11.2-2
- Removing perl-module-scandeps package from run time required packages
* Tue Jan 13 2015 Divya Thaluru <dthaluru@vmware.com> 4.11.2-1
- Initial build. First version |