A new user interface for you! Read more...

File ea-libbrotli.spec of Package ea-libbrotli

#
# spec file for package libbrotli
#
# Copyright (c) 2016 SUSE LINUX 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/
#


%define version_unconverted 1.0.g5

Name:           ea-libbrotli
Version:        1.0.g5
%define release_prefix 1.3
Release:        %{release_prefix}%{?dist}.cppietila
Summary:        Library implementing the Brotli compression algorithm
License:        Apache-2.0 and MIT
Group:          Development/Libraries/C and C++
Url:            http://daniel.haxx.se/blog/2015/09/30/libbrotli-is-brotli-in-lib-form/

#Git-Clone:	https://github.com/bagder/libbrotli
Source:         %name-%version.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  xz

%description
Brotli is a generic-purpose lossless compression algorithm that
compresses data using a combination of a modern variant of the LZ77
algorithm, Huffman coding and 2nd order context modeling. It is
similar in speed with "DEFLATE" but offers more dense compression.

%package -n ea-libbrotlidec1
Summary:        Library implementing the Brotli decompressor
License:        Apache-2.0
Group:          System/Libraries

%description -n ea-libbrotlidec1
Brotli is a generic-purpose lossless compression algorithm that
compresses data using a combination of a modern variant of the LZ77
algorithm, Huffman coding and 2nd order context modeling. It is
similar in speed with "DEFLATE" but offers more dense compression.

%package -n ea-libbrotlienc1
Summary:        Library implementing the Brotli compressor
License:        Apache-2.0
Group:          System/Libraries

%description -n ea-libbrotlienc1
Brotli is a generic-purpose lossless compression algorithm that
compresses data using a combination of a modern variant of the LZ77
algorithm, Huffman coding and 2nd order context modeling. It is
similar in speed with "DEFLATE" but offers more dense compression.

%package devel
Summary:        Library implementing the Brotli compression algorithm
License:        Apache-2.0
Group:          Development/Libraries/C and C++
Requires:       ea-libbrotlidec1 = %version
Requires:       ea-libbrotlienc1 = %version

%description devel
Brotli is a generic-purpose lossless compression algorithm that
compresses data using a combination of a modern variant of the LZ77
algorithm, Huffman coding and 2nd order context modeling. It is
similar in speed with "DEFLATE" but offers more dense compression.

This subpackage contains libraries and header files for developing
applications that want to make use of libcerror.

%prep
%setup -q

%build
autoreconf -fi
%configure --disable-static
make %{?_smp_flags}

%install
%make_install
rm -f "%buildroot/%_libdir"/*.la

%check
make check

%post   -n ea-libbrotlidec1 -p /sbin/ldconfig
%postun -n ea-libbrotlidec1 -p /sbin/ldconfig
%post   -n ea-libbrotlienc1 -p /sbin/ldconfig
%postun -n ea-libbrotlienc1 -p /sbin/ldconfig

%files -n ea-libbrotlidec1
%defattr(-,root,root)
%_libdir/libbrotlidec.so.1*

%files -n ea-libbrotlienc1
%defattr(-,root,root)
%_libdir/libbrotlienc.so.1*

%files devel
%defattr(-,root,root)
%_includedir/brotli/
%_libdir/libbrotli*.so
%_libdir/pkgconfig/*.pc
%doc brotli/LICENSE

%changelog
* Mon Apr 17 2017 Andrew Pietila <a.pietila@cpanel.net>
- Update package name
- Update build dependencies.
* Sat Aug 20 2016 jengelh@inai.de
- Update to git snapshot 1.0.git5
  * Some header files and symbols were erroneously absent from the
  library
* Tue Mar 15 2016 jengelh@inai.de
- Update to new upstream release 1.0
  * Install missing encoding header
- Drop inline.diff (applied upstream)
* Sat Nov  7 2015 jengelh@inai.de
  * Update to new snapshot 0.1.0~git40
- Add missing types.h header for encoder.
* Fri Oct  2 2015 jengelh@inai.de
- Initial package (version 0.1.0~git30) for build.opensuse.org
- Add inline.diff