2017-04-14 09:43:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package lzma-sdk
|
|
|
|
#
|
2018-01-09 12:12:06 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-04-14 09:43:12 +02: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2018-01-09 12:12:06 +01:00
|
|
|
|
2018-05-01 13:44:56 +02:00
|
|
|
%define _sver 1805
|
2018-01-29 21:54:19 +01:00
|
|
|
%define _maver 18
|
2018-05-01 13:44:56 +02:00
|
|
|
%define _miver 05
|
2017-04-14 09:43:12 +02:00
|
|
|
Name: lzma-sdk
|
2018-05-01 13:44:56 +02:00
|
|
|
Version: 18.05
|
2017-04-14 09:43:12 +02:00
|
|
|
Release: 0
|
2017-05-16 17:56:24 +02:00
|
|
|
Summary: An implementation of LZMA compression
|
2017-04-14 09:43:12 +02:00
|
|
|
# Actually the site says "Public Domain". See license file.
|
2018-06-11 14:56:40 +02:00
|
|
|
License: LGPL-2.1-only
|
2017-04-14 09:43:12 +02:00
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
Url: http://www.7-zip.org/sdk.html
|
|
|
|
Source0: http://www.7-zip.org/a/lzma%{_sver}.7z
|
|
|
|
Source1: lzma-sdk-LICENSE.fedora
|
2018-01-09 12:12:06 +01:00
|
|
|
Patch1: lzma-sdk-shlib.patch
|
|
|
|
BuildRequires: automake
|
2017-04-14 09:43:12 +02:00
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2018-01-09 12:12:06 +01:00
|
|
|
BuildRequires: libtool
|
2018-06-11 14:56:40 +02:00
|
|
|
BuildRequires: p7zip-full
|
2017-04-14 09:43:12 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
|
|
|
|
%description
|
2017-05-16 17:56:24 +02:00
|
|
|
LZMA SDK provides documentation, samples, header files, libraries,
|
|
|
|
and tools for developing applications with LZMA support.
|
2017-04-14 09:43:12 +02:00
|
|
|
|
2017-05-16 17:56:24 +02:00
|
|
|
LZMA uses a dictionary compression algorithm (a variant of LZ77, with
|
|
|
|
huge dictionary sizes and special support for repeatedly used match
|
|
|
|
distances), whose output is then encoded with a range encoder, using
|
|
|
|
a model to make a probability prediction of each bit.
|
|
|
|
LZMA yields around 20%% better compression when operating at approximately
|
|
|
|
zlib's speed, and around 40%% when trading more time.
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development libraries and headers for %{name}
|
|
|
|
Group: Development/Languages/C and C++
|
2018-01-09 12:12:06 +01:00
|
|
|
Requires: libclzma-suse0 = %{version}
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains development libraries and headers for %{name}.
|
|
|
|
|
2018-01-09 12:12:06 +01:00
|
|
|
%package -n libclzma-suse0
|
|
|
|
Summary: LZMA stream encoding/decoding library from 7-Zip
|
|
|
|
Group: System/Libraries
|
2017-04-14 09:43:12 +02:00
|
|
|
|
2018-01-09 12:12:06 +01:00
|
|
|
%description -n libclzma-suse0
|
|
|
|
Library for encoding/decoding LZMA streams, using the 7-Zip library
|
|
|
|
implementation.
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -n lzma%{_sver}
|
2018-01-09 12:12:06 +01:00
|
|
|
%patch -P 1 -p1
|
|
|
|
perl -i -pe 's{AC_INIT.*}{AC_INIT([lzma-sdk], [%version])}' configure.ac
|
2017-04-14 09:43:12 +02:00
|
|
|
dos2unix DOC/*.txt
|
|
|
|
install -p -m 0644 %{SOURCE1} .
|
|
|
|
|
|
|
|
%build
|
2018-01-09 12:12:06 +01:00
|
|
|
autoreconf -fi
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%install
|
2018-01-09 12:12:06 +01:00
|
|
|
%make_install
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
|
|
|
|
|
|
|
%post -n libclzma-suse0 -p /sbin/ldconfig
|
|
|
|
%postun -n libclzma-suse0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libclzma-suse0
|
2017-04-14 09:43:12 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc DOC/lzma.txt DOC/lzma-history.txt lzma-sdk-LICENSE.fedora
|
2018-01-09 12:12:06 +01:00
|
|
|
%{_libdir}/libclzma-suse.so.0*
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc DOC/7z*.txt DOC/Methods.txt lzma-sdk-LICENSE.fedora
|
2018-01-09 12:12:06 +01:00
|
|
|
%{_includedir}/clzma/
|
|
|
|
%{_libdir}/libclzma.so
|
|
|
|
%{_libdir}/pkgconfig/clzma.pc
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%changelog
|