From 47330b693a3b1a21f4c1316f0ccfe32110383876ecaad1f783d475200208ca42 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 25 Jul 2014 07:31:57 +0000 Subject: [PATCH] Accepting request 242230 from home:dsterba:branches:Base:System SR: the static package should not be used normally, but can be used by standalone rescue utilities (planned for btrfsprogs). - enable lzo-devel-static package build OBS-URL: https://build.opensuse.org/request/show/242230 OBS-URL: https://build.opensuse.org/package/show/Base:System/lzo?expand=0&rev=26 --- lzo.changes | 5 +++++ lzo.spec | 27 +++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/lzo.changes b/lzo.changes index c078f4d..38fc576 100644 --- a/lzo.changes +++ b/lzo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 24 18:07:43 CEST 2014 - dsterba@suse.cz + +- enable lzo-devel-static package build + ------------------------------------------------------------------- Wed Jul 2 11:35:21 UTC 2014 - mrueckert@suse.de diff --git a/lzo.spec b/lzo.spec index eeaebed..deb4126 100644 --- a/lzo.spec +++ b/lzo.spec @@ -1,7 +1,7 @@ # # spec file for package lzo # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -91,6 +91,25 @@ compression ratio. +Authors: +-------- + Markus Franz Xaver Johannes Oberhumer + +%package devel-static +Requires: lzo-devel = %{version} +Provides: lzo-devel:%{_libdir}/liblzo.a +Summary: Development files for lzo +Group: Development/Languages/C and C++ + +%description devel-static +LZO is a portable lossless data compression library written in ANSI C. +It offers pretty fast compression and very fast decompression. +Decompression requires no memory. LZO is suitable for data +de-/compression in real-time. This means it favours speed over +compression ratio. + + + Authors: -------- Markus Franz Xaver Johannes Oberhumer @@ -101,7 +120,7 @@ Authors: %build export CFLAGS="%optflags -fvisibility=hidden" %configure --enable-shared \ - --disable-static \ + --enable-static \ --disable-silent-rules \ --docdir=%{_docdir}/%{name}-devel @@ -140,4 +159,8 @@ echo '#define __LZO_EXPORT1 __attribute__ ((visibility ("default")))' >> config. %{_libdir}/liblzo2.so %_includedir/lzo +%files devel-static +%defattr (-,root,root) +%{_libdir}/liblzo2.a + %changelog