2007-01-15 23:24:27 +00:00
|
|
|
#
|
2011-05-09 07:34:00 +00:00
|
|
|
# spec file for package lzo
|
2007-01-15 23:24:27 +00:00
|
|
|
#
|
2024-06-02 10:01:36 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-15 23:24:27 +00:00
|
|
|
#
|
2008-08-22 18:07:18 +00: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.
|
|
|
|
|
2019-04-26 11:37:49 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:24:27 +00:00
|
|
|
#
|
|
|
|
|
2008-02-25 16:29:09 +00:00
|
|
|
|
2018-07-31 07:11:04 +00:00
|
|
|
%define library_package liblzo2-2
|
2007-01-15 23:24:27 +00:00
|
|
|
Name: lzo
|
2017-04-03 06:48:21 +00:00
|
|
|
Version: 2.10
|
2012-02-16 19:28:46 +00:00
|
|
|
Release: 0
|
2015-02-25 08:08:15 +00:00
|
|
|
Summary: A Real-Time Data Compression Library
|
2018-07-31 07:11:04 +00:00
|
|
|
License: GPL-2.0-or-later
|
2015-02-25 08:08:15 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2021-01-26 08:34:17 +00:00
|
|
|
URL: https://www.oberhumer.com/opensource/lzo/
|
|
|
|
Source: https://www.oberhumer.com/opensource/%{name}/download/%{name}-%{version}.tar.gz
|
2010-01-11 15:25:36 +00:00
|
|
|
Source2: baselibs.conf
|
2023-03-17 16:28:33 +00:00
|
|
|
Patch1: https://src.fedoraproject.org/rpms/lzo/raw/main/f/lzo-2.08-rhbz1309225.patch
|
2007-01-15 23:24:27 +00:00
|
|
|
BuildRequires: gcc-c++
|
2017-11-27 17:06:01 +00:00
|
|
|
BuildRequires: pkgconfig
|
2023-03-08 15:55:51 +00:00
|
|
|
%{?suse_build_hwcaps_libs}
|
2008-02-25 16:29:09 +00:00
|
|
|
|
2008-08-22 18:07:18 +00:00
|
|
|
%description
|
|
|
|
LZO is a portable lossless data compression library written in ANSI C.
|
|
|
|
Decompression requires no memory. LZO is suitable for data compression
|
|
|
|
and decompression in real-time. This means it favors speed over
|
|
|
|
compression ratio.
|
|
|
|
|
2018-07-31 07:11:04 +00:00
|
|
|
%package -n %{library_package}
|
2008-08-22 18:07:18 +00:00
|
|
|
Summary: A Real-Time Data Compression Library
|
2018-08-08 19:20:11 +00:00
|
|
|
Group: System/Libraries
|
2008-08-22 18:07:18 +00:00
|
|
|
Provides: lzo = %{version}-%{release}
|
|
|
|
Obsoletes: lzo < %{version}
|
2007-01-15 23:24:27 +00:00
|
|
|
|
2018-07-31 07:11:04 +00:00
|
|
|
%description -n %{library_package}
|
2007-01-15 23:24:27 +00:00
|
|
|
LZO is a portable lossless data compression library written in ANSI C.
|
|
|
|
Decompression requires no memory. LZO is suitable for data compression
|
|
|
|
and decompression in real-time. This means it favors speed over
|
|
|
|
compression ratio.
|
|
|
|
|
2008-08-22 18:07:18 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for lzo
|
2012-02-16 19:28:46 +00:00
|
|
|
Group: Development/Languages/C and C++
|
2015-02-25 08:08:15 +00:00
|
|
|
Requires: %{library_package} = %{version}
|
2008-08-22 18:07:18 +00:00
|
|
|
|
2007-01-15 23:24:27 +00:00
|
|
|
%description devel
|
|
|
|
LZO is a portable lossless data compression library written in ANSI C.
|
|
|
|
Decompression requires no memory. LZO is suitable for data
|
|
|
|
de-/compression in real-time. This means it favours speed over
|
|
|
|
compression ratio.
|
|
|
|
|
2014-07-25 07:31:57 +00:00
|
|
|
%package devel-static
|
|
|
|
Summary: Development files for lzo
|
|
|
|
Group: Development/Languages/C and C++
|
2015-02-25 08:08:15 +00:00
|
|
|
Requires: lzo-devel = %{version}
|
|
|
|
Provides: lzo-devel:%{_libdir}/liblzo.a
|
2014-07-25 07:31:57 +00:00
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
LZO is a portable lossless data compression library written in ANSI C.
|
|
|
|
Decompression requires no memory. LZO is suitable for data
|
|
|
|
de-/compression in real-time. This means it favours speed over
|
|
|
|
compression ratio.
|
|
|
|
|
2007-01-15 23:24:27 +00:00
|
|
|
%prep
|
2024-06-02 10:01:36 +00:00
|
|
|
%autosetup -p1
|
2010-11-02 12:18:05 +00:00
|
|
|
|
2007-01-15 23:24:27 +00:00
|
|
|
%build
|
2019-04-26 11:37:49 +00:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2021-01-26 08:34:17 +00:00
|
|
|
export CFLAGS="%{optflags} -fvisibility=hidden"
|
2011-05-06 14:02:59 +00:00
|
|
|
%configure --enable-shared \
|
2014-07-25 07:31:57 +00:00
|
|
|
--enable-static \
|
2011-05-06 14:02:59 +00:00
|
|
|
--disable-silent-rules \
|
|
|
|
--docdir=%{_docdir}/%{name}-devel
|
2010-10-31 16:45:24 +00: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
|
|
|
|
|
2015-02-25 08:08:15 +00:00
|
|
|
make %{?_smp_mflags}
|
2008-02-25 16:29:09 +00:00
|
|
|
|
|
|
|
%check
|
2015-02-25 08:08:15 +00:00
|
|
|
make %{?_smp_mflags} check test
|
2007-01-15 23:24:27 +00:00
|
|
|
|
|
|
|
%install
|
2018-07-31 07:11:04 +00:00
|
|
|
%make_install
|
2015-02-25 08:08:15 +00:00
|
|
|
rm -v %{buildroot}%{_libdir}/liblzo2.la
|
2018-07-31 07:11:04 +00:00
|
|
|
rm -v %{buildroot}%{_docdir}/%{name}-devel/COPYING
|
2007-01-15 23:24:27 +00:00
|
|
|
|
2008-08-22 18:07:18 +00:00
|
|
|
%post -n %{library_package} -p /sbin/ldconfig
|
|
|
|
%postun -n %{library_package} -p /sbin/ldconfig
|
2008-02-25 16:29:09 +00:00
|
|
|
|
2008-08-22 18:07:18 +00:00
|
|
|
%files -n %{library_package}
|
2018-07-31 07:11:04 +00:00
|
|
|
%license COPYING
|
2012-02-16 19:28:46 +00:00
|
|
|
%{_libdir}/liblzo2.so.*
|
2007-01-15 23:24:27 +00:00
|
|
|
|
|
|
|
%files devel
|
2018-07-31 07:11:04 +00:00
|
|
|
%doc AUTHORS BUGS NEWS README THANKS
|
2008-08-22 18:07:18 +00:00
|
|
|
%doc doc/* util/*
|
|
|
|
%{_libdir}/liblzo2.so
|
2015-02-25 08:08:15 +00:00
|
|
|
%{_includedir}/lzo
|
2017-04-03 06:48:21 +00:00
|
|
|
%{_libdir}/pkgconfig/lzo2.pc
|
2007-01-15 23:24:27 +00:00
|
|
|
|
2014-07-25 07:31:57 +00:00
|
|
|
%files devel-static
|
|
|
|
%{_libdir}/liblzo2.a
|
|
|
|
|
2008-02-25 16:29:09 +00:00
|
|
|
%changelog
|