This commit is contained in:
Travis Kendrick 2018-11-28 10:26:43 -06:00
parent 9729dd78f8
commit f060b2f8a0

View File

@ -16,20 +16,6 @@ coding and 2nd order context modeling, with a compression ratio comparable
to the best currently available general-purpose compression methods. to the best currently available general-purpose compression methods.
It is similar in speed with deflate but offers more dense compression. It is similar in speed with deflate but offers more dense compression.
%package -n python2-%{name}
Summary: Lossless compression algorithm (python 2)
Requires: python2
%{?python_provide:%python_provide python2-%{name}}
%description -n python2-%{name}
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 2 module.
%package -n python3-%{name} %package -n python3-%{name}
Requires: python3 Requires: python3
Summary: Lossless compression algorithm (python 3) Summary: Lossless compression algorithm (python 3)
@ -72,7 +58,6 @@ cd build
-DCMAKE_INSTALL_LIBDIR="%{_libdir}" -DCMAKE_INSTALL_LIBDIR="%{_libdir}"
%make_build %make_build
cd .. cd ..
%py2_build
%py3_build %py3_build
%install %install
@ -88,7 +73,6 @@ cd ..
# python3 version to be the default. If, however, we're installing separate # python3 version to be the default. If, however, we're installing separate
# executables for python2 and python3, the order needs to be reversed so # executables for python2 and python3, the order needs to be reversed so
# the unversioned executable is the python2 one. # the unversioned executable is the python2 one.
%py2_install
%py3_install %py3_install
%{__install} -dm755 "%{buildroot}%{_mandir}/man3" %{__install} -dm755 "%{buildroot}%{_mandir}/man3"
cd docs cd docs
@ -102,7 +86,6 @@ done
cd build cd build
ctest -V ctest -V
cd .. cd ..
%{__python2} setup.py test
%{__python3} setup.py test %{__python3} setup.py test
%files %files
@ -112,10 +95,6 @@ cd ..
# Note that there is no %%files section for the unversioned python module # Note that there is no %%files section for the unversioned python module
# if we are building for several python runtimes # if we are building for several python runtimes
%files -n python2-%{name}
%{python2_sitearch}/*
%license LICENSE
%files -n python3-%{name} %files -n python3-%{name}
%{python3_sitearch}/* %{python3_sitearch}/*
%license LICENSE %license LICENSE
@ -128,6 +107,9 @@ cd ..
%changelog %changelog
* Wed Nov 18 2018 Travis Kendrick pouar@pouar.net> - 1.0.5-2
- remove Python 2 support https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Fri Jul 13 2018 Travis Kendrick pouar@pouar.net> - 1.0.5-1 * Fri Jul 13 2018 Travis Kendrick pouar@pouar.net> - 1.0.5-1
- update to 1.0.5 - update to 1.0.5