forked from pool/build
16182e8e76
Rev openSUSE:Tools/49 Md5 be8a504be64c0717f77f0a976ef13161 2009-09-23 10:11:30 mlschroe None
74 lines
2.3 KiB
RPMSpec
74 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package build (Version 2009.09.23)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: build
|
|
License: GPL v2 or later
|
|
Group: Development/Tools/Building
|
|
AutoReqProv: on
|
|
Summary: A Script to Build SUSE Linux RPMs
|
|
Version: 2009.09.23
|
|
Release: 1
|
|
# 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
|
|
# # 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,"
|
|
# osc build build.spec
|
|
# osc ci
|
|
# osc submitreq create -m"current svn snapshot." openSUSE:Tools build openSUSE:Factory
|
|
Source: build-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
# Manual requires to avoid hard require to bash-static
|
|
AutoReqProv: off
|
|
Requires: /bin/bash
|
|
Requires: /usr/bin/perl
|
|
|
|
%description
|
|
This package provides a script for building RPMs for SUSE Linux in a
|
|
chroot environment.
|
|
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
%install
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
#ln -s /usr/lib/build/build $RPM_BUILD_ROOT/usr/bin/build
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
/usr/bin/build
|
|
/usr/bin/buildvc
|
|
/usr/bin/unrpm
|
|
/usr/lib/build
|
|
%{_mandir}/man1/build.1*
|
|
|
|
%changelog
|