2007-01-16 00:24:27 +01:00
|
|
|
#
|
2011-05-09 09:34:00 +02:00
|
|
|
# spec file for package lzo
|
2007-01-16 00:24:27 +01:00
|
|
|
#
|
2012-02-16 20:28:46 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:24:27 +01:00
|
|
|
#
|
2008-08-22 20:07:18 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:24:27 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-02-25 17:29:09 +01:00
|
|
|
|
2007-01-16 00:24:27 +01:00
|
|
|
Name: lzo
|
2008-02-25 17:29:09 +01:00
|
|
|
Url: http://www.oberhumer.com/opensource/lzo/
|
2011-09-26 11:30:55 +02:00
|
|
|
Version: 2.06
|
2012-02-16 20:28:46 +01:00
|
|
|
Release: 0
|
2007-01-16 00:24:27 +01:00
|
|
|
Source: lzo-%{version}.tar.bz2
|
2010-01-11 16:25:36 +01:00
|
|
|
Source2: baselibs.conf
|
2007-01-16 00:24:27 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: gcc-c++
|
2009-01-08 18:47:25 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: lzo-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:24:27 +01:00
|
|
|
Summary: A Real-Time Data Compression Library
|
2012-02-16 20:28:46 +01:00
|
|
|
License: GPL-2.0
|
|
|
|
Group: Development/Libraries/C and C++
|
2008-02-25 17:29:09 +01:00
|
|
|
|
2008-08-22 20:07:18 +02:00
|
|
|
%description
|
|
|
|
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 compression
|
|
|
|
and decompression in real-time. This means it favors speed over
|
|
|
|
compression ratio.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Markus Franz Xaver Johannes Oberhumer <markus@oberhumer.com>
|
|
|
|
|
|
|
|
%define library_package liblzo2-2
|
|
|
|
|
|
|
|
%package -n liblzo2-2
|
|
|
|
Summary: A Real-Time Data Compression Library
|
2012-02-16 20:28:46 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2008-08-22 20:07:18 +02:00
|
|
|
Provides: lzo = %{version}-%{release}
|
|
|
|
Obsoletes: lzo < %{version}
|
2009-01-08 18:47:25 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: lzo-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:24:27 +01:00
|
|
|
|
2008-08-22 20:07:18 +02:00
|
|
|
%description -n liblzo2-2
|
2007-01-16 00:24:27 +01:00
|
|
|
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 compression
|
|
|
|
and decompression in real-time. This means it favors speed over
|
|
|
|
compression ratio.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Markus Franz Xaver Johannes Oberhumer <markus@oberhumer.com>
|
|
|
|
|
2008-08-22 20:07:18 +02:00
|
|
|
%package devel
|
|
|
|
Requires: %{library_package} = %{version}
|
|
|
|
Summary: Development files for lzo
|
2012-02-16 20:28:46 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2009-01-08 18:47:25 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: lzo-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-08-22 20:07:18 +02:00
|
|
|
|
2007-01-16 00:24:27 +01:00
|
|
|
%description devel
|
|
|
|
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 <markus@oberhumer.com>
|
|
|
|
|
|
|
|
%prep
|
2007-02-12 17:00:24 +01:00
|
|
|
%setup -q
|
2010-11-02 13:18:05 +01:00
|
|
|
|
2007-01-16 00:24:27 +01:00
|
|
|
%build
|
2010-10-31 17:45:24 +01:00
|
|
|
export CFLAGS="%optflags -fvisibility=hidden"
|
2011-05-06 16:02:59 +02:00
|
|
|
%configure --enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--docdir=%{_docdir}/%{name}-devel
|
2010-10-31 17:45:24 +01:00
|
|
|
|
|
|
|
#On windows, the build system defines __LZO_EXPORT1 to
|
|
|
|
# __attribute__((dllexport))) which we can abuse to make
|
|
|
|
#use of GCC visibility. ;-)
|
|
|
|
#see http://gcc.gnu.org/wiki/Visibility
|
|
|
|
#If you remove this, you must disable -fvisibility=hidden in CFLAGS!
|
|
|
|
|
|
|
|
echo '#define __LZO_EXPORT1 __attribute__ ((visibility ("default")))' >> config.h
|
|
|
|
|
2010-01-11 16:25:36 +01:00
|
|
|
%{__make} %{?_smp_mflags}
|
2008-02-25 17:29:09 +01:00
|
|
|
|
|
|
|
%check
|
2007-01-16 00:24:27 +01:00
|
|
|
%{__make} check test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
2012-02-16 20:28:46 +01:00
|
|
|
%{__rm} -v %{buildroot}%{_libdir}/liblzo2.la
|
2007-01-16 00:24:27 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
2008-08-22 20:07:18 +02:00
|
|
|
%post -n %{library_package} -p /sbin/ldconfig
|
2008-02-25 17:29:09 +01:00
|
|
|
|
2008-08-22 20:07:18 +02:00
|
|
|
%postun -n %{library_package} -p /sbin/ldconfig
|
2008-02-25 17:29:09 +01:00
|
|
|
|
2008-08-22 20:07:18 +02:00
|
|
|
%files -n %{library_package}
|
|
|
|
%defattr(-,root,root)
|
2012-02-16 20:28:46 +01:00
|
|
|
%{_libdir}/liblzo2.so.*
|
2007-01-16 00:24:27 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr (-,root,root)
|
2008-08-22 20:07:18 +02:00
|
|
|
%doc AUTHORS BUGS COPYING NEWS README THANKS
|
|
|
|
%doc doc/* util/*
|
|
|
|
%{_libdir}/liblzo2.so
|
2007-01-16 00:24:27 +01:00
|
|
|
%_includedir/lzo
|
|
|
|
|
2008-02-25 17:29:09 +01:00
|
|
|
%changelog
|