lzlib/lzlib.spec
Jan Engelhardt e831b2a118 Accepting request 399078 from home:pluskalm:branches:Archiving
- Update to version 1.8:
  * decoder.c (LZd_verify_trailer): Removed test of final code.
  * main.c: Added new option '-a, --trailing-error'.
  * main.c (main): Delete '--output' file if infd is a terminal.
  * main.c (main): Don't use stdin more than once.
  * configure: Avoid warning on some shells when testing for gcc.
  * Makefile.in: Detect the existence of install-info.
  * testsuite/check.sh: A POSIX shell is required to run the tests.
  * testsuite/check.sh: Don't check error messages.
- Move info scriplet to preun

OBS-URL: https://build.opensuse.org/request/show/399078
OBS-URL: https://build.opensuse.org/package/show/Archiving/lzlib?expand=0&rev=14
2016-05-31 11:01:28 +00:00

120 lines
3.7 KiB
RPMSpec

# vim: set ts=4 sw=4 et:
#
# spec file for package lzlib
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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: lzlib
%define lname liblz1
Version: 1.8
Release: 0
Summary: LZMA Compression and Decompression Library
License: GPL-2.0+
Group: Development/Libraries/C and C++
Url: http://www.nongnu.org/lzip/lzlib.html
Source: http://download.savannah.gnu.org/releases/lzip/lzlib/%name-%version.tar.gz
Source2: http://download.savannah.gnu.org/releases/lzip/lzlib/%name-%version.tar.gz.sig
Source3: %name.keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
%description
The lzlib compression library provides in-memory LZMA compression and
decompression functions, including integrity checking of the
decompressed data. The compressed data format used by the library is
the lzip format.
%package -n %lname
Summary: LZMA Compression and Decompression Library
Group: System/Libraries
%description -n %lname
The lzlib compression library provides in-memory LZMA compression and
decompression functions, including integrity checking of the
decompressed data. The compressed data format used by the library is
the lzip format.
%package devel
Summary: LZMA Compression and Decompression Library
Group: Development/Libraries/C and C++
Requires: %lname = %version
Obsoletes: lzlib-devel < %version-%release
Provides: lzlib-devel = %version-%release
%description devel
The lzlib compression library provides in-memory LZMA compression and
decompression functions, including integrity checking of the
decompressed data. The compressed data format used by the library is
the lzip format.
This subpackage contains libraries and header files for developing
applications that want to make use of libcerror.
%prep
%setup -q
%build
# not autoconf!
# don't use the configure macro here, as it will cause the configure script to
# skip parameters as soon as it encounters one that it doesn't understand
./configure \
--prefix="%{_prefix}" \
--bindir="%{_bindir}" \
--datadir="%{_datadir}" \
--includedir="%{_includedir}" \
--infodir="%{_infodir}" \
--libdir="%{_libdir}" \
--mandir="%{_mandir}" \
--sysconfdir="%{_sysconfdir}" \
--enable-shared \
CXX="%__cxx" \
CPPFLAGS="%{optflags}" \
CXXFLAGS="%{optflags}"
make %{?_smp_flags}
%install
make DESTDIR="%{buildroot}" LDCONFIG=echo install
# configure had no --disable-static
rm -f "%buildroot/%_libdir"/*.a
%check
make check
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%post devel
%install_info --info-dir="%_infodir" "%_infodir/%name.info%ext_info"
%preun devel
%install_info_delete --info-dir="%_infodir" "%_infodir/%name.info%ext_info"
%files -n %lname
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/liblz.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/lzlib.h
%{_libdir}/liblz.so
%doc %{_infodir}/lzlib.info%{ext_info}
%changelog