Simplify packaging

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-04-08 07:35:46 +02:00
parent fef1af60f6
commit 1543ed8d03
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -3,7 +3,7 @@
Name: python-%{modname} Name: python-%{modname}
Version: 1.1.2 Version: 1.1.2
Release: 1%{?dist} Release: 2%{?dist}
Epoch: 1 Epoch: 1
Summary: A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions Summary: A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions
@ -25,29 +25,25 @@ authentication technologies and more.
%description %{_description} %description %{_description}
%package -n python%{python3_pkgversion}-%{modname} %package -n python3-%{modname}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} %{?python_provide:%python_provide python3-%{modname}}
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python3-devel
BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python3dist(setuptools)
BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python3dist(wekzeug) >= 0.15
BuildRequires: python%{python3_pkgversion}-jinja2 BuildRequires: python3dist(jinja2) >= 2.10.1
BuildRequires: python%{python3_pkgversion}-werkzeug BuildRequires: python3dist(itsdangerous) >= 0.24
BuildRequires: python%{python3_pkgversion}-itsdangerous BuildRequires: python3dist(click) >= 5.1
BuildRequires: python%{python3_pkgversion}-click BuildRequires: python3dist(pytest)
Requires: python%{python3_pkgversion}-jinja2
Requires: python%{python3_pkgversion}-werkzeug >= 0.15
Requires: python%{python3_pkgversion}-itsdangerous
Requires: python%{python3_pkgversion}-click
Obsoletes: python2-%{modname} < 1:1.0.2-9 Obsoletes: python2-%{modname} < 1:1.0.2-9
%description -n python%{python3_pkgversion}-%{modname} %{_description} %description -n python3-%{modname} %{_description}
Python 3 version. Python 3 version.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
Obsoletes: python%{python3_pkgversion}-%{modname}-doc < 1:0.11.1-3 Obsoletes: python3-%{modname}-doc < 1:0.11.1-3
%description doc %description doc
Documentation and examples for %{name}. Documentation and examples for %{name}.
@ -69,7 +65,7 @@ ln -sf %{modname}-3 %{buildroot}%{_bindir}/%{modname}
%check %check
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v -k "not test_send_from_directory_bad_request" PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v -k "not test_send_from_directory_bad_request"
%files -n python%{python3_pkgversion}-%{modname} %files -n python3-%{modname}
%license LICENSE.rst %license LICENSE.rst
%doc CHANGES.rst README.rst %doc CHANGES.rst README.rst
%{_bindir}/%{modname} %{_bindir}/%{modname}
@ -83,6 +79,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v -k "not test_send_from_dir
%doc examples %doc examples
%changelog %changelog
* Wed Apr 08 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1:1.1.2-2
- Simplify packaging
* Fri Apr 03 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1:1.1.2-1 * Fri Apr 03 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1:1.1.2-1
- Update to 1.1.2 (#1820730) - Update to 1.1.2 (#1820730)