Simplify packaging
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
fef1af60f6
commit
1543ed8d03
@ -3,7 +3,7 @@
|
||||
|
||||
Name: python-%{modname}
|
||||
Version: 1.1.2
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Epoch: 1
|
||||
Summary: A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions
|
||||
|
||||
@ -25,29 +25,25 @@ authentication technologies and more.
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n python%{python3_pkgversion}-%{modname}
|
||||
%package -n python3-%{modname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
BuildRequires: python%{python3_pkgversion}-pytest
|
||||
BuildRequires: python%{python3_pkgversion}-jinja2
|
||||
BuildRequires: python%{python3_pkgversion}-werkzeug
|
||||
BuildRequires: python%{python3_pkgversion}-itsdangerous
|
||||
BuildRequires: python%{python3_pkgversion}-click
|
||||
Requires: python%{python3_pkgversion}-jinja2
|
||||
Requires: python%{python3_pkgversion}-werkzeug >= 0.15
|
||||
Requires: python%{python3_pkgversion}-itsdangerous
|
||||
Requires: python%{python3_pkgversion}-click
|
||||
%{?python_provide:%python_provide python3-%{modname}}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3dist(setuptools)
|
||||
BuildRequires: python3dist(wekzeug) >= 0.15
|
||||
BuildRequires: python3dist(jinja2) >= 2.10.1
|
||||
BuildRequires: python3dist(itsdangerous) >= 0.24
|
||||
BuildRequires: python3dist(click) >= 5.1
|
||||
BuildRequires: python3dist(pytest)
|
||||
Obsoletes: python2-%{modname} < 1:1.0.2-9
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{modname} %{_description}
|
||||
%description -n python3-%{modname} %{_description}
|
||||
|
||||
Python 3 version.
|
||||
|
||||
%package doc
|
||||
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
|
||||
Documentation and examples for %{name}.
|
||||
@ -69,7 +65,7 @@ ln -sf %{modname}-3 %{buildroot}%{_bindir}/%{modname}
|
||||
%check
|
||||
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
|
||||
%doc CHANGES.rst README.rst
|
||||
%{_bindir}/%{modname}
|
||||
@ -83,6 +79,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v -k "not test_send_from_dir
|
||||
%doc examples
|
||||
|
||||
%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
|
||||
- Update to 1.1.2 (#1820730)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user