# HG changeset patch # User Michael Schloh von Bennewitz # Date 1328725090 -7200 # Node ID b36c2198026156c93f1338390380164b2ddff0b7 # Parent dd4810b9233b189e59d390a3989357e7c50a58a5 Import new package spec for introduction into repository. diff -r dd4810b9233b -r b36c21980261 libget/libget.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libget/libget.spec Wed Feb 08 20:18:10 2012 +0200 @@ -0,0 +1,87 @@ +## +## libget.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2012 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: libget +Summary: Portable Getdelim(3) and Getline(3) Replacements +URL: http://dev.europalab.com/libget/ +Vendor: Oracle Corporation +Packager: Michael Schloh von Bennewitz +Distribution: Europalab Networks Production +Class: EVAL +Group: Libraries +License: CDDL +Version: 1.0 +Release: 20120208 + +# list of sources +Source0: ftp://ftp.europalab.com/pub/sfw/libget/libget-%{version}.tar.gz + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130 +PreReq: OpenPKG, openpkg >= 20040130 +AutoReq: no +AutoReqProv: no + +%description +Libget implements the nonstandard getdelim(3) and getline(3) functions +often used in POSIX applications. The library exports these two symbols +providing a C binding. A header file completes the API and serves as +the sole documentation. This library is useful for applications with +build failures caused by development failing to comply with ISO C11 +or any other versions of the C programming language standard. + +%track + prog libget = { + version = %{version} + url = ftp://ftp.europalab.com/pub/sfw/libget/ + regex = libget-(__VER__)\.tar\.gz + } + +%prep + %setup -q + +%build + %{l_cc} %{l_cppflags} -c libget.c + ar cq libget.a libget.o + +%install + rm -rf $RPM_BUILD_ROOT + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/include \ + $RPM_BUILD_ROOT%{l_prefix}/lib + %{l_shtool} install -c -m 644 \ + libget.h \ + $RPM_BUILD_ROOT%{l_prefix}/include/ + %{l_shtool} install -c -m 644 \ + libget.a \ + $RPM_BUILD_ROOT%{l_prefix}/lib/ + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT +