cpio/cpio.spec

changeset 613
c56570cdd629
parent 612
b63dd3965ecb
child 614
dd4810b9233b
equal deleted inserted replaced
0:51c68a2fe8d7 1:4fa0ede78f86
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: BASE 31 Class: BASE
32 Group: Archiver 32 Group: Archiver
33 License: GPL 33 License: GPL
34 Version: 2.11 34 Version: 2.11
35 Release: 20100311 35 Release: 20120800
36 36
37 # list of sources 37 # list of sources
38 Source0: ftp://ftp.gnu.org/pub/gnu/cpio/cpio-%{version}.tar.gz 38 Source0: ftp://ftp.gnu.org/pub/gnu/cpio/cpio-%{version}.tar.gz
39 Patch0: cpio.patch 39 Patch0: cpio.patch
40 40
58 %prep 58 %prep
59 %setup -q 59 %setup -q
60 %patch -p0 60 %patch -p0
61 61
62 %build 62 %build
63 case "%{l_platform -t}" in
64 *-sunos5.10 )
65 loclibs="-lget"
66 ( echo "The libc(3) distributed with Solaris 10 does not provide the getdelim(3)"
67 echo "and getline(3) nonstandard C functions needed by this package. Prepare"
68 echo "for build failure or install the optional libget(3) package as a stopgap."
69 ) | %{l_rpmtool} msg -b -t warn
70 ;;
71 esac
63 CC="%{l_cc}" \ 72 CC="%{l_cc}" \
64 CFLAGS="%{l_cflags -O}" \ 73 CFLAGS="%{l_cflags -O}" \
74 LIBS="$loclibs" \
65 GREP="grep" \ 75 GREP="grep" \
66 ./configure \ 76 ./configure \
67 --prefix=%{l_prefix} \ 77 --prefix=%{l_prefix} \
68 --datarootdir=%{l_prefix} \ 78 --datarootdir=%{l_prefix} \
69 --libexecdir=%{l_prefix}/libexec/cpio 79 --libexecdir=%{l_prefix}/libexec/cpio
70 %{l_make} %{l_mflags -O} 80 %{l_make} %{l_mflags -O}
71 81
72 %install 82 %install
73 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 83 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
74 rm -rf $RPM_BUILD_ROOT%{l_prefix}/locale 84 rm -rf $RPM_BUILD_ROOT%{l_prefix}/locale
75 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir 85 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
86 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias
76 mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/mt.1 \ 87 mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/mt.1 \
77 $RPM_BUILD_ROOT%{l_prefix}/man/man1/rmt.1 88 $RPM_BUILD_ROOT%{l_prefix}/man/man1/rmt.1
78 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 89 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
79 strip $RPM_BUILD_ROOT%{l_prefix}/libexec/cpio/* 2>/dev/null || true 90 strip $RPM_BUILD_ROOT%{l_prefix}/libexec/cpio/* 2>/dev/null || true
80 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 91 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

mercurial