forked from pool/brotli
- Avoid bashisms, install manpages without +x bit, get rid of
wrap descriptions, feed through cleaner. OBS-URL: https://build.opensuse.org/package/show/Archiving/brotli?expand=0&rev=15
This commit is contained in:
parent
0724178eae
commit
f6acf6de25
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 14 11:01:35 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Avoid bashisms, install manpages without +x bit, get rid of
|
||||||
|
wrap descriptions, feed through cleaner.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 14 10:06:08 UTC 2018 - astieger@suse.com
|
Fri Dec 14 10:06:08 UTC 2018 - astieger@suse.com
|
||||||
|
|
||||||
|
136
brotli.spec
136
brotli.spec
@ -13,7 +13,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -25,43 +25,51 @@ Summary: Lossless Compression Algorithm
|
|||||||
License: MIT
|
License: MIT
|
||||||
Group: Productivity/Archiving/Compression
|
Group: Productivity/Archiving/Compression
|
||||||
URL: https://github.com/google/brotli
|
URL: https://github.com/google/brotli
|
||||||
Source0: https://github.com/google/brotli/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/google/brotli/archive/v%version.tar.gz#/%name-%version.tar.gz
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
BuildRequires: cmake >= 2.8.6
|
BuildRequires: cmake >= 2.8.6
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gzip
|
BuildRequires: gzip
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkg-config
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the brotli command line utility to compress and decompress data with the brotli compression algorithm.
|
This package contains the brotli command line utility to compress and
|
||||||
|
decompress data with the brotli compression algorithm.
|
||||||
|
|
||||||
Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant
|
Brotli is a generic-purpose lossless compression algorithm that
|
||||||
of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best
|
compresses data using a combination of a modern variant of the LZ77
|
||||||
currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.
|
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.
|
||||||
|
|
||||||
The specification of the Brotli Compressed Data Format is defined in RFC 7932.
|
The specification of the Brotli Compressed Data Format is defined in
|
||||||
|
RFC 7932.
|
||||||
|
|
||||||
%package -n libbrotlicommon%{sover}
|
%package -n libbrotlicommon%sover
|
||||||
Summary: Common Library for Brotli Compression
|
Summary: Common Library for Brotli Compression
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libbrotlicommon%{sover}
|
%description -n libbrotlicommon%sover
|
||||||
Common library for the Brotli general purpose lossless data compression algorithm.
|
Common library for the Brotli general purpose lossless data
|
||||||
|
compression algorithm.
|
||||||
|
|
||||||
%package -n libbrotlidec%{sover}
|
%package -n libbrotlidec%sover
|
||||||
Summary: Library for Brotli Decompression
|
Summary: Library for Brotli Decompression
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libbrotlidec%{sover}
|
%description -n libbrotlidec%sover
|
||||||
Decompression library for the Brotli general purpose lossless data compression algorithm.
|
Decompression library for the Brotli general purpose lossless data
|
||||||
|
compression algorithm.
|
||||||
|
|
||||||
The specification of the Brotli Compressed Data Format is defined in RFC 7932.
|
The specification of the Brotli Compressed Data Format is defined in
|
||||||
|
RFC 7932.
|
||||||
|
|
||||||
%package -n libbrotlienc%{sover}
|
%package -n libbrotlienc%sover
|
||||||
Summary: Library for Brotli Compression
|
Summary: Library for Brotli Compression
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libbrotlienc%{sover}
|
%description -n libbrotlienc%sover
|
||||||
Compression library for the Brotli general purpose lossless data compression algorithm.
|
Compression library for the Brotli general purpose lossless data compression algorithm.
|
||||||
|
|
||||||
The specification of the Brotli Compressed Data Format is defined in RFC 7932.
|
The specification of the Brotli Compressed Data Format is defined in RFC 7932.
|
||||||
@ -69,81 +77,71 @@ The specification of the Brotli Compressed Data Format is defined in RFC 7932.
|
|||||||
%package -n libbrotli-devel
|
%package -n libbrotli-devel
|
||||||
Summary: Development and Header Files for Brotli Compression
|
Summary: Development and Header Files for Brotli Compression
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libbrotlicommon%{sover} = %{version}-%{release}
|
Requires: libbrotlicommon%sover = %version-%release
|
||||||
Requires: libbrotlidec%{sover} = %{version}-%{release}
|
Requires: libbrotlidec%sover = %version-%release
|
||||||
Requires: libbrotlienc%{sover} = %{version}-%{release}
|
Requires: libbrotlienc%sover = %version-%release
|
||||||
Provides: libbrotlicommon-devel = %{version}-%{release}
|
Provides: libbrotlicommon-devel = %version-%release
|
||||||
Provides: libbrotlidec-devel = %{version}-%{release}
|
Provides: libbrotlidec-devel = %version-%release
|
||||||
Provides: libbrotlienc-devel = %{version}-%{release}
|
Provides: libbrotlienc-devel = %version-%release
|
||||||
Obsoletes: libbrotlicommon-devel < %{version}-%{release}
|
Obsoletes: libbrotlicommon-devel < %version-%release
|
||||||
Obsoletes: libbrotlidec-devel < %{version}-%{release}
|
Obsoletes: libbrotlidec-devel < %version-%release
|
||||||
Obsoletes: libbrotlienc-devel < %{version}-%{release}
|
Obsoletes: libbrotlienc-devel < %version-%release
|
||||||
|
|
||||||
%description -n libbrotli-devel
|
%description -n libbrotli-devel
|
||||||
Development and headers files for (de)compressing data using the
|
Development and headers files for (de)compressing data using the Brotli general
|
||||||
Brotli general purpose lossless compression algorithm.
|
purpose lossless compression algorithm.
|
||||||
|
|
||||||
The specification of the Brotli Compressed Data Format is defined in RFC 7932.
|
The specification of the Brotli Compressed Data Format is defined in RFC 7932.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -DCMAKE_INSTALL_PREFIX:PATH="%{_prefix}" \
|
%cmake
|
||||||
-DCMAKE_INSTALL_LIBDIR:PATH="%{_libdir}" \
|
|
||||||
-DBROTLI_DISABLE_TESTS:BOOL=off \
|
|
||||||
-DCMAKE_SKIP_RPATH:BOOL=off
|
|
||||||
%make_jobs
|
%make_jobs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
rm %{buildroot}%{_libdir}/libbrotli*-static.a
|
rm %buildroot/%_libdir/libbrotli*-static.a
|
||||||
%if 0%{?suse_version} > 1315
|
mkdir -p "%buildroot/%_mandir/man1" "%buildroot/%_mandir/man3"
|
||||||
for i in docs/{brotli.1,decode.h.3,encode.h.3,types.h.3}; do
|
install -pm0644 docs/*.1 "%buildroot/%_mandir/man1/"
|
||||||
install -D -t %{buildroot}%{_mandir}/man$(echo $i | sed 's:.*\.\([^\.]\)$:\1:') $i
|
install -pm0644 docs/*.3 "%buildroot/%_mandir/man3/"
|
||||||
done
|
|
||||||
%else
|
|
||||||
mkdir -p %{buildroot}%{_mandir}/man{1,3}
|
|
||||||
for i in docs/{brotli.1,decode.h.3,encode.h.3,types.h.3}; do
|
|
||||||
cp $i %{buildroot}%{_mandir}/man$(echo $i | sed 's:.*\.\([^\.]\)$:\1:')
|
|
||||||
done
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%ctest
|
%ctest
|
||||||
|
|
||||||
%post -n libbrotlicommon%{sover} -p /sbin/ldconfig
|
%post -n libbrotlicommon%sover -p /sbin/ldconfig
|
||||||
%postun -n libbrotlicommon%{sover} -p /sbin/ldconfig
|
%postun -n libbrotlicommon%sover -p /sbin/ldconfig
|
||||||
%post -n libbrotlidec%{sover} -p /sbin/ldconfig
|
%post -n libbrotlidec%sover -p /sbin/ldconfig
|
||||||
%postun -n libbrotlidec%{sover} -p /sbin/ldconfig
|
%postun -n libbrotlidec%sover -p /sbin/ldconfig
|
||||||
%post -n libbrotlienc%{sover} -p /sbin/ldconfig
|
%post -n libbrotlienc%sover -p /sbin/ldconfig
|
||||||
%postun -n libbrotlienc%{sover} -p /sbin/ldconfig
|
%postun -n libbrotlienc%sover -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,755)
|
%defattr(-,root,root)
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%attr(755,root,root) %{_bindir}/brotli
|
%_bindir/brotli
|
||||||
%{_mandir}/man1/brotli.1%{?ext_man}
|
%_mandir/man1/brotli.1*
|
||||||
|
|
||||||
%files -n libbrotlicommon%{sover}
|
%files -n libbrotlicommon%sover
|
||||||
%defattr(0644,root,root,755)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libbrotlicommon.so.*
|
%_libdir/libbrotlicommon.so.*
|
||||||
|
|
||||||
%files -n libbrotlidec%{sover}
|
%files -n libbrotlidec%sover
|
||||||
%defattr(0644,root,root,755)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libbrotlidec.so.*
|
%_libdir/libbrotlidec.so.*
|
||||||
|
|
||||||
%files -n libbrotlienc%{sover}
|
%files -n libbrotlienc%sover
|
||||||
%defattr(0644,root,root,755)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libbrotlienc.so.*
|
%_libdir/libbrotlienc.so.*
|
||||||
|
|
||||||
%files -n libbrotli-devel
|
%files -n libbrotli-devel
|
||||||
%defattr(0644,root,root,755)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/brotli/
|
%_includedir/brotli/
|
||||||
%{_libdir}/libbrotlicommon.so
|
%_libdir/libbrotlicommon.so
|
||||||
%{_libdir}/libbrotlidec.so
|
%_libdir/libbrotlidec.so
|
||||||
%{_libdir}/libbrotlienc.so
|
%_libdir/libbrotlienc.so
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%_libdir/pkgconfig/*.pc
|
||||||
%{_mandir}/man3/*.3%{?ext_man}
|
%_mandir/man3/*.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user