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