Blame python-flask-compress.spec

4457236
%global pypi_name flask-compress
4457236
4457236
Name:           python-%{pypi_name}
4457236
Version:        1.5.0
162fe5b
Release:        3%{?dist}
4457236
Summary:        Compress responses in your Flask app with gzip or brotli
4457236
4457236
License:        MIT
4457236
URL:            https://github.com/colour-science/flask-compress
4457236
Source0:        %{pypi_source Flask-Compress}
4457236
BuildArch:      noarch
4457236
4457236
BuildRequires:  python3-devel
4457236
BuildRequires:  python3dist(brotli)
4457236
BuildRequires:  python3dist(flask)
4457236
BuildRequires:  python3dist(setuptools)
4457236
4457236
%description
4457236
Flask-Compress allows you to easily compress your Flask application's
4457236
responses with gzip.
4457236
4457236
The preferred solution is to have a server (like Nginx) automatically
4457236
compress the static files for you. If you don't have that option
4457236
Flask-Compress will solve the problem for you.
4457236
4457236
4457236
%package -n     python3-%{pypi_name}
4457236
Summary:        %{summary}
4457236
%{?python_provide:%python_provide python3-%{pypi_name}}
4457236
4457236
Requires:       python3dist(brotli)
4457236
Requires:       python3dist(flask)
4457236
%description -n python3-%{pypi_name}
4457236
Flask-Compress allows you to easily compress your Flask application's
4457236
responses with gzip.
4457236
4457236
The preferred solution is to have a server (like Nginx) automatically
4457236
compress the static files for you. If you don't have that option
4457236
Flask-Compress will solve the problem for you.
4457236
4457236
4457236
4457236
%prep
4457236
%autosetup -n Flask-Compress-%{version}
4457236
# Remove bundled egg-info
4457236
rm -rf %{pypi_name}.egg-info
4457236
4457236
%build
4457236
%py3_build
4457236
4457236
%install
4457236
%py3_install
4457236
4457236
%check
4457236
%{__python3} setup.py test
4457236
4457236
%files -n python3-%{pypi_name}
4457236
%license LICENSE.txt
4457236
%doc README.md
4457236
%{python3_sitelib}/__pycache__/*
4457236
%{python3_sitelib}/flask_compress.py
4457236
%{python3_sitelib}/Flask_Compress-%{version}-py%{python3_version}.egg-info
4457236
4457236
%changelog
162fe5b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
162fe5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
162fe5b
4457236
* Thu Jul 02 2020 Rafael Fontenelle <rafaelff@gnome.org> - 1.5.0-2
4457236
- use macro for source0
4457236
4457236
* Tue May 12 2020 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 1.5.0-1
4457236
- Initial package.