|
|
|
@ -1,21 +1,21 @@
|
|
|
|
|
Name: brotli
|
|
|
|
|
Version: 1.0.9
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Version: 1.1.0
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: Lossless compression algorithm
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/google/brotli
|
|
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch0: 09b0992b6acb7faa6fd3b23f9bc036ea117230fc.patch
|
|
|
|
|
Patch1: RHEL-32153-kBrotliBitMask-bounds.patch
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
BuildRequires: devtoolset-7-toolchain, devtoolset-7-libatomic-devel
|
|
|
|
|
BuildRequires: cmake3
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
|
|
|
@ -76,21 +76,28 @@ chmod 644 c/tools/brotli.c
|
|
|
|
|
%build
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
. /opt/rh/devtoolset-7/enable
|
|
|
|
|
%endif
|
|
|
|
|
%cmake3 \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
|
|
|
|
-DCMAKE_INSTALL_LIBDIR="%{_libdir}"
|
|
|
|
|
%cmake3_build
|
|
|
|
|
%else
|
|
|
|
|
%cmake \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
|
|
|
|
-DCMAKE_INSTALL_LIBDIR="%{_libdir}"
|
|
|
|
|
%cmake_build
|
|
|
|
|
%endif
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
. /opt/rh/devtoolset-7/enable
|
|
|
|
|
%endif
|
|
|
|
|
%cmake3_install
|
|
|
|
|
%else
|
|
|
|
|
%cmake_install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# I couldn't find the option to not build the static libraries
|
|
|
|
|
rm "%{buildroot}%{_libdir}/"*.a
|
|
|
|
|
#rm "%{buildroot}%{_libdir}/"*.a
|
|
|
|
|
|
|
|
|
|
%py3_install
|
|
|
|
|
install -dm755 "%{buildroot}%{_mandir}/man3"
|
|
|
|
@ -104,8 +111,10 @@ done
|
|
|
|
|
%check
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
. /opt/rh/devtoolset-7/enable
|
|
|
|
|
%endif
|
|
|
|
|
%ctest3
|
|
|
|
|
%else
|
|
|
|
|
%ctest
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_bindir}/brotli
|
|
|
|
@ -123,7 +132,7 @@ done
|
|
|
|
|
%{python3_sitearch}/brotli.py
|
|
|
|
|
%{python3_sitearch}/_brotli.cpython-%{python3_version_nodots}*.so
|
|
|
|
|
%{python3_sitearch}/__pycache__/brotli.cpython-%{python3_version_nodots}*.py*
|
|
|
|
|
%{python3_sitearch}/Brotli-%{version}-py%{python3_version}.egg-info
|
|
|
|
|
%{python3_sitearch}/Brotli-1.1.0-py%{python3_version}.egg-info/
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/brotli
|
|
|
|
@ -140,15 +149,47 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Sep 11 2024 Eike Rathke <erack@redhat.com> - 1.0.9-7
|
|
|
|
|
- Check BitMask(n) n value for kBrotliBitMask[n] bounds
|
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.1.0-4
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.1.0-4
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Sep 15 2023 Jonathan Wright <jonathan@almalinux.org> - 1.1.0-1
|
|
|
|
|
- Update to 1.1.1 rhbz#2233368
|
|
|
|
|
|
|
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.0.9-12
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Dec 03 2022 Jonathan Wright <jonathan@almalinux.org> - 1.0.9-10
|
|
|
|
|
- Fix EL7 builds
|
|
|
|
|
|
|
|
|
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.0.9-8
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.9-6
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.9-5
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.0.9-5
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|