libget/libget.spec

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

     1 ##
     2 ##  libget.spec -- OpenPKG RPM Package Specification
     3 ##  Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
     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:         libget
    26 Summary:      Portable Getdelim(3) and Getline(3) Replacements
    27 URL:          http://dev.europalab.com/libget/
    28 Vendor:       Oracle Corporation
    29 Packager:     Michael Schloh von Bennewitz
    30 Distribution: Europalab Networks Production
    31 Class:        EVAL
    32 Group:        Libraries
    33 License:      CDDL
    34 Version:      1.0
    35 Release:      20120208
    37 #   list of sources
    38 Source0:      ftp://ftp.europalab.com/pub/sfw/libget/libget-%{version}.tar.gz
    40 #   build information
    41 Prefix:       %{l_prefix}
    42 BuildRoot:    %{l_buildroot}
    43 BuildPreReq:  OpenPKG, openpkg >= 20040130
    44 PreReq:       OpenPKG, openpkg >= 20040130
    45 AutoReq:      no
    46 AutoReqProv:  no
    48 %description
    49 Libget implements the nonstandard getdelim(3) and getline(3) functions
    50 often used in POSIX applications. The library exports these two symbols
    51 providing a C binding. A header file completes the API and serves as
    52 the sole documentation. This library is useful for applications with
    53 build failures caused by development failing to comply with ISO C11
    54 or any other versions of the C programming language standard.
    56 %track
    57     prog libget = {
    58         version   = %{version}
    59         url       = ftp://ftp.europalab.com/pub/sfw/libget/
    60         regex     = libget-(__VER__)\.tar\.gz
    61     }
    63 %prep
    64     %setup -q
    66 %build
    67     %{l_cc} %{l_cppflags} -c libget.c
    68     ar cq libget.a libget.o
    70 %install
    71     rm -rf $RPM_BUILD_ROOT
    72     %{l_shtool} mkdir -f -p -m 755 \
    73         $RPM_BUILD_ROOT%{l_prefix}/include \
    74         $RPM_BUILD_ROOT%{l_prefix}/lib
    75     %{l_shtool} install -c -m 644 \
    76         libget.h \
    77         $RPM_BUILD_ROOT%{l_prefix}/include/
    78     %{l_shtool} install -c -m 644 \
    79         libget.a \
    80         $RPM_BUILD_ROOT%{l_prefix}/lib/
    81     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    83 %files -f files
    85 %clean
    86     rm -rf $RPM_BUILD_ROOT

mercurial