shtool/shtool.spec

Tue, 06 Jan 2009 23:40:39 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2009 23:40:39 +0100
changeset 13
cb59d6afeb61
child 16
01c515740aeb
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

michael@13 1 ##
michael@13 2 ## shtool.spec -- OpenPKG RPM Package Specification
michael@13 3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@13 4 ##
michael@13 5 ## Permission to use, copy, modify, and distribute this software for
michael@13 6 ## any purpose with or without fee is hereby granted, provided that
michael@13 7 ## the above copyright notice and this permission notice appear in all
michael@13 8 ## copies.
michael@13 9 ##
michael@13 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@13 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@13 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@13 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@13 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@13 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@13 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@13 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@13 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@13 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@13 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@13 21 ## SUCH DAMAGE.
michael@13 22 ##
michael@13 23
michael@13 24 # package information
michael@13 25 Name: shtool
michael@13 26 Summary: GNU Portable Shell Tool
michael@13 27 URL: http://www.gnu.org/software/shtool/
michael@13 28 Vendor: Ralf S. Engelschall
michael@13 29 Packager: OpenPKG Foundation e.V.
michael@13 30 Distribution: OpenPKG Community
michael@13 31 Class: CORE
michael@13 32 Group: Building
michael@13 33 License: GPL
michael@13 34 Version: 2.0.8
michael@13 35 Release: 20080718
michael@13 36
michael@13 37 # package options
michael@13 38 %option with_shtoolize yes
michael@13 39
michael@13 40 # list of sources
michael@13 41 Source0: ftp://ftp.gnu.org/gnu/shtool/shtool-%{version}.tar.gz
michael@13 42
michael@13 43 # build information
michael@13 44 Prefix: %{l_prefix}
michael@13 45 BuildRoot: %{l_buildroot}
michael@13 46 BuildPreReq: OpenPKG, openpkg >= 20040130, perl
michael@13 47 PreReq: OpenPKG, openpkg >= 20040130
michael@13 48 %if "%{with_shtoolize}" == "yes"
michael@13 49 PreReq: perl
michael@13 50 %endif
michael@13 51 AutoReq: no
michael@13 52 AutoReqProv: no
michael@13 53
michael@13 54 %description
michael@13 55 GNU shtool is a compilation of small but very stable and portable
michael@13 56 shell scripts into a single shell tool. All ingredients were in
michael@13 57 successful use over many years in various free software projects.
michael@13 58 The compiled shtool script is intended to be used inside the source
michael@13 59 tree of those free software packages. There it can take over
michael@13 60 various (usually non-portable) tasks related to the building and
michael@13 61 installation of such packages.
michael@13 62
michael@13 63 %track
michael@13 64 prog shtool = {
michael@13 65 version = %{version}
michael@13 66 url = ftp://ftp.gnu.org/gnu/shtool/
michael@13 67 regex = shtool-(__VER__)\.tar\.gz
michael@13 68 }
michael@13 69
michael@13 70 %prep
michael@13 71 %setup -q
michael@13 72
michael@13 73 %build
michael@13 74 ./configure \
michael@13 75 --prefix=%{l_prefix} \
michael@13 76 --mandir=%{l_prefix}/man
michael@13 77 %{l_make} %{l_mflags}
michael@13 78
michael@13 79 %install
michael@13 80 rm -rf $RPM_BUILD_ROOT
michael@13 81 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
michael@13 82 %if "%{with_shtoolize}" != "yes"
michael@13 83 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/shtoolize
michael@13 84 rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/shtoolize.1
michael@13 85 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/shtool
michael@13 86 %endif
michael@13 87 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
michael@13 88 %{l_files_std}
michael@13 89
michael@13 90 %files -f files
michael@13 91
michael@13 92 %clean
michael@13 93 rm -rf $RPM_BUILD_ROOT
michael@13 94

mercurial