2008-08-14 16:18:07 +02:00
|
|
|
#
|
2011-03-01 16:36:09 +01:00
|
|
|
# spec file for package build
|
2008-08-14 16:18:07 +02:00
|
|
|
#
|
2011-03-01 16:36:09 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-08-14 16:18:07 +02:00
|
|
|
#
|
2008-10-05 17:44:11 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-08-14 16:18:07 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-12-05 02:27:32 +01:00
|
|
|
|
2008-08-14 16:18:07 +02:00
|
|
|
Name: build
|
2010-02-02 17:31:57 +01:00
|
|
|
License: GPLv2+
|
2008-08-14 16:18:07 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
AutoReqProv: on
|
|
|
|
Summary: A Script to Build SUSE Linux RPMs
|
2011-06-06 17:10:22 +02:00
|
|
|
Version: 2011.05.24
|
|
|
|
Release: 1
|
2010-04-19 00:55:03 +02:00
|
|
|
#!BuildIgnore: build-mkbaselibs
|
2009-02-02 11:39:48 +01:00
|
|
|
Source: build-%{version}.tar.gz
|
2008-08-14 16:18:07 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2009-04-22 10:21:51 +02:00
|
|
|
# Manual requires to avoid hard require to bash-static
|
2009-07-27 17:09:13 +02:00
|
|
|
AutoReqProv: off
|
2010-02-25 09:24:40 +01:00
|
|
|
# Keep the following dependencies in sync with obs-worker package
|
|
|
|
Requires: bash
|
|
|
|
Requires: perl
|
|
|
|
Requires: binutils
|
2010-03-10 16:12:24 +01:00
|
|
|
Requires: tar
|
2011-05-12 12:21:16 +02:00
|
|
|
Conflicts: bsdtar < 2.5.5
|
|
|
|
%if 0%{?suse_version} > 1000
|
2010-11-11 13:26:23 +01:00
|
|
|
# None of them are actually required for core features.
|
|
|
|
# Perl helper scripts use them.
|
|
|
|
Recommends: perl(Date::Language)
|
|
|
|
Recommends: perl(Date::Parse)
|
|
|
|
Recommends: perl(LWP::UserAgent)
|
|
|
|
Recommends: perl(Pod::Usage)
|
|
|
|
Recommends: perl(Time::Zone)
|
|
|
|
Recommends: perl(URI)
|
|
|
|
Recommends: perl(XML::Parser)
|
2010-12-09 15:52:49 +01:00
|
|
|
Recommends: bsdtar
|
2010-11-11 13:26:23 +01:00
|
|
|
%endif
|
2008-08-14 16:18:07 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides a script for building RPMs for SUSE Linux in a
|
|
|
|
chroot environment.
|
|
|
|
|
|
|
|
|
2010-04-15 17:55:11 +02:00
|
|
|
%if 0%{?suse_version} > 1120 || ! 0%{?suse_version}
|
2010-04-15 23:59:47 +02:00
|
|
|
Requires: build-mkbaselibs
|
2010-11-11 13:26:23 +01:00
|
|
|
Recommends: build-mkdrpms
|
2010-04-15 17:55:11 +02:00
|
|
|
|
|
|
|
%package mkbaselibs
|
2010-04-15 23:59:47 +02:00
|
|
|
License: GPLv2+
|
2010-04-15 17:55:11 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Summary: Tools to generate base lib packages
|
|
|
|
# NOTE: this package must not have dependencies which may break boot strapping (eg. perl modules)
|
|
|
|
|
|
|
|
%description mkbaselibs
|
|
|
|
This package contains the parts which may be installed in the inner build system
|
|
|
|
for generating base lib packages.
|
2010-11-11 13:26:23 +01:00
|
|
|
|
|
|
|
%package mkdrpms
|
|
|
|
License: GPLv2+
|
|
|
|
Group: Development/Tools/Building
|
|
|
|
Summary: Tools to generate delta rpms
|
|
|
|
Requires: deltarpm
|
|
|
|
# XXX: we wanted to avoid that but mkdrpms needs Build::Rpm::rpmq
|
|
|
|
Requires: build
|
|
|
|
|
|
|
|
%description mkdrpms
|
|
|
|
This package contains the parts which may be installed in the inner build system
|
|
|
|
for generating delta rpm packages.
|
|
|
|
|
2010-04-15 17:55:11 +02:00
|
|
|
%endif
|
2009-07-27 17:09:13 +02:00
|
|
|
|
2008-08-14 16:18:07 +02:00
|
|
|
%prep
|
2009-04-17 14:49:18 +02:00
|
|
|
%setup -q
|
2008-08-14 16:18:07 +02:00
|
|
|
|
2008-10-05 17:44:11 +02:00
|
|
|
%build
|
|
|
|
|
2008-08-14 16:18:07 +02:00
|
|
|
%install
|
2009-04-22 10:21:51 +02:00
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2010-03-10 16:12:24 +01:00
|
|
|
cd $RPM_BUILD_ROOT/usr/lib/build/configs/
|
2011-03-29 17:32:18 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-04-15 17:55:11 +02:00
|
|
|
%if 0%{?sles_version}
|
2010-03-10 16:12:24 +01:00
|
|
|
ln -s sles%{sles_version}.conf default.conf
|
|
|
|
%else
|
|
|
|
V=%suse_version
|
|
|
|
ln -s sl${V:0:2}.${V:2:1}.conf default.conf
|
|
|
|
%endif
|
2011-03-29 17:32:18 +02:00
|
|
|
test -e default.conf
|
2010-03-10 16:12:24 +01:00
|
|
|
%endif
|
2008-08-14 16:18:07 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README
|
|
|
|
/usr/bin/build
|
2009-04-22 10:21:51 +02:00
|
|
|
/usr/bin/buildvc
|
2008-08-14 16:18:07 +02:00
|
|
|
/usr/bin/unrpm
|
|
|
|
/usr/lib/build
|
2008-10-22 01:22:06 +02:00
|
|
|
%{_mandir}/man1/build.1*
|
2008-08-14 16:18:07 +02:00
|
|
|
|
2010-04-15 17:55:11 +02:00
|
|
|
%if 0%{?suse_version} > 1120 || ! 0%{?suse_version}
|
|
|
|
%exclude /usr/lib/build/mkbaselibs
|
2010-04-19 16:52:27 +02:00
|
|
|
%exclude /usr/lib/build/baselibs*
|
2010-11-11 13:26:23 +01:00
|
|
|
%exclude /usr/lib/build/mkdrpms
|
2010-04-15 17:55:11 +02:00
|
|
|
|
|
|
|
%files mkbaselibs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /usr/lib/build
|
|
|
|
/usr/lib/build/mkbaselibs
|
2010-04-19 16:52:27 +02:00
|
|
|
/usr/lib/build/baselibs*
|
2010-11-11 13:26:23 +01:00
|
|
|
|
|
|
|
%files mkdrpms
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /usr/lib/build
|
|
|
|
/usr/lib/build/mkdrpms
|
2010-04-15 17:55:11 +02:00
|
|
|
%endif
|
|
|
|
|
2008-08-14 16:18:07 +02:00
|
|
|
%changelog
|