File lzma.spec of Package lzma
#
# spec file for package lzma (Version 4.32.5)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# This is needed for building in new- and old-style SUSE distributions:
# norootforbuild
# neededforbuild gcc-c++ libstdc++-devel
Name: lzma
# Replace "BuildRequires:" with "# neededforbuild" above for building
# this package in older SuSE distros like SLES9 (9.1) and SLES8 (8.1)
Summary: A Program for Compressing Files
Version: 4.32.5
Release: 2
Group: Productivity/Archiving/Compression
License: GPL v2 or later
Url: http://tukaani.org/lzma/
Source: %{name}-%{version}.tar.gz
Patch: %{name}-%{version}.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
lzma is a very powerful program for compressing files.
* Average compression ratio of LZMA is about 30% better than that of
gzip, and 15% better than that of bzip2.
* Decompression speed is only little slower than that of gzip, being
two to five times faster than bzip2.
* In fast mode, compresses faster than bzip2 with a comparable
compression ratio.
* Achieving the best compression ratios takes four to even twelve
times longer than with bzip2. However. this doesn't affect
decompressing speed.
* Very similar command line interface than what gzip and bzip2 have.
Authors:
--------
Igor Pavlov
Ville Koskinen
Lasse Collin <lasse.collin@tukaani.org>
%package -n liblzmadec0
License: LGPL v2.1 or later
Summary: LZMA decoder library
Group: System/Libraries
Provides: liblzmadec-0 = %version
Obsoletes: liblzmadec-0 < %version
%description -n liblzmadec0
Decoding library for LZMA
Authors:
--------
Igor Pavlov
Ville Koskinen
Lasse Collin <lasse.collin@tukaani.org>
%package devel
License: LGPL v2.1 or later
Summary: LZMA decoder library
Group: Development/Libraries/C and C++
Requires: liblzmadec0 = %{version}
%description devel
LZMA decoder library
Authors:
--------
Igor Pavlov
Ville Koskinen
Lasse Collin <lasse.collin@tukaani.org>
%prep
%setup -q
%patch
%build
%configure
make %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
#empty dependency_libs
rm -f %{buildroot}%{_libdir}/*.la
# Reallly old rpm versions do not understand %check:
%if 0%{?_package_version} > 0
%check
%endif
make check
if objdump -R %{buildroot}/%{_bindir}/* 2>&1 >/dev/null |
grep 'not a dynamic object'; then
exit 1
fi
%clean
rm -fr $RPM_BUILD_ROOT
%post -n liblzmadec0 -p /sbin/ldconfig
%postun -n liblzmadec0 -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_bindir}/*
%{_mandir}/man?/*
%files -n liblzmadec0
%defattr(-, root, root)
%{_libdir}/lib*.so.0*
%files devel
%defattr(-, root, root)
%{_includedir}/*.h
%{_libdir}/lib*.so
%{_libdir}/lib*.*a
%changelog