1.1 --- a/cpio/cpio.spec Tue Aug 28 18:53:10 2012 +0200 1.2 +++ b/cpio/cpio.spec Tue Aug 28 18:53:15 2012 +0200 1.3 @@ -32,7 +32,7 @@ 1.4 Group: Archiver 1.5 License: GPL 1.6 Version: 2.11 1.7 -Release: 20100311 1.8 +Release: 20120800 1.9 1.10 # list of sources 1.11 Source0: ftp://ftp.gnu.org/pub/gnu/cpio/cpio-%{version}.tar.gz 1.12 @@ -60,8 +60,18 @@ 1.13 %patch -p0 1.14 1.15 %build 1.16 + case "%{l_platform -t}" in 1.17 + *-sunos5.10 ) 1.18 + loclibs="-lget" 1.19 + ( echo "The libc(3) distributed with Solaris 10 does not provide the getdelim(3)" 1.20 + echo "and getline(3) nonstandard C functions needed by this package. Prepare" 1.21 + echo "for build failure or install the optional libget(3) package as a stopgap." 1.22 + ) | %{l_rpmtool} msg -b -t warn 1.23 + ;; 1.24 + esac 1.25 CC="%{l_cc}" \ 1.26 CFLAGS="%{l_cflags -O}" \ 1.27 + LIBS="$loclibs" \ 1.28 GREP="grep" \ 1.29 ./configure \ 1.30 --prefix=%{l_prefix} \ 1.31 @@ -70,9 +80,10 @@ 1.32 %{l_make} %{l_mflags -O} 1.33 1.34 %install 1.35 - %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 1.36 + %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" 1.37 rm -rf $RPM_BUILD_ROOT%{l_prefix}/locale 1.38 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir 1.39 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias 1.40 mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/mt.1 \ 1.41 $RPM_BUILD_ROOT%{l_prefix}/man/man1/rmt.1 1.42 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true