From b53b37a0b2e1198c5967f3314183bd26c54060c1e0e05afc3fc98b1f3af84832 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 17 Jan 2012 11:13:52 +0000 Subject: [PATCH] Accepting request 100375 from home:coolo:branches:openSUSE:Factory - split rpmbuild into a package of its own, which then requires basic tools to build rpms OBS-URL: https://build.opensuse.org/request/show/100375 OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=179 --- rpm.changes | 6 ++++++ rpm.spec | 39 ++++++++++++++++++++++++++++----------- 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/rpm.changes b/rpm.changes index c33be40..40548e0 100644 --- a/rpm.changes +++ b/rpm.changes @@ -9,6 +9,12 @@ Mon Jan 16 14:12:58 UTC 2012 - werner@suse.de - Add patch from upstream to reflect changes of perl and python fileattrs to file 5.10 magics +------------------------------------------------------------------- +Fri Jan 13 14:16:14 UTC 2012 - coolo@suse.com + +- split rpmbuild into a package of its own, which then requires basic + tools to build rpms + ------------------------------------------------------------------- Mon Jan 9 17:12:05 CET 2012 - dmueller@suse.de diff --git a/rpm.spec b/rpm.spec index 63ae315..b3bd21c 100644 --- a/rpm.spec +++ b/rpm.spec @@ -140,17 +140,12 @@ is easy to update packages. RPM keeps track of all these manipulations in a central database. This way it is possible to get an overview of all installed packages. RPM also supports database queries. - - -Authors: --------- - Erik Troan - Marc Ewing - %package devel Summary: Include Files and Libraries mandatory for Development Group: System/Packages Requires: rpm = %{version} +# for people confusing the one with the other +Recommends: rpm-build = %{version} Requires: popt-devel %description devel @@ -160,12 +155,29 @@ 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. +%package build +Summary: Tools and Scripts to create rpm packages +Group: System/Packages +Requires: rpm = %{version} +Provides: rpmbuild rpm:%_bindir/rpmbuild +# SUSE's build essentials +Requires: bzip2 +Requires: xz +Requires: gzip +Requires: binutils +Requires: make +Requires: gcc +Requires: gettext-tools +Requires: findutils +Requires: patch +Requires: glibc-devel +Requires: perl-base +%description build +If you want to build a rpm, you need this package. It provides rpmbuild +and requires some packages that are usually required -Authors: --------- - Erik Troan - Marc Ewing +%package -n build-essentials %prep %setup -q -n rpm-%{version} @@ -337,6 +349,7 @@ rm -f var/lib/rpm/Filemd5s var/lib/rpm/Filedigests var/lib/rpm/Requireversion va /etc/rpm /bin/rpm /usr/bin/* + %exclude /usr/bin/rpmbuild /etc/init.d/rpmconfigcheck /usr/sbin/rcrpmconfigcheck /usr/lib/rpm @@ -356,6 +369,10 @@ rm -f var/lib/rpm/Filemd5s var/lib/rpm/Filedigests var/lib/rpm/Requireversion va %dir %attr(755,root,root) /usr/src/packages/RPMS/* /var/adm/fillup-templates/sysconfig.services-rpm +%files build +%defattr(-,root,root) +/usr/bin/rpmbuild + %files devel %defattr(644,root,root,755) /usr/include/rpm