2008-08-14 16:18:07 +02:00
|
|
|
#
|
2009-09-23 12:11:30 +02:00
|
|
|
# spec file for package build (Version 2009.09.23)
|
2008-08-14 16:18:07 +02:00
|
|
|
#
|
2009-02-02 11:39:48 +01:00
|
|
|
# Copyright (c) 2009 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
|
|
|
|
License: GPL v2 or later
|
|
|
|
Group: Development/Tools/Building
|
|
|
|
AutoReqProv: on
|
|
|
|
Summary: A Script to Build SUSE Linux RPMs
|
2009-11-27 10:46:38 +01:00
|
|
|
Version: 2009.11.27
|
2009-07-27 17:09:13 +02:00
|
|
|
Release: 1
|
2008-12-03 11:38:19 +01:00
|
|
|
# osc rm build-*tar.bz2
|
|
|
|
# REVISION=$(svn info https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/build | sed -ne "/Revision: /s///p")
|
|
|
|
# VERSION="$(date +"%Y.%m.%d").r$REVISION"
|
|
|
|
# svn export -r$REVISION https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/build build-$VERSION
|
|
|
|
# tar cjvf build-$VERSION.tar.bz2 build-$VERSION
|
|
|
|
# rm -rf build-$VERSION
|
|
|
|
# osc add build-$VERSION.tar.bz2
|
2008-12-03 12:09:30 +01:00
|
|
|
# # There's several occurences of "Version: something" in this file,
|
|
|
|
# # two of them valid, so we need to be picky in the match.
|
|
|
|
# sed --in-place build.spec -e"/\(Version:\?[[:space:]]\+\)\([0-9]\{4\}\.[0-9][0-9]\.[0-9][0-9]\.r[0-9]\+\)/s,,\1$VERSION,"
|
2008-12-03 11:38:19 +01:00
|
|
|
# osc build build.spec
|
|
|
|
# osc ci
|
2008-12-03 12:09:30 +01:00
|
|
|
# osc submitreq create -m"current svn snapshot." openSUSE:Tools build openSUSE:Factory
|
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
|
2009-04-22 10:21:51 +02:00
|
|
|
Requires: /bin/bash
|
|
|
|
Requires: /usr/bin/perl
|
2009-11-27 10:11:43 +01:00
|
|
|
Requires: perl-TimeDate
|
2008-08-14 16:18:07 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides a script for building RPMs for SUSE Linux in a
|
|
|
|
chroot environment.
|
|
|
|
|
|
|
|
|
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
|
|
|
|
#ln -s /usr/lib/build/build $RPM_BUILD_ROOT/usr/bin/build
|
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
|
|
|
|
|
|
|
%changelog
|