SPECS: lzma.spec - merge -libs and -static packages from AC-branch

glen glen at pld-linux.org
Mon Oct 30 22:27:23 CET 2006


Author: glen                         Date: Mon Oct 30 21:27:23 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- merge -libs and -static packages from AC-branch

---- Files affected:
SPECS:
   lzma.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/lzma.spec
diff -u SPECS/lzma.spec:1.18 SPECS/lzma.spec:1.19
--- SPECS/lzma.spec:1.18	Mon Oct 30 21:37:17 2006
+++ SPECS/lzma.spec	Mon Oct 30 22:27:18 2006
@@ -1,20 +1,20 @@
 # $Revision$, $Date$
-# TODO
-# - devel contains shared library. move to -static.
 Summary:	LZMA Encoder/Decoder
 Summary(pl):	Koder/Dekoder LZMA
 Name:		lzma
 Version:	4.43
-Release:	1
+Release:	2
 License:	CPL/LGPL
 Group:		Applications/Archiving
 Source0:	http://dl.sourceforge.net/sevenzip/%{name}443.tar.bz2
 # Source0-md5:	c4e1b467184c7cffd4371c74df2baf0f
 Patch0:		%{name}-quiet.patch
 Patch1:		%{name}427_zlib.patch
+Patch2:		%{name}-shared.patch
 URL:		http://www.7-zip.org/sdk.html
 BuildRequires:	gcc >= 5:3.4.0
 BuildRequires:	libstdc++-devel
+# does not need -libs, due apps being not linked with shared lib
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -53,10 +53,19 @@
 - Mały rozmiar kodu dekompresującego: 2-8 KB (w zależności od opcji
   optymalizacji).
 
+%package libs
+Summary:	LZMA shared library
+Summary(pl):	Biblioteka LZMA
+Group:		Libraries
+
+%description libs
+LZMA shared library
+
 %package devel
 Summary:	LZMA library
 Summary(pl):	Biblioteka LZMA
 Group:		Development/Libraries
+Requires:	%{name}-libs = %{version}-%{release}
 
 %description devel
 LZMA Library.
@@ -64,10 +73,20 @@
 %description devel -l pl
 Biblioteka LZMA.
 
+%package static
+Summary:	LZMA static library
+Summary(pl):	Biblioteka LZMA
+Group:		Development/Libraries
+# does not need -devel due it containing only library.
+
+%description static
+Static LZMA Library.
+
 %prep
 %setup -q -c
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 cd C/7zip/Compress/LZMA_Alone
@@ -110,17 +129,30 @@
 
 install C/7zip/Compress/LZMA_Alone/lzma $RPM_BUILD_ROOT%{_bindir}
 install C/7zip/Compress/LZMA_Lib/liblzma.a $RPM_BUILD_ROOT%{_libdir}
+install C/7zip/Compress/LZMA_Lib/liblzma.so.*.*.* $RPM_BUILD_ROOT%{_libdir}
+ln -s $(cd C/7zip/Compress/LZMA_Lib; echo liblzma.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/liblzma.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	libs -p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc history.txt lzma.txt
 %attr(755,root,root) %{_bindir}/*
 
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/liblzma.so.*.*
+
 %files devel
 %defattr(644,root,root,755)
+%{_libdir}/liblzma.so
+
+%files static
+%defattr(644,root,root,755)
 %{_libdir}/liblzma.a
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -129,6 +161,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2006/10/30 21:27:18  glen
+- merge -libs and -static packages from AC-branch
+
 Revision 1.18  2006/10/30 20:37:17  glen
 - add todo
 
================================================================

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



More information about the pld-cvs-commit mailing list