Browse Source

upgrade to Sfio 2000

master
parent
commit
2b3c96773a
  1. 37
      sfio/sfio.spec

37
sfio/sfio.spec

@ -25,18 +25,18 @@
# package information
Name: sfio
Summary: Simple/Stream Fast I/O Library (OSSP version)
URL: http://www.ossp.org/pkg/sfio/
Summary: Simple/Stream Fast I/O Library
URL: http://www.research.att.com/sw/tools/sfio/
Vendor: David Korn & Kiem-Phong Vo
Packager: The OpenPKG Project
Distribution: OpenPKG [REL]
Group: System
License: BSD
Version: 1999.4
Version: 2000
Release: 20011201.0
# list of sources
Source0: ftp://ftp.ossp.org/pkg/sfio/ossp-sfio-%{version}.tar.gz
Source0: http://www.research.att.com/tmp/reuse/pkg?????????/sfio_%{version}.src.unix_tar.tar
# build information
Prefix: %{l_prefix}
@ -47,24 +47,31 @@ AutoReq: no
AutoReqProv: no
%description
Sfio..
Sfio is a library for managing I/O streams. It provides
functionality similar to that of Stdio, the ANSI C Standard I/O
library, but via a distinct interface that is more powerful, robust
and efficient.
%prep
%setup -q -n ossp-sfio-%{version}
%setup -q -c -n sfio-%{version}
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix} \
--includedir=%{l_prefix}/include/sfio \
--with-stdio-src \
--disable-shared
%{l_make} %{l_mflags}
PATH="`pwd`/bin:$PATH"; export PATH
cd src/lib/sfio
%{l_make} %{l_mflags} \
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
install_ut
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/include/sfio \
$RPM_BUILD_ROOT%{l_prefix}/lib
%{l_shtool} install -c -m 644 \
include/* $RPM_BUILD_ROOT%{l_prefix}/include/sfio/
%{l_shtool} install -c -m 644 \
lib/* $RPM_BUILD_ROOT%{l_prefix}/lib/
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files

Loading…
Cancel
Save