2017-12-20 18:51:39 +01:00
|
|
|
#
|
|
|
|
# spec file for package brotli
|
|
|
|
#
|
2020-08-12 20:58:54 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-12-20 18:51:39 +01:00
|
|
|
# Copyright (c) 2017 Buschmann <buschmann23@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.
|
|
|
|
|
2018-12-14 12:34:42 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-12-20 18:51:39 +01:00
|
|
|
#
|
|
|
|
|
2018-03-05 20:31:03 +01:00
|
|
|
|
|
|
|
%define sover 1
|
2017-12-20 18:51:39 +01:00
|
|
|
Name: brotli
|
2018-12-14 11:24:30 +01:00
|
|
|
Version: 1.0.7
|
2017-12-20 18:51:39 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Lossless Compression Algorithm
|
2018-03-05 20:31:03 +01:00
|
|
|
License: MIT
|
2017-12-20 18:51:39 +01:00
|
|
|
Group: Productivity/Archiving/Compression
|
2018-12-14 11:24:30 +01:00
|
|
|
URL: https://github.com/google/brotli
|
2019-01-18 01:56:15 +01:00
|
|
|
Source: %url/archive/v%version.tar.gz#/%name-%version.tar.gz
|
2018-07-25 15:33:43 +02:00
|
|
|
Source99: baselibs.conf
|
2019-01-18 01:56:15 +01:00
|
|
|
Patch: brotli_Verbose-CLI+Shared-Brotli.patch
|
|
|
|
Patch1: brotli_Ensure-decompression-consumes-all-input.patch
|
2017-12-20 18:51:39 +01:00
|
|
|
BuildRequires: cmake >= 2.8.6
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gzip
|
2018-12-14 12:34:42 +01:00
|
|
|
BuildRequires: pkg-config
|
2017-12-20 18:51:39 +01:00
|
|
|
|
|
|
|
%description
|
2019-01-18 01:56:51 +01:00
|
|
|
This package contains the brotli command line utility to compress and
|
|
|
|
decompress data with the brotli compression algorithm.
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2018-12-14 12:34:42 +01:00
|
|
|
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, with a
|
|
|
|
compression ratio comparable to the best currently available
|
|
|
|
general-purpose compression methods. It is similar in speed with
|
|
|
|
deflate but offers more dense compression.
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2019-01-18 01:56:51 +01:00
|
|
|
The specification of the Brotli Compressed Data Format is defined in
|
|
|
|
RFC 7932.
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2018-12-14 12:34:42 +01:00
|
|
|
%package -n libbrotlicommon%sover
|
2018-03-05 20:31:03 +01:00
|
|
|
Summary: Common Library for Brotli Compression
|
|
|
|
Group: System/Libraries
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2018-12-14 12:34:42 +01:00
|
|
|
%description -n libbrotlicommon%sover
|
|
|
|
Common library for the Brotli general purpose lossless data
|
|
|
|
compression algorithm.
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2018-12-14 12:34:42 +01:00
|
|
|
%package -n libbrotlidec%sover
|
2017-12-20 18:51:39 +01:00
|
|
|
Summary: Library for Brotli Decompression
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2018-12-14 12:34:42 +01:00
|
|
|
%description -n libbrotlidec%sover
|
|
|
|
Decompression library for the Brotli general purpose lossless data
|
|
|
|
compression algorithm.
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2019-01-18 01:56:51 +01:00
|
|
|
The specification of the Brotli Compressed Data Format is defined in
|
|
|
|
RFC 7932.
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2018-12-14 12:34:42 +01:00
|
|
|
%package -n libbrotlienc%sover
|
2017-12-20 18:51:39 +01:00
|
|
|
Summary: Library for Brotli Compression
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2018-12-14 12:34:42 +01:00
|
|
|
%description -n libbrotlienc%sover
|
2019-01-18 01:56:15 +01:00
|
|
|
Compression library for the Brotli general purpose lossless data
|
|
|
|
compression algorithm.
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2019-01-18 01:56:51 +01:00
|
|
|
The specification of the Brotli Compressed Data Format is defined in
|
|
|
|
RFC 7932.
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2018-01-03 21:26:39 +01:00
|
|
|
%package -n libbrotli-devel
|
2017-12-20 18:51:39 +01:00
|
|
|
Summary: Development and Header Files for Brotli Compression
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-12-14 12:34:42 +01:00
|
|
|
Requires: libbrotlicommon%sover = %version-%release
|
|
|
|
Requires: libbrotlidec%sover = %version-%release
|
|
|
|
Requires: libbrotlienc%sover = %version-%release
|
|
|
|
Provides: libbrotlicommon-devel = %version-%release
|
|
|
|
Provides: libbrotlidec-devel = %version-%release
|
|
|
|
Provides: libbrotlienc-devel = %version-%release
|
|
|
|
Obsoletes: libbrotlicommon-devel < %version-%release
|
|
|
|
Obsoletes: libbrotlidec-devel < %version-%release
|
|
|
|
Obsoletes: libbrotlienc-devel < %version-%release
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2018-01-03 21:26:39 +01:00
|
|
|
%description -n libbrotli-devel
|
2019-01-18 01:56:15 +01:00
|
|
|
Development and headers files for (de)compressing data using the
|
|
|
|
Brotli general purpose lossless compression algorithm.
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2019-01-18 01:56:51 +01:00
|
|
|
The specification of the Brotli Compressed Data Format is defined in
|
|
|
|
RFC 7932.
|
2017-12-20 18:51:39 +01:00
|
|
|
|
|
|
|
%prep
|
2018-12-14 12:34:42 +01:00
|
|
|
%autosetup -p1
|
2017-12-20 18:51:39 +01:00
|
|
|
|
|
|
|
%build
|
2020-08-12 20:58:54 +02:00
|
|
|
%cmake -DCMAKE_C_FLAGS="-DBROTLI_ENCODER_CLEANUP_ON_OOM"
|
2019-11-20 11:18:45 +01:00
|
|
|
%cmake_build
|
2017-12-20 18:51:39 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
2018-12-14 12:34:42 +01:00
|
|
|
rm %buildroot/%_libdir/libbrotli*-static.a
|
|
|
|
mkdir -p "%buildroot/%_mandir/man1" "%buildroot/%_mandir/man3"
|
|
|
|
install -pm0644 docs/*.1 "%buildroot/%_mandir/man1/"
|
|
|
|
install -pm0644 docs/*.3 "%buildroot/%_mandir/man3/"
|
2017-12-20 18:51:39 +01:00
|
|
|
|
|
|
|
%check
|
2018-07-24 10:43:35 +02:00
|
|
|
%ctest
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2018-12-14 12:34:42 +01:00
|
|
|
%post -n libbrotlicommon%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libbrotlicommon%sover -p /sbin/ldconfig
|
|
|
|
%post -n libbrotlidec%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libbrotlidec%sover -p /sbin/ldconfig
|
|
|
|
%post -n libbrotlienc%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libbrotlienc%sover -p /sbin/ldconfig
|
2017-12-20 18:51:39 +01:00
|
|
|
|
|
|
|
%files
|
2018-12-14 12:34:42 +01:00
|
|
|
%defattr(-,root,root)
|
2018-12-14 11:24:30 +01:00
|
|
|
%license LICENSE
|
2018-12-14 12:34:42 +01:00
|
|
|
%_bindir/brotli
|
|
|
|
%_mandir/man1/brotli.1*
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2018-12-14 12:34:42 +01:00
|
|
|
%files -n libbrotlicommon%sover
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libbrotlicommon.so.*
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2018-12-14 12:34:42 +01:00
|
|
|
%files -n libbrotlidec%sover
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libbrotlidec.so.*
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2018-12-14 12:34:42 +01:00
|
|
|
%files -n libbrotlienc%sover
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libbrotlienc.so.*
|
2017-12-20 18:51:39 +01:00
|
|
|
|
2018-01-03 21:26:39 +01:00
|
|
|
%files -n libbrotli-devel
|
2018-12-14 12:34:42 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/brotli/
|
|
|
|
%_libdir/libbrotlicommon.so
|
|
|
|
%_libdir/libbrotlidec.so
|
|
|
|
%_libdir/libbrotlienc.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
%_mandir/man3/*.3*
|
2017-12-20 18:51:39 +01:00
|
|
|
|
|
|
|
%changelog
|