Search
SailfishOS Open Build Service
>
Projects
>
home:plfiorini
:
maui:devel
:
x86_64
>
rpm
> _service:tar_git:rpm.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:rpm.spec of Package rpm
# run internal testsuite? %bcond_without check Summary: The RPM package management system Name: rpm Version: 4.9.1.2 Release: 18 Source0: http://rpm.org/releases/rpm-4.9.x/rpm-%{version}.tar.bz2 Source1: libsymlink.attr Patch1: 0001-rpm-4.5.90-pkgconfig-path.patch Patch2: 0002-rpm-4.8.0-tilde.patch Patch3: 0003-rpm-macros.patch Patch4: 0004-rpm-4.9.0-meego-arm.patch Patch5: 0005-debuginfo.diff.patch Patch6: 0006-rpm-shorten-changelog.patch Patch7: 0007-rpm-4.7.1-mips64el.patch Patch8: 0008-rpm-4.9.1.2-skipprep.patch Patch9: 0009-Correct-arm-install.patch Patch10: 0010-rpm-disable-multilib.patch Patch11: 0011-Possibility-to-do-cross-platform-rpmrcs-with-ease.patch Patch12: 0012-openSUSE-finddebuginfo-patch.patch Patch13: 0013-Add-debugsource-package-to-rpm-straight-don-t-strip.patch Patch14: 0014-OpenSUSE-finddebuginfo-absolute-links.patch Patch15: 0015-OpenSUSE-autodeps.patch Patch16: 0016-OpenSUSE-buildidprov.patch Patch17: 0017-OpenSUSE-debugsubpkg.patch Patch18: 0018-OpenSUSE-fileattrs.patch Patch19: 0019-OpenSUSE-elfdeps.patch Patch20: 0020-Add-noclean-and-nocheck-options-to-rpmbuild.patch Patch21: 0021-Add-do-phase-args-and-noprep-arg-for-control-over-bu.patch Patch22: 0022-Do-not-require-uid-gid-of-files-to-have-a-valid-user.patch Patch23: 0023-Support-build-in-place-to-run-build-and-install-from.patch Patch24: 0024-add-new-dbi-flag-really_nodbsync.patch Patch25: 0025-macros-Support-noecho-macro-to-quieten-build-scriptl.patch Patch26: 0026-fix-rpmbuild-build-in-place-to-work-with-target-opti.patch Patch27: 0027-Implement-macro-to-skip-install-processing-step.patch Patch28: 0028-Replace-mno-thumb-compiler-option-with-marm.patch Patch29: 0029-Add-aarch64-support.patch Group: System/Base Url: http://www.rpm.org/ # See also https://github.com/mer-packages/rpm/ # Partially GPL/LGPL dual-licensed and some bits with BSD # SourceLicense: (GPLv2+ and LGPLv2+ with exceptions) and BSD License: GPLv2+ ##END_OF_INCLUDE_IN_PYTHON_SPEC## Requires: curl Requires: coreutils Requires: db4-utils BuildRequires: db4-devel BuildRequires: meego-rpm-config BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: gawk BuildRequires: elfutils-devel >= 0.112 BuildRequires: elfutils-libelf-devel BuildRequires: readline-devel zlib-devel BuildRequires: nss-devel # The popt version here just documents an older known-good version BuildRequires: popt-devel >= 1.10.2 BuildRequires: file-devel BuildRequires: gettext-devel BuildRequires: cvs BuildRequires: ncurses-devel BuildRequires: bzip2-devel >= 0.9.0c-2 BuildRequires: lua-devel >= 5.1 BuildRequires: libcap-devel BuildRequires: xz-devel >= 4.999.8 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description The RPM Package Manager (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 libs Summary: Libraries for manipulating RPM packages Group: Development/Libraries License: GPLv2+ and LGPLv2+ with exceptions Requires: rpm = %{version}-%{release} %description libs This package contains the RPM shared libraries. %package devel Summary: Development files for manipulating RPM packages Group: Development/Libraries License: GPLv2+ and LGPLv2+ with exceptions Requires: rpm = %{version}-%{release} Requires: file-devel %description devel This package contains the RPM C library and header files. These development files will simplify the process of writing programs that manipulate RPM packages and databases. These files are intended to simplify the process of creating 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 build Summary: Scripts and executable programs used to build packages Group: Development/Tools Requires: rpm = %{version}-%{release} Requires: elfutils >= 0.128 binutils Requires: findutils sed grep gawk diffutils file patch >= 2.5 Requires: unzip gzip bzip2 cpio lzma xz Requires: pkgconfig %description build The rpm-build package contains the scripts and executable programs that are used to build packages using the RPM Package Manager. # %package apidocs Summary: API documentation for RPM libraries Group: Documentation BuildArch: noarch %description apidocs This package contains API documentation for developing applications that will manipulate RPM packages and databases. %prep %setup -q -n rpm-%{version} %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %patch19 -p1 %patch20 -p1 %patch21 -p1 %patch22 -p1 %patch23 -p1 %patch24 -p1 %patch25 -p1 %patch26 -p1 %patch27 -p1 %patch28 -p1 %patch29 -p1 %build CPPFLAGS="$CPPFLAGS `pkg-config --cflags nss`" CFLAGS="$RPM_OPT_FLAGS" export CPPFLAGS CFLAGS LDFLAGS # Using configure macro has some unwanted side-effects on rpm platform # setup, use the old-fashioned way for now only defining minimal paths. autoreconf ./configure \ --prefix=%{_usr} \ --sysconfdir=%{_sysconfdir} \ --localstatedir=%{_var} \ --sharedstatedir=%{_var}/lib \ --libdir=%{_libdir} \ --with-external-db \ %if %{with python} --enable-python \ %endif --with-lua \ --with-cap make %{?jobs:-j%jobs} %install rm -rf $RPM_BUILD_ROOT %make_install #sed "s/i386/arm/g" platform > platform.arm #sed "s/i386/mipsel/g" platform > platform.mipsel #DESTDIR=$RPM_BUILD_ROOT ./installplatform rpmrc macros platform.arm arm %{_vendor} linux -gnueabi #DESTDIR=$RPM_BUILD_ROOT ./installplatform rpmrc macros platform.mipsel mipsel %{_vendor} linux -gnu find %{buildroot} -regex ".*\\.la$" | xargs rm -f -- mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm mkdir -p $RPM_BUILD_ROOT%{_libdir}/rpm install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_libdir}/rpm/fileattrs/libsymlink.attr rm -f ${RPM_BUILD_ROOT}%{_libdir}/rpm/fileattrs/ksyms.attr mkdir -p $RPM_BUILD_ROOT/var/lib/rpm install -m 755 scripts/debuginfo.prov $RPM_BUILD_ROOT/usr/lib/rpm for dbi in \ Basenames Conflictname Dirnames Group Installtid Name Packages \ Providename Provideversion Requirename Requireversion Triggername \ Filedigests Pubkeys Sha1header Sigmd5 Obsoletename \ __db.001 __db.002 __db.003 __db.004 __db.005 __db.006 __db.007 \ __db.008 __db.009 do touch $RPM_BUILD_ROOT/var/lib/rpm/$dbi done %find_lang %{name} # avoid dragging in tonne of perl libs for an unused script chmod 0644 $RPM_BUILD_ROOT/%{_libdir}/rpm/perldeps.pl # compress our ChangeLog, it's fairly big... bzip2 -9 ChangeLog %clean rm -rf $RPM_BUILD_ROOT %if %{with check} %check make check %endif %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %posttrans # XXX this is klunky and ugly, rpm itself should handle this dbstat=/usr/lib/rpm/rpmdb_stat if [ -x "$dbstat" ]; then if "$dbstat" -e -h /var/lib/rpm 2>&1 | grep -q "doesn't match environment version \| Invalid argument"; then rm -f /var/lib/rpm/__db.* fi fi exit 0 %files -f %{name}.lang %defattr(-,root,root,-) %doc GROUPS COPYING CREDITS %dir %{_sysconfdir}/rpm %attr(0755, root, root) %dir /var/lib/rpm %attr(0644, root, root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/lib/rpm/* %attr(0755, root, root) %dir %{_libdir}/rpm /bin/rpm %{_bindir}/rpmkeys %{_bindir}/rpmspec %{_bindir}/rpm2cpio %{_bindir}/rpmdb %{_bindir}/rpmsign %{_bindir}/rpmquery %{_bindir}/rpmverify %doc %{_mandir}/man8/rpm.8* %doc %{_mandir}/man8/rpm2cpio.8* %doc %{_mandir}/man8/rpmdb.8.gz %doc %{_mandir}/man8/rpmkeys.8.gz %doc %{_mandir}/man8/rpmsign.8.gz %doc %{_mandir}/man8/rpmspec.8.gz %{_libdir}/rpm-plugins/exec.so %{_libdir}/rpm-plugins/sepolicy.so # XXX this places translated manuals to wrong package wrt eg rpmbuild %lang(fr) %{_mandir}/fr/man[18]/*.[18]* %lang(ko) %{_mandir}/ko/man[18]/*.[18]* %lang(ja) %{_mandir}/ja/man[18]/*.[18]* %lang(pl) %{_mandir}/pl/man[18]/*.[18]* %lang(ru) %{_mandir}/ru/man[18]/*.[18]* %lang(sk) %{_mandir}/sk/man[18]/*.[18]* %{_libdir}/rpm/macros %{_libdir}/rpm/rpmpopt* %{_libdir}/rpm/rpmrc %{_libdir}/rpm/rpmdb_* %{_libdir}/rpm/rpm.daily %{_libdir}/rpm/rpm.log %{_libdir}/rpm/rpm2cpio.sh %{_libdir}/rpm/tgpg %{_libdir}/rpm/platform %files libs %defattr(-,root,root) %{_libdir}/librpm*.so.* %files build %defattr(-,root,root) %{_bindir}/rpmbuild %{_bindir}/gendiff %{_mandir}/man1/gendiff.1* %{_libdir}/rpm/fileattrs/*.attr %{_libdir}/rpm/script.req %{_libdir}/rpm/elfdeps %{_libdir}/rpm/brp-* %{_libdir}/rpm/check-buildroot %{_libdir}/rpm/check-files %{_libdir}/rpm/check-prereqs %{_libdir}/rpm/check-rpaths* %{_libdir}/rpm/debugedit %{_libdir}/rpm/find-debuginfo.sh %{_libdir}/rpm/find-lang.sh %{_libdir}/rpm/find-provides %{_libdir}/rpm/find-requires %{_libdir}/rpm/javadeps %{_libdir}/rpm/mono-find-provides %{_libdir}/rpm/mono-find-requires %{_libdir}/rpm/ocaml-find-provides.sh %{_libdir}/rpm/ocaml-find-requires.sh %{_libdir}/rpm/osgideps.pl %{_libdir}/rpm/perldeps.pl %{_libdir}/rpm/libtooldeps.sh %{_libdir}/rpm/pkgconfigdeps.sh %{_libdir}/rpm/perl.prov %{_libdir}/rpm/perl.req %{_libdir}/rpm/tcl.req %{_libdir}/rpm/pythondeps.sh %{_libdir}/rpm/rpmdeps %{_libdir}/rpm/config.guess %{_libdir}/rpm/config.sub %{_libdir}/rpm/mkinstalldirs #%{_libdir}/rpm/rpmdiff* %{_libdir}/rpm/desktop-file.prov %{_libdir}/rpm/fontconfig.prov %{_libdir}/rpm/debuginfo.prov %{_libdir}/rpm/macros.perl %{_libdir}/rpm/macros.python %{_libdir}/rpm/macros.php %{_mandir}/man8/rpmbuild.8* %{_mandir}/man8/rpmdeps.8* %files devel %defattr(-,root,root) %{_includedir}/rpm %{_libdir}/librp*[a-z].so %{_mandir}/man8/rpmgraph.8* %{_bindir}/rpmgraph %{_libdir}/pkgconfig/rpm.pc %files apidocs %defattr(-,root,root) %doc doc/librpm/html/*