Import package vendor original specs for necessary manipulations.

Fri, 10 Aug 2012 14:26:56 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 10 Aug 2012 14:26:56 +0200
changeset 507
b38213c8f8c3
parent 506
ed99728b62ad
child 508
46679bda6e96

Import package vendor original specs for necessary manipulations.

socat/socat.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/socat/socat.spec	Fri Aug 10 14:26:56 2012 +0200
     1.3 @@ -0,0 +1,108 @@
     1.4 +##
     1.5 +##  socat.spec -- OpenPKG RPM Package Specification
     1.6 +##  Copyright (c) 2000-2012 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 version
    1.28 +%define       V_major  1.7.2
    1.29 +%define       V_minor  1
    1.30 +
    1.31 +#   package information
    1.32 +Name:         socat
    1.33 +Summary:      Socket Client
    1.34 +URL:          http://www.dest-unreach.org/socat/
    1.35 +Vendor:       Gerhard Rieger
    1.36 +Packager:     OpenPKG Foundation e.V.
    1.37 +Distribution: OpenPKG Community
    1.38 +Class:        BASE
    1.39 +Group:        Network
    1.40 +License:      GPL
    1.41 +Version:      %{V_major}.%{V_minor}
    1.42 +Release:      20120515
    1.43 +
    1.44 +#   package options
    1.45 +%option       with_readline yes
    1.46 +%option       with_ssl      yes
    1.47 +
    1.48 +#   list of sources
    1.49 +Source0:      http://www.dest-unreach.org/socat/download/socat-%{V_major}.%{V_minor}.tar.bz2
    1.50 +
    1.51 +#   build information
    1.52 +BuildPreReq:  OpenPKG, openpkg >= 20100101, gcc
    1.53 +PreReq:       OpenPKG, openpkg >= 20100101
    1.54 +%if "%{with_readline}" == "yes"
    1.55 +BuildPreReq:  readline
    1.56 +PreReq:       readline
    1.57 +%endif
    1.58 +%if "%{with_ssl}" == "yes"
    1.59 +BuildPreReq:  openssl
    1.60 +PreReq:       openssl
    1.61 +%endif
    1.62 +
    1.63 +%description
    1.64 +    Socat is a relay for bi-directional data transfer between two
    1.65 +    independent data channels. Each of these data channels may be a
    1.66 +    file, pipe, device (terminal, modem, etc), socket (UNIX, IP4, IP6,
    1.67 +    raw, UDP, TCP), a file descriptor (stdin, etc), a program, or an
    1.68 +    arbitrary combination of two of these.
    1.69 +
    1.70 +%track
    1.71 +    prog socat = {
    1.72 +        version   = %{version}
    1.73 +        url       = http://www.dest-unreach.org/socat/download/
    1.74 +        regex     = socat-(\d+\.\d+\.\d+(?:\.\d+))\.tar\.bz2
    1.75 +    }
    1.76 +
    1.77 +%prep
    1.78 +    %setup -q -n socat-%{V_major}.%{V_minor}
    1.79 +
    1.80 +%build
    1.81 +    CC="%{l_cc} %{l_cflags -O} %{l_cppflags}" \
    1.82 +    CFLAGS="%{l_cflags -O} %{l_cppflags}" \
    1.83 +    CPPFLAGS="%{l_cppflags}" \
    1.84 +    LDFLAGS="%{l_ldflags}" \
    1.85 +    ./configure \
    1.86 +        --prefix=%{l_prefix} \
    1.87 +        --mandir=%{l_prefix}/man \
    1.88 +        --enable-msglevel=debug \
    1.89 +%if "%{with_readline}" == "yes"
    1.90 +        --enable-readline \
    1.91 +%else
    1.92 +        --disable-readline \
    1.93 +%endif
    1.94 +%if "%{with_ssl}" == "yes"
    1.95 +        --enable-openssl \
    1.96 +%else
    1.97 +        --disable-openssl \
    1.98 +%endif
    1.99 +        --disable-libwrap
   1.100 +
   1.101 +    %{l_make} %{l_mflags -O}
   1.102 +
   1.103 +%install
   1.104 +    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
   1.105 +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
   1.106 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   1.107 +
   1.108 +%files -f files
   1.109 +
   1.110 +%clean
   1.111 +

mercurial