shtool/shtool.spec

Tue, 28 Aug 2012 18:28:35 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 18:28:35 +0200
changeset 526
7ddfdb42afce
parent 13
cb59d6afeb61
permissions
-rw-r--r--

Write a explicit dependency to pkgconfig file for getaddrinfo(3). The SVR4
dependencies libsocket and libnsl are needed by libgio and libglib at least,
and allow dependent software like gmime to build unmodified.

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

mercurial