diff -r b63dd3965ecb -r c56570cdd629 cpio/cpio.spec --- a/cpio/cpio.spec Tue Aug 28 18:53:10 2012 +0200 +++ b/cpio/cpio.spec Tue Aug 28 18:53:15 2012 +0200 @@ -32,7 +32,7 @@ Group: Archiver License: GPL Version: 2.11 -Release: 20100311 +Release: 20120800 # list of sources Source0: ftp://ftp.gnu.org/pub/gnu/cpio/cpio-%{version}.tar.gz @@ -60,8 +60,18 @@ %patch -p0 %build + case "%{l_platform -t}" in + *-sunos5.10 ) + loclibs="-lget" + ( echo "The libc(3) distributed with Solaris 10 does not provide the getdelim(3)" + echo "and getline(3) nonstandard C functions needed by this package. Prepare" + echo "for build failure or install the optional libget(3) package as a stopgap." + ) | %{l_rpmtool} msg -b -t warn + ;; + esac CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ + LIBS="$loclibs" \ GREP="grep" \ ./configure \ --prefix=%{l_prefix} \ @@ -70,9 +80,10 @@ %{l_make} %{l_mflags -O} %install - %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" rm -rf $RPM_BUILD_ROOT%{l_prefix}/locale rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/mt.1 \ $RPM_BUILD_ROOT%{l_prefix}/man/man1/rmt.1 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true