Import package vendor original specs for necessary manipulations.

Tue, 04 Sep 2012 19:52:27 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 04 Sep 2012 19:52:27 +0200
changeset 662
22841d168ea4
parent 661
5e372ee5f447
child 663
fd4ca8d3da2a

Import package vendor original specs for necessary manipulations.

whois/whois.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/whois/whois.spec	Tue Sep 04 19:52:27 2012 +0200
     1.3 @@ -0,0 +1,92 @@
     1.4 +##
     1.5 +##  whois.spec -- OpenPKG RPM Package Specification
     1.6 +##  Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.7 +##
     1.8 +##  Permission to use, copy, modify, and distribute this software for
     1.9 +##  any purpose with or without fee is hereby granted, provided that
    1.10 +##  the above copyright notice and this permission notice appear in all
    1.11 +##  copies.
    1.12 +##
    1.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    1.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    1.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    1.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    1.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    1.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    1.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    1.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.24 +##  SUCH DAMAGE.
    1.25 +##
    1.26 +
    1.27 +#   package information
    1.28 +Name:         whois
    1.29 +Summary:      WHOIS Client
    1.30 +URL:          http://www.linux.it/~md/software/
    1.31 +Vendor:       Marco d'Itri
    1.32 +Packager:     OpenPKG Foundation e.V.
    1.33 +Distribution: OpenPKG Community
    1.34 +Class:        BASE
    1.35 +Group:        WHOIS
    1.36 +License:      GPL
    1.37 +Version:      5.0.14
    1.38 +Release:      20111226
    1.39 +
    1.40 +#   list of sources
    1.41 +Source0:      http://ftp.debian.org/debian/pool/main/w/whois/whois_%{version}.tar.gz
    1.42 +
    1.43 +#   build information
    1.44 +BuildPreReq:  OpenPKG, openpkg >= 20100101, make, perl
    1.45 +PreReq:       OpenPKG, openpkg >= 20100101
    1.46 +
    1.47 +%description
    1.48 +    A client for querying the WHOIS databases of over 60 top-level domains.
    1.49 +
    1.50 +%track
    1.51 +    prog whois = {
    1.52 +        version   = %{version}
    1.53 +        url       = http://ftp.debian.org/debian/pool/main/w/whois/
    1.54 +        regex     = whois_(__VER__)\.tar\.gz
    1.55 +    }
    1.56 +
    1.57 +%prep
    1.58 +    %setup -q
    1.59 +    %{l_shtool} subst \
    1.60 +        -e 's;^OPTS[ 	]*:*=.*$;OPTS=;' \
    1.61 +        Makefile
    1.62 +
    1.63 +%build
    1.64 +    %{l_shtool} subst -e "s;perl;%{l_prefix}/bin/perl;" Makefile
    1.65 +
    1.66 +    ldflags=""
    1.67 +    case "%{l_platform -t}" in
    1.68 +        *-sunos* )
    1.69 +            ldflags="-lnsl -lsocket"
    1.70 +            ;;
    1.71 +        *-freebsd* )
    1.72 +            %{l_shtool} subst \
    1.73 +                -e "s;# define HAVE_GETOPT_LONG;/* # define HAVE_GETOPT_LONG */;" \
    1.74 +                -e "s;# define ENABLE_NLS;/* # define ENABLE_NLS */;" \
    1.75 +                -e "s;# define LOCALEDIR "/usr/local/share/locale";/* # define LOCALEDIR "/usr/local/share/locale"*/;" \
    1.76 +                config.h
    1.77 +            ;;
    1.78 +    esac
    1.79 +
    1.80 +    %{l_make} %{l_mflags} \
    1.81 +        CC="%{l_cc}" \
    1.82 +        CFLAGS="%{l_cflags -O}" \
    1.83 +        LDFLAGS="$ldflags"
    1.84 +
    1.85 +%install
    1.86 +    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/bin
    1.87 +    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man1
    1.88 +    %{l_shtool} install -s -c -m 755 whois $RPM_BUILD_ROOT%{l_prefix}/bin/
    1.89 +    %{l_shtool} install -c -m 644 whois.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
    1.90 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    1.91 +
    1.92 +%files -f files
    1.93 +
    1.94 +%clean
    1.95 +

mercurial