]> git.pld-linux.org Git - packages/bzip2.git/blobdiff - bzip2.spec
s-/usr/sbin-%{_sbindir}-
[packages/bzip2.git] / bzip2.spec
index b1a2004976b199622cda070f3a18cbcb67d1f536..c97a11e93fd7f106b273abcabba046c30d3ed3a1 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Extremely powerful file compression utility
 Summary(pl):   Kompresor plików bzip2
 Name:          bzip2
 Version:       0.9.0c
-Release:       2
+Release:       3
 Copyright:     GPL
 Group:         Utilities/Archiving
 Group(pl):     Narzêdzia/Archiwizacja
@@ -65,28 +65,28 @@ make CFLAGS="$RPM_OPT_FLAGS"
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/usr/{bin,lib,include,man/man1}
 
-install -s {bzip2,bzip2recover} $RPM_BUILD_ROOT/usr/bin
+install -s {bzip2,bzip2recover} $RPM_BUILD_ROOT%{_bindir}
 
-ln -sf bzip2 $RPM_BUILD_ROOT/usr/bin/bunzip2
-ln -sf bzip2 $RPM_BUILD_ROOT/usr/bin/bzcat
+ln -sf bzip2 $RPM_BUILD_ROOT%{_bindir}/bunzip2
+ln -sf bzip2 $RPM_BUILD_ROOT%{_bindir}/bzcat
 
-install bzip2.1 $RPM_BUILD_ROOT/usr/man/man1
-install bzlib.h $RPM_BUILD_ROOT/usr/include
+install bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1
+install bzlib.h $RPM_BUILD_ROOT%{_includedir}
 
-echo .so bzip2.1 > $RPM_BUILD_ROOT/usr/man/man1/bunzip2.1
-echo .so bzip2.1 > $RPM_BUILD_ROOT/usr/man/man1/bzcat.1
-echo .so bzip2.1 > $RPM_BUILD_ROOT/usr/man/man1/bzip2recover.1
+echo .so bzip2.1 > $RPM_BUILD_ROOT%{_mandir}/man1/bunzip2.1
+echo .so bzip2.1 > $RPM_BUILD_ROOT%{_mandir}/man1/bzcat.1
+echo .so bzip2.1 > $RPM_BUILD_ROOT%{_mandir}/man1/bzip2recover.1
 
-cat > $RPM_BUILD_ROOT/usr/bin/bzless <<EOF
+cat > $RPM_BUILD_ROOT%{_bindir}/bzless <<EOF
 #!/bin/sh
-/usr/bin/bunzip2 -c "\$@" | /usr/bin/less
+%{_bindir}/bunzip2 -c "\$@" | /usr/bin/less
 EOF
 
-install lib*so.*.* lib*.a $RPM_BUILD_ROOT/usr/lib
-ln -sf libbz2.so.0.9.0 $RPM_BUILD_ROOT/usr/lib/libbz2.so
-strip --strip-unneeded $RPM_BUILD_ROOT/usr/lib/lib*so.*.*
+install lib*so.*.* lib*.a $RPM_BUILD_ROOT%{_libdir}
+ln -sf libbz2.so.0.9.0 $RPM_BUILD_ROOT%{_libdir}/libbz2.so
+strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*so.*.*
 
-gzip -9nf $RPM_BUILD_ROOT/usr/man/man1/*
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
@@ -95,18 +95,18 @@ gzip -9nf $RPM_BUILD_ROOT/usr/man/man1/*
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%attr(755,root,root) /usr/lib/lib*.so.*.*
-%attr(755,root,root) /usr/bin/*
-%attr(644,root,root) /usr/man/man1/*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%attr(755,root,root) %{_bindir}/*
+%attr(644,root,root) %{_mandir}/man1/*
 
 %files devel
 %defattr(644,root,root,755)
 %doc *.html
-%attr(755,root,root) /usr/lib/lib*.so
-/usr/include/*.h
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_includedir}/*.h
 
 %files static
-%attr(644,root,root) /usr/lib/lib*.a
+%attr(644,root,root) %{_libdir}/lib*.a
 
 %changelog
 * Sun Mar 14 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
This page took 0.071089 seconds and 4 git commands to generate.