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.

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

mercurial