michael@13: ##
michael@13: ## shtool.spec -- OpenPKG RPM Package Specification
michael@16: ## Copyright (c) 2000-2005 OpenPKG Foundation e.V.
michael@16: ## Copyright (c) 2000-2005 Ralf S. Engelschall
michael@13: ##
michael@13: ## Permission to use, copy, modify, and distribute this software for
michael@13: ## any purpose with or without fee is hereby granted, provided that
michael@13: ## the above copyright notice and this permission notice appear in all
michael@13: ## copies.
michael@13: ##
michael@13: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@13: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@13: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@13: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@13: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@13: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@13: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@13: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@13: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@13: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@13: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@13: ## SUCH DAMAGE.
michael@13: ##
michael@13:
michael@13: # package information
michael@13: Name: shtool
michael@13: Summary: GNU Portable Shell Tool
michael@13: URL: http://www.gnu.org/software/shtool/
michael@13: Vendor: Ralf S. Engelschall
michael@16: Packager: OpenPKG
michael@16: Distribution: OpenPKG
michael@13: Class: CORE
michael@13: Group: Building
michael@13: License: GPL
michael@13: Version: 2.0.8
michael@16: Release: 20090105
michael@13:
michael@13: # package options
michael@13: %option with_shtoolize yes
michael@13:
michael@13: # list of sources
michael@13: Source0: ftp://ftp.gnu.org/gnu/shtool/shtool-%{version}.tar.gz
michael@16: Patch0: shtool.patch
michael@13:
michael@13: # build information
michael@13: Prefix: %{l_prefix}
michael@13: BuildRoot: %{l_buildroot}
michael@13: BuildPreReq: OpenPKG, openpkg >= 20040130, perl
michael@13: PreReq: OpenPKG, openpkg >= 20040130
michael@13: %if "%{with_shtoolize}" == "yes"
michael@13: PreReq: perl
michael@13: %endif
michael@13: AutoReq: no
michael@13: AutoReqProv: no
michael@13:
michael@13: %description
michael@13: GNU shtool is a compilation of small but very stable and portable
michael@13: shell scripts into a single shell tool. All ingredients were in
michael@13: successful use over many years in various free software projects.
michael@13: The compiled shtool script is intended to be used inside the source
michael@13: tree of those free software packages. There it can take over
michael@16: various (usually nonportable) tasks related to the building and
michael@13: installation of such packages.
michael@13:
michael@13: %track
michael@13: prog shtool = {
michael@13: version = %{version}
michael@13: url = ftp://ftp.gnu.org/gnu/shtool/
michael@13: regex = shtool-(__VER__)\.tar\.gz
michael@13: }
michael@13:
michael@13: %prep
michael@13: %setup -q
michael@16: %patch -p0
michael@13:
michael@13: %build
michael@13: ./configure \
michael@13: --prefix=%{l_prefix} \
michael@13: --mandir=%{l_prefix}/man
michael@13: %{l_make} %{l_mflags}
michael@13:
michael@13: %install
michael@13: rm -rf $RPM_BUILD_ROOT
michael@13: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
michael@13: %if "%{with_shtoolize}" != "yes"
michael@13: rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/shtoolize
michael@13: rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/shtoolize.1
michael@13: rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/shtool
michael@13: %endif
michael@13: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
michael@16: %{l_files_std} \
michael@16: '%not %dir %{l_prefix}/share/aclocal'
michael@13:
michael@13: %files -f files
michael@13:
michael@13: %clean
michael@13: rm -rf $RPM_BUILD_ROOT
michael@13: