Author: glen Date: Mon Oct 30 21:11:02 2006 GMT Module: SPECS Tag: AC-branch ---- Log message: - created -libs and -static
---- Files affected: SPECS: lzma.spec (1.1.2.3 -> 1.1.2.4) ---- Diffs: ================================================================ Index: SPECS/lzma.spec diff -u SPECS/lzma.spec:1.1.2.3 SPECS/lzma.spec:1.1.2.4 --- SPECS/lzma.spec:1.1.2.3 Mon Oct 30 21:42:29 2006 +++ SPECS/lzma.spec Mon Oct 30 22:10:57 2006 @@ -1,17 +1,16 @@ # $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: libstdc++-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -52,6 +51,14 @@ - 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 @@ -63,10 +70,19 @@ %description devel -l pl Biblioteka LZMA. +%package static +Summary: LZMA static library +Summary(pl): Biblioteka LZMA +Group: Development/Libraries + +%description static +Static LZMA Library. + %prep %setup -q -c %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build cd C/7zip/Compress/LZMA_Alone @@ -109,17 +125,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"`) @@ -128,6 +157,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.1.2.4 2006/10/30 21:10:57 glen +- created -libs and -static + Revision 1.1.2.3 2006/10/30 20:42:29 glen - merged changes from HEAD (includes liblzma.a now) ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/lzma.spec?r1=1.1.2.3&r2=1.1.2.4&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
