Summary: ucspi-tcp Summary(ja): ucspi-tcp Name: ucspi-tcp Version: 0.88 Release: 1ng1 License: Public Domain Group: System Environment/Daemons URL: http://cr.yp.to/ucspi-tcp.html Source0: http://cr.yp.to/ucspi-tcp/ucspi-tcp-%{version}.tar.gz Patch0: ucspi-tcp-%{version}.nobase.patch Patch1: ucspi-tcp-%{version}.a_record.patch Patch2: http://www.fefe.de/ucspi/ucspi-tcp-%{version}-ipv6.diff17.bz2 Patch3: http://www.org3.net/software/SOURCES/ucspi-tcp-%{version}-ipv6.diff17.patch Patch4: ucspi-tcp-%{version}+v6.ssl.patch Patch100: ucspi-tcp-%{version}.install.patch Buildroot: %{_tmppath}/%{name}-%{version}-root Requires: glibc >= 2.0.6, openssl >= 0.9.7d #Distribution: Vine Linux #Vendor: Project Vine Packager: NOGUCHI Shoji %description tcpserver and tcpclient are easy-to-use command-line tools for building TCP client-server applications. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p0 %patch4 -p1 %patch100 -p1 echo %{_usr} > conf-home echo %__cc $RPM_OPT_FLAGS > conf-cc echo %__cc -s $RPM_OPT_FLAGS > conf-ld %__rm -f *.orig *~ %build %__make %install [ "$RPM_BUILD_ROOT" != "/" ] && %__rm -rf $RPM_BUILD_ROOT %__mkdir_p $RPM_BUILD_ROOT%{_mandir}/ %__cat hier.c | \ %__grep "^ [cdh](" | \ %__sed -e "s/^ \([cdh]\)(\(.*\));/\1,\2/" | \ %__sed -e "s/[\"]//g" | \ %__awk -F "," '{ \ #if($1 == "h") \ #{ print "%attr(" $5 ",root,root) %dir " $2 } \ if($1 == "c") \ { \ if(substr($3,1,9) == "share/man") \ { print "%attr(" $7 ",root,root) " $2 "/" $3 "/" $4 ".gz" } \ else \ { print "%attr(" $7 ",root,root) " $2 "/" $3 "/" $4 } \ } \ #if($1 == "d") \ #{ print "%attr(" $6 ",root,root) %dir " $2 "/" $3 } \ }' | \ %__sed -e "s!auto_home!%{_usr}!" > ucspi-tcp-%{version}.files echo $RPM_BUILD_ROOT%{_usr} > conf-home %__rm auto_*.o install instcheck %__make install instcheck ./install ./instcheck %clean %__rm -rf $RPM_BUILD_ROOT %files -f ucspi-tcp-%{version}.files