2017-05-22 20:59:16 +00:00
|
|
|
Name: brotli
|
2018-11-28 16:28:35 +00:00
|
|
|
Version: 1.0.7
|
2020-05-23 16:36:49 +00:00
|
|
|
Release: 11%{?dist}
|
2017-05-22 20:59:16 +00:00
|
|
|
Summary: Lossless compression algorithm
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/google/brotli
|
2019-03-28 19:51:38 +00:00
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
2017-05-22 20:59:16 +00:00
|
|
|
|
2019-04-20 15:57:10 +00:00
|
|
|
%if 0%{?rhel} == 7
|
2019-12-07 10:31:50 +00:00
|
|
|
BuildRequires: devtoolset-7-toolchain, devtoolset-7-libatomic-devel
|
2019-04-20 15:57:10 +00:00
|
|
|
%endif
|
2019-03-28 19:54:56 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
2019-12-07 10:31:50 +00:00
|
|
|
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
2017-05-22 20:59:16 +00:00
|
|
|
|
|
|
|
%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, 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.
|
|
|
|
|
2019-12-07 10:31:50 +00:00
|
|
|
%package -n libbrotli
|
|
|
|
Summary: Library for brotli lossless compression algorithm
|
|
|
|
|
|
|
|
%description -n libbrotli
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
2019-03-28 19:54:56 +00:00
|
|
|
%package -n python%{python3_pkgversion}-%{name}
|
2017-05-22 20:59:16 +00:00
|
|
|
Summary: Lossless compression algorithm (python 3)
|
2019-03-28 19:54:56 +00:00
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
|
2017-05-22 20:59:16 +00:00
|
|
|
|
2019-03-28 19:54:56 +00:00
|
|
|
%description -n python%{python3_pkgversion}-%{name}
|
2017-05-22 20:59:16 +00: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.
|
|
|
|
This package installs a Python 3 module.
|
|
|
|
|
|
|
|
|
2019-03-28 19:24:56 +00:00
|
|
|
%package devel
|
2017-05-22 20:59:16 +00:00
|
|
|
Summary: Lossless compression algorithm (development files)
|
2019-12-07 10:31:50 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
2017-05-22 20:59:16 +00:00
|
|
|
|
2019-03-28 19:24:56 +00:00
|
|
|
%description devel
|
2017-05-22 20:59:16 +00: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.
|
|
|
|
This package installs the development files
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup
|
|
|
|
# fix permissions for -debuginfo
|
|
|
|
# rpmlint will complain if I create an extra %%files section for
|
|
|
|
# -debuginfo for this so we'll put it here instead
|
2019-03-28 19:33:39 +00:00
|
|
|
chmod 644 c/enc/*.[ch]
|
|
|
|
chmod 644 c/include/brotli/*.h
|
|
|
|
chmod 644 c/tools/brotli.c
|
2017-05-22 20:59:16 +00:00
|
|
|
|
2019-03-28 19:33:39 +00:00
|
|
|
%build
|
2019-04-20 15:57:10 +00:00
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
. /opt/rh/devtoolset-7/enable
|
|
|
|
%endif
|
2017-05-22 20:59:16 +00:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
%cmake .. -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR="%{_libdir}"
|
|
|
|
%make_build
|
|
|
|
cd ..
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%install
|
2019-04-20 15:57:10 +00:00
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
. /opt/rh/devtoolset-7/enable
|
|
|
|
%endif
|
2017-05-22 20:59:16 +00:00
|
|
|
cd build
|
|
|
|
%make_install
|
2017-09-22 16:52:28 +00:00
|
|
|
|
|
|
|
# I couldn't find the option to not build the static libraries
|
2019-03-28 19:33:39 +00:00
|
|
|
rm "%{buildroot}%{_libdir}/"*.a
|
2017-09-22 16:52:28 +00:00
|
|
|
|
2017-05-22 20:59:16 +00:00
|
|
|
cd ..
|
|
|
|
%py3_install
|
2019-03-28 19:33:39 +00:00
|
|
|
install -dm755 "%{buildroot}%{_mandir}/man3"
|
2017-05-23 20:01:46 +00:00
|
|
|
cd docs
|
|
|
|
for i in *.3;do
|
2019-03-28 19:33:39 +00:00
|
|
|
install -m644 "$i" "%{buildroot}%{_mandir}/man3/${i}brotli"
|
2017-05-23 20:01:46 +00:00
|
|
|
done
|
2017-05-22 20:59:16 +00:00
|
|
|
|
2018-02-03 16:45:49 +00:00
|
|
|
%ldconfig_scriptlets
|
2017-05-22 20:59:16 +00:00
|
|
|
|
|
|
|
%check
|
2019-04-20 15:57:10 +00:00
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
. /opt/rh/devtoolset-7/enable
|
|
|
|
%endif
|
2017-05-22 20:59:16 +00:00
|
|
|
cd build
|
|
|
|
ctest -V
|
|
|
|
cd ..
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
|
|
|
%files
|
2017-09-22 16:52:28 +00:00
|
|
|
%{_bindir}/brotli
|
2019-12-07 10:31:50 +00:00
|
|
|
|
|
|
|
%files -n libbrotli
|
|
|
|
%license LICENSE
|
2019-03-28 19:36:46 +00:00
|
|
|
%{_libdir}/libbrotlicommon.so.1*
|
|
|
|
%{_libdir}/libbrotlidec.so.1*
|
|
|
|
%{_libdir}/libbrotlienc.so.1*
|
2017-05-22 20:59:16 +00:00
|
|
|
|
|
|
|
# Note that there is no %%files section for the unversioned python module
|
|
|
|
# if we are building for several python runtimes
|
2019-03-28 19:54:56 +00:00
|
|
|
%files -n python%{python3_pkgversion}-%{name}
|
2019-12-07 10:31:50 +00:00
|
|
|
%license LICENSE
|
2019-03-28 19:36:46 +00:00
|
|
|
%{python3_sitearch}/brotli.py
|
2019-05-08 18:38:35 +00:00
|
|
|
%{python3_sitearch}/_brotli.cpython-%{python3_version_nodots}*.so
|
2019-03-28 19:36:46 +00:00
|
|
|
%{python3_sitearch}/__pycache__/brotli.cpython-%{python3_version_nodots}*.py*
|
|
|
|
%{python3_sitearch}/Brotli-%{version}-py%{python3_version}.egg-info
|
2017-05-22 20:59:16 +00:00
|
|
|
|
2019-03-28 19:24:56 +00:00
|
|
|
%files devel
|
2019-03-28 19:36:46 +00:00
|
|
|
%{_includedir}/brotli
|
|
|
|
%{_libdir}/libbrotlicommon.so
|
|
|
|
%{_libdir}/libbrotlidec.so
|
|
|
|
%{_libdir}/libbrotlienc.so
|
|
|
|
%{_libdir}/pkgconfig/libbrotlicommon.pc
|
|
|
|
%{_libdir}/pkgconfig/libbrotlidec.pc
|
|
|
|
%{_libdir}/pkgconfig/libbrotlienc.pc
|
|
|
|
%{_mandir}/man3/decode.h.3brotli*
|
|
|
|
%{_mandir}/man3/encode.h.3brotli*
|
|
|
|
%{_mandir}/man3/types.h.3brotli*
|
2017-05-22 20:59:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-05-23 16:36:49 +00:00
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.7-11
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-01-28 13:18:47 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-12-07 10:31:50 +00:00
|
|
|
* Sat Dec 7 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.7-9
|
|
|
|
- Splil out the libs to a separate package
|
|
|
|
|
2019-10-03 11:51:21 +00:00
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.7-8
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
2019-08-17 14:18:19 +00:00
|
|
|
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.7-7
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-07-24 19:35:47 +00:00
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-04-20 15:57:10 +00:00
|
|
|
* Sat Apr 20 2019 Orion Poplawski <orion@nwra.com> - 1.0.7-5
|
|
|
|
- Build with devtoolset-7 on EPEL7 to fix aarch64 builds
|
|
|
|
|
2019-03-28 19:54:56 +00:00
|
|
|
* Thu Mar 28 2019 Carl George <carl@george.computer> - 1.0.7-4
|
|
|
|
- EPEL compatibility
|
|
|
|
|
2019-01-31 14:56:24 +00:00
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-12-09 10:01:46 +00:00
|
|
|
* Sun Dec 09 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.7-2
|
|
|
|
- Remove last python2 bits
|
|
|
|
|
2018-11-28 16:45:43 +00:00
|
|
|
* Wed Nov 28 2018 Travis Kendrick pouar@pouar.net> - 1.0.7-1
|
2018-11-28 16:28:35 +00:00
|
|
|
- Update to 1.0.7
|
|
|
|
|
2018-11-28 16:45:43 +00:00
|
|
|
* Wed Nov 28 2018 Travis Kendrick pouar@pouar.net> - 1.0.5-2
|
2018-11-28 16:26:43 +00:00
|
|
|
- remove Python 2 support https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
2018-07-13 17:38:41 +00:00
|
|
|
* Fri Jul 13 2018 Travis Kendrick pouar@pouar.net> - 1.0.5-1
|
|
|
|
- update to 1.0.5
|
|
|
|
|
2018-07-12 21:22:00 +00:00
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-18 12:50:35 +00:00
|
|
|
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.4-3
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-07-13 17:38:41 +00:00
|
|
|
* Wed Apr 18 2018 Travis Kendrick pouar@pouar.net> - 1.0.4-2
|
2018-04-18 23:26:00 +00:00
|
|
|
- update to 1.0.4
|
|
|
|
|
2018-04-18 23:34:29 +00:00
|
|
|
* Sat Mar 03 2018 Travis Kendrick <pouar@pouar.net> - 1.0.3-1
|
2018-03-03 18:36:52 +00:00
|
|
|
- update to 1.0.3
|
|
|
|
|
2018-02-07 04:12:28 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-02-03 16:45:49 +00:00
|
|
|
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-2
|
|
|
|
- Switch to %%ldconfig_scriptlets
|
|
|
|
|
2017-09-22 16:52:28 +00:00
|
|
|
* Fri Sep 22 2017 Travis Kendrick <pouar@pouar.net> - 1.0.1-1
|
|
|
|
- update to 1.0.1
|
|
|
|
|
2017-08-02 18:26:10 +00:00
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 04:14:30 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-05-23 20:01:46 +00:00
|
|
|
* Tue May 23 2017 Travis Kendrick <pouar@pouar.net> - 0.6.0-4
|
|
|
|
- add man pages
|
|
|
|
|
2017-05-22 20:59:16 +00:00
|
|
|
* Sun May 14 2017 Travis Kendrick <pouar@pouar.net> - 0.6.0-3
|
|
|
|
- wrong directory for ctest
|
|
|
|
- LICENSE not needed in -devel
|
|
|
|
- fix "spurious-executable-perm"
|
|
|
|
- rpmbuild does the cleaning for us, so 'rm -rf %%{buildroot}' isn't needed
|
|
|
|
|
|
|
|
* Sat May 13 2017 Travis Kendrick <pouar@pouar.net> - 0.6.0-2
|
|
|
|
- include libraries and development files
|
|
|
|
|
|
|
|
* Sat May 06 2017 Travis Kendrick <pouar@pouar.net> - 0.6.0-1
|
|
|
|
- Initial build
|