SPECS: lzma.spec - add LZMA Library http://www.beyondlogic.org/nb5...

areq areq at pld-linux.org
Tue Sep 6 00:03:29 CEST 2005


Author: areq                         Date: Mon Sep  5 22:03:29 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add LZMA Library http://www.beyondlogic.org/nb5/lzma427_zlib.patch

---- Files affected:
SPECS:
   lzma.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/lzma.spec
diff -u SPECS/lzma.spec:1.6 SPECS/lzma.spec:1.7
--- SPECS/lzma.spec:1.6	Mon Aug 15 15:37:38 2005
+++ SPECS/lzma.spec	Tue Sep  6 00:03:20 2005
@@ -9,6 +9,7 @@
 Source0:	http://dl.sourceforge.net/sevenzip/%{name}427.tar.bz2
 # Source0-md5:	8e99976772e28c6fa3c5d9a2fb82ca50
 Patch0:		%{name}-quiet.patch
+Patch1:		%{name}427_zlib.patch
 URL:		http://www.7-zip.org/sdk.html
 BuildRequires:	libstdc++-devel
 BuildRequires:	gcc >= 5:3.4.0
@@ -48,9 +49,17 @@
 - Mały rozmiar kodu dekompresującego: 2-8 KB (w zależności od opcji
   optymalizacji).
 
+%package devel
+Summary:        LZMA Library
+Group:          Development/Libraries
+
+%description devel
+LZMA Library
+
 %prep
 %setup -q -c
 %patch0 -p1
+%patch1 -p1
 
 %build
 cd SRC/7zip/Compress/LZMA_Alone
@@ -75,11 +84,15 @@
 	CFLAGS="%{rpmcflags} -fprofile-use -c -I ../../.." \
 	LDFLAGS="%{rpmldflags}"
 
+cd ../LZMA_Lib
+%{__make}
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}}
 
 install SRC/7zip/Compress/LZMA_Alone/lzma $RPM_BUILD_ROOT%{_bindir}
+install SRC/7zip/Compress/LZMA_Lib/liblzma.a $RPM_BUILD_ROOT%{_libdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -89,12 +102,19 @@
 %doc history.txt lzma.txt
 %attr(755,root,root) %{_bindir}/*
 
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/liblzma.a
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2005/09/05 22:03:20  areq
+- add LZMA Library http://www.beyondlogic.org/nb5/lzma427_zlib.patch
+
 Revision 1.6  2005/08/15 13:37:38  areq
 - 4.27
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/lzma.spec?r1=1.6&r2=1.7&f=u




More information about the pld-cvs-commit mailing list