]> git.pld-linux.org Git - packages/cpio.git/commitdiff
- resurect Prereq: /sbin/install-info
authorArtur Frysiak <artur@frysiak.net>
Tue, 1 Jun 1999 14:47:41 +0000 (14:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- used %configure macro
- added DESTDIR patch
- removed mt man page

Changed files:
    cpio.spec -> 1.16

cpio.spec

index 577b5561fb0b0c75087fc511872c420afdde72e7..24f2263d751f026b1ee5f93ae9c2cce63ea055f7 100644 (file)
--- a/cpio.spec
+++ b/cpio.spec
@@ -16,8 +16,12 @@ Patch2:              cpio-svr4compat.patch
 Patch3:                cpio-info.patch
 Patch4:                cpio-glibc21.patch
 Patch5:                cpio-longlongdev.patch
+Patch6:                cpio-DESTDIR.patch
+Prereq:                /sbin/install-info
 Buildroot:     /tmp/%{name}-%{version}-root
 
+%define                _exec_prefix    /
+
 %description
 cpio copies files into or out of a cpio or tar archive, which is a
 file that contains other files plus information about them, such as
@@ -61,24 +65,19 @@ disk 
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %build
-chmod u+w configure
-autoconf
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-    ./configure \
-       --prefix=%{_prefix} \
-       --bindir=/bin \
-       --libexecdir=/sbin %{_target_platform}
+LDFLAGS="-s"; export LDFLAGS 
+%configure 
+
 make
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 make install \
-       prefix=$RPM_BUILD_ROOT%{_prefix} \
-       bindir=$RPM_BUILD_ROOT/bin \
-       libexecdir=$RPM_BUILD_ROOT/sbin
+       DESTDIR=$RPM_BUILD_ROOT 
        
 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/cpio*,%{_mandir}/man1/*} \
        README
@@ -99,7 +98,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc README.gz
 %attr(755,root,root) /bin/cpio
 %{_infodir}/cpio*
-%{_mandir}/man1/*
+%{_mandir}/man1/cpio.*
 
 %changelog
 * Sat May 29 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
This page took 0.146886 seconds and 4 git commands to generate.