lzo/lzo.spec

156 lines
4.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package lzo (Version 2.03)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: lzo
Url: http://www.oberhumer.com/opensource/lzo/
Version: 2.03
Release: 2
Group: Development/Libraries/C and C++
Source: lzo-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
Summary: A Real-Time Data Compression Library
License: GPL v2 only
%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
%define debug_package_requires %{library_package} = %{version}-%{release}
%package -n liblzo2-2
License: GPL v2 only
Group: Development/Libraries/C and C++
Summary: A Real-Time Data Compression Library
Provides: lzo = %{version}-%{release}
Obsoletes: lzo < %{version}
%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
License: GPL v2 only
Group: Development/Languages/C and C++
Requires: %{library_package} = %{version}
Summary: Development files for lzo
%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
%configure --enable-shared --disable-static --libdir=/%{_lib}
%{__make}
%check
%{__make} check test
%install
%makeinstall
%{__rm} -v %{buildroot}/%{_lib}/liblzo2.la
#
%{__install} -d -m 0755 %{buildroot}%{_libdir}
#%{__mv} -v %{buildroot}{/%{_lib},%{_libdir}}/liblzo2.so
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/liblzo2.so) %{buildroot}%{_libdir}/liblzo2.so
%{__rm} -v %{buildroot}/%{_lib}/liblzo2.so
%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)
/%{_lib}/liblzo2.so.*
%files devel
%defattr (-,root,root)
%doc AUTHORS BUGS COPYING NEWS README THANKS
%doc doc/* util/*
%{_libdir}/liblzo2.so
%_includedir/lzo
%changelog
* Fri Aug 22 2008 mrueckert@suse.de
- update to 2.03
featuring major speedups for 64-bit architectures like AMD64,
minor overall speedups, portability enhancements for LLP64
programming models, and lots of other small improvements
- dropped lzo-noexec.patch: fix included upstream
- split out liblzo2-2
- move the lib to /%%_lib
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Mon Feb 25 2008 crrodriguez@suse.de
- run ldconfig
* Mon Feb 12 2007 meissner@suse.de
- added marker for nonexec stack/heap to i386 assembler.
* Wed Sep 27 2006 poeml@suse.de
- add BuildRequires: gcc-c++ for building on Fedora
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 mrueckert@suse.de
- update to version 2.02
* Mon Sep 26 2005 mls@suse.de
- make devel package require base package
* Tue Jun 28 2005 cthiel@suse.de
- update to version 2.01
* Thu Jun 02 2005 hvogel@suse.de
- update to version 2.0
* Fri Jan 09 2004 adrian@suse.de
- move devel files to -devel package
* Wed Aug 20 2003 cwh@suse.de
- initial release