lzo/lzo.spec
Marcus Meissner d00ef480b7 Accepting request 239294 from home:darix:branches:Base:System
- update to 2.08 (bnc#883947) CVE-2014-4607
  - Updated the Autoconf scripts to fix some reported build
    problems.
  - Added CMake build support.
  - Fixed lzo_init() on big-endian architectures like Sparc.
- additional changes in 2.07
  * Fixed a potential integer overflow condition in the "safe"
    decompressor variants which could result in a possible buffer
    overrun when processing maliciously crafted compressed input
    data.
    Fortunately this issue only affects 32-bit systems and also can
    only happen if you use uncommonly huge buffer sizes where you
    have to decompress more than 16 MiB (> 2^24 bytes) untrusted
    compressed bytes within a single function call, so the
    practical implications are limited.
    POTENTIAL SECURITY ISSUE. CVE-2014-4607.
  * Removed support for ancient configurations like 16-bit "huge"
    pointers - LZO now requires a flat 32-bit or 64-bit memory
    model.
  * Assorted cleanups.

OBS-URL: https://build.opensuse.org/request/show/239294
OBS-URL: https://build.opensuse.org/package/show/Base:System/lzo?expand=0&rev=24
2014-07-02 11:45:01 +00:00

144 lines
3.9 KiB
RPMSpec

#
# spec file for package lzo
#
# Copyright (c) 2013 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
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: lzo
Url: http://www.oberhumer.com/opensource/lzo/
Version: 2.08
Release: 0
Source: http://www.oberhumer.com/opensource/%{name}/download/%{name}-%{version}.tar.gz
Source2: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
# bug437293
%ifarch ppc64
Obsoletes: lzo-64bit
%endif
#
Summary: A Real-Time Data Compression Library
License: GPL-2.0+
Group: Development/Libraries/C and C++
%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
Group: Development/Libraries/C and C++
Provides: lzo = %{version}-%{release}
Obsoletes: lzo < %{version}
# bug437293
%ifarch ppc64
Obsoletes: lzo-64bit
%endif
#
%description -n liblzo2-2
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>
%package devel
Requires: %{library_package} = %{version}
Summary: Development files for lzo
Group: Development/Languages/C and C++
# bug437293
%ifarch ppc64
Obsoletes: lzo-devel-64bit
%endif
#
%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
%setup -q
%build
export CFLAGS="%optflags -fvisibility=hidden"
%configure --enable-shared \
--disable-static \
--disable-silent-rules \
--docdir=%{_docdir}/%{name}-devel
#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
%{__make} %{?_smp_mflags}
%check
%{__make} check test
%install
%makeinstall
%{__rm} -v %{buildroot}%{_libdir}/liblzo2.la
%clean
%{__rm} -rf %{buildroot}
%post -n %{library_package} -p /sbin/ldconfig
%postun -n %{library_package} -p /sbin/ldconfig
%files -n %{library_package}
%defattr(-,root,root)
%{_libdir}/liblzo2.so.*
%files devel
%defattr (-,root,root)
%doc AUTHORS BUGS COPYING NEWS README THANKS
%doc doc/* util/*
%{_libdir}/liblzo2.so
%_includedir/lzo
%changelog