Import new package spec for introduction into repository.

Wed, 08 Feb 2012 20:18:10 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 08 Feb 2012 20:18:10 +0200
changeset 615
b36c21980261
parent 614
dd4810b9233b
child 616
1cbb05665045

Import new package spec for introduction into repository.

libget/libget.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libget/libget.spec	Wed Feb 08 20:18:10 2012 +0200
     1.3 @@ -0,0 +1,87 @@
     1.4 +##
     1.5 +##  libget.spec -- OpenPKG RPM Package Specification
     1.6 +##  Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
     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:         libget
    1.29 +Summary:      Portable Getdelim(3) and Getline(3) Replacements
    1.30 +URL:          http://dev.europalab.com/libget/
    1.31 +Vendor:       Oracle Corporation
    1.32 +Packager:     Michael Schloh von Bennewitz
    1.33 +Distribution: Europalab Networks Production
    1.34 +Class:        EVAL
    1.35 +Group:        Libraries
    1.36 +License:      CDDL
    1.37 +Version:      1.0
    1.38 +Release:      20120208
    1.39 +
    1.40 +#   list of sources
    1.41 +Source0:      ftp://ftp.europalab.com/pub/sfw/libget/libget-%{version}.tar.gz
    1.42 +
    1.43 +#   build information
    1.44 +Prefix:       %{l_prefix}
    1.45 +BuildRoot:    %{l_buildroot}
    1.46 +BuildPreReq:  OpenPKG, openpkg >= 20040130
    1.47 +PreReq:       OpenPKG, openpkg >= 20040130
    1.48 +AutoReq:      no
    1.49 +AutoReqProv:  no
    1.50 +
    1.51 +%description
    1.52 +Libget implements the nonstandard getdelim(3) and getline(3) functions
    1.53 +often used in POSIX applications. The library exports these two symbols
    1.54 +providing a C binding. A header file completes the API and serves as
    1.55 +the sole documentation. This library is useful for applications with
    1.56 +build failures caused by development failing to comply with ISO C11
    1.57 +or any other versions of the C programming language standard.
    1.58 +
    1.59 +%track
    1.60 +    prog libget = {
    1.61 +        version   = %{version}
    1.62 +        url       = ftp://ftp.europalab.com/pub/sfw/libget/
    1.63 +        regex     = libget-(__VER__)\.tar\.gz
    1.64 +    }
    1.65 +
    1.66 +%prep
    1.67 +    %setup -q
    1.68 +
    1.69 +%build
    1.70 +    %{l_cc} %{l_cppflags} -c libget.c
    1.71 +    ar cq libget.a libget.o
    1.72 +
    1.73 +%install
    1.74 +    rm -rf $RPM_BUILD_ROOT
    1.75 +    %{l_shtool} mkdir -f -p -m 755 \
    1.76 +        $RPM_BUILD_ROOT%{l_prefix}/include \
    1.77 +        $RPM_BUILD_ROOT%{l_prefix}/lib
    1.78 +    %{l_shtool} install -c -m 644 \
    1.79 +        libget.h \
    1.80 +        $RPM_BUILD_ROOT%{l_prefix}/include/
    1.81 +    %{l_shtool} install -c -m 644 \
    1.82 +        libget.a \
    1.83 +        $RPM_BUILD_ROOT%{l_prefix}/lib/
    1.84 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    1.85 +
    1.86 +%files -f files
    1.87 +
    1.88 +%clean
    1.89 +    rm -rf $RPM_BUILD_ROOT
    1.90 +

mercurial