1e4f0e
%{?python_enable_dependency_generator}
1e4f0e
%global desc These provide several pieces of "middleware" (or filters) that can be nested\
1e4f0e
to build web applications.  Each piece of middleware uses the WSGI (PEP 333)\
1e4f0e
interface, and should be compatible with other middleware based on those\
1e4f0e
interfaces.
1e4f0e
%global sum Tools for using a Web Server Gateway Interface stack
a4e9bd
a4e9bd
Name:           python-paste
1e4f0e
Version:        3.5.0
1e4f0e
Release:        1%{?dist}
1e4f0e
BuildArch:      noarch
1e4f0e
a4e9bd
# Most of the code is MIT
a4e9bd
# paste/exceptions/collector.py is ZPLv2.0
1e4f0e
# paste/evalexception/media/MochiKit.packed.js AFL (2.1) or MIT
a4e9bd
# paste/lint.py MIT or Apache v2
1e4f0e
# PySourceColor.py, Python
1e4f0e
License:        MIT and ZPLv2.0 and Python and (AFL or MIT) and (MIT or ASL 2.0)
1e4f0e
Summary:        %sum
1e4f0e
URL:            https://github.com/cdent/paste
1e4f0e
Source0:        https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz
1e4f0e
1e4f0e
1e4f0e
BuildRequires: openstack-macros
1e4f0e
BuildRequires:  python3-devel
1e4f0e
BuildRequires:  python3-nose
1e4f0e
BuildRequires:  python3-pyOpenSSL
1e4f0e
BuildRequires:  python3-pytest
1e4f0e
BuildRequires:  python3-setuptools
1e4f0e
BuildRequires:  python3-six >= 1.4.0
1e4f0e
BuildRequires:  python3-tempita
a4e9bd
a4e9bd
a4e9bd
%description
1e4f0e
%desc
1e4f0e
a4e9bd
a4e9bd
%package -n python3-paste
a4e9bd
Summary:        Tools for using a Web Server Gateway Interface stack
1e4f0e
1e4f0e
%{?python_provide:%python_provide python3-paste}
1e4f0e
1e4f0e
Requires: python3-pyOpenSSL
a4e9bd
Requires: python3-setuptools
1e4f0e
Requires: python3-six
1e4f0e
Requires: python3-tempita
1e4f0e
a4e9bd
a4e9bd
%description -n python3-paste
1e4f0e
%{desc}
a4e9bd
a4e9bd
a4e9bd
%prep
1e4f0e
%autosetup -n Paste-%{version} -p1
1e4f0e
1e4f0e
# Paste-2.0.3 seems to have a few .py.orig files that don't appear in upstream scm. Let's drop them.
1e4f0e
find . -name "*.orig" -delete
1e4f0e
a4e9bd
# Strip #! lines that make these seem like scripts
a4e9bd
%{__sed} -i -e '/^#!.*/,1 d' paste/util/scgiserver.py paste/debug/doctest_webapp.py
a4e9bd
a4e9bd
# clean docs directory
a4e9bd
pushd docs
a4e9bd
rm StyleGuide.txt
a4e9bd
popd
a4e9bd
a4e9bd
a4e9bd
%build
a4e9bd
%{__python3} setup.py build
a4e9bd
a4e9bd
a4e9bd
%install
1e4f0e
%{__python3} setup.py install --skip-build --root %{buildroot}
a4e9bd
a4e9bd
a4e9bd
%check
a4e9bd
export PYTHONPATH=$(pwd)
a4e9bd
# We don't have access to the wider internet in the buildsystem
1e4f0e
py.test-3 -k "not test_paste_website and not test_proxy_to_website and not test_modified"
a4e9bd
a4e9bd
a4e9bd
%files -n python3-paste
1e4f0e
%license docs/license.txt
1e4f0e
%doc docs/*
1e4f0e
%{python3_sitelib}/paste
1e4f0e
%{python3_sitelib}/Paste-%{version}-py%{python3_version}.egg-info
1e4f0e
%{python3_sitelib}/Paste-%{version}-py%{python3_version}-nspkg.pth
a4e9bd
a4e9bd
a4e9bd
%changelog
1e4f0e
* Mon Nov 02 2020 Joel Capitao <jcapitao@redhat.com> - 3.5.0-1
1e4f0e
- Update to 3.5.0 (#1882460)
a4e9bd
1e4f0e
* Thu Sep 10 2020 Yatin Karel <ykarel@redhat.com> - 3.4.4-1
1e4f0e
- Update to 3.4.4 (#1844011)
a4e9bd
1e4f0e
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-3
1e4f0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a4e9bd
1e4f0e
* Sun May 24 2020 Miro Hron훾ok <mhroncok@redhat.com> - 3.4.0-2
1e4f0e
- Rebuilt for Python 3.9
a4e9bd
1e4f0e
* Wed Feb 19 2020 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.4.0-1
1e4f0e
- Update to 3.4.0 (#1789359).
1e4f0e
- https://github.com/cdent/paste/blob/3.4.0/docs/news.txt
a4e9bd
1e4f0e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.4-2
1e4f0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a4e9bd
1e4f0e
* Tue Jan 07 2020 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.2.4-1
1e4f0e
- Update to 3.2.4 (#1776547).
1e4f0e
- https://github.com/cdent/paste/blob/3.2.4/docs/news.txt
a4e9bd
1e4f0e
* Mon Oct 14 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.2.2-1
1e4f0e
- Update to 3.2.2 (#1761382).
1e4f0e
- https://github.com/cdent/paste/blob/3.2.2/docs/news.txt
a4e9bd
1e4f0e
* Fri Sep 27 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.2.1-1
1e4f0e
- Update to 3.2.1 (#1755413).
a4e9bd
1e4f0e
* Tue Sep 17 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.2.0-1
1e4f0e
- Update to 3.2.0 (#1749324).
1e4f0e
- https://github.com/cdent/paste/blob/3.2.0/docs/news.txt
a4e9bd
1e4f0e
* Tue Sep 17 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.1.1-2
1e4f0e
- Drop python2-paste (#1751087).
a4e9bd
1e4f0e
* Tue Sep 03 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.1.1-1
1e4f0e
- Update to 3.1.1 (#1742275).
1e4f0e
- https://github.com/cdent/paste/blob/master/docs/news.txt
a4e9bd
1e4f0e
* Sat Aug 17 2019 Miro Hron훾ok <mhroncok@redhat.com> - 3.0.8-3
1e4f0e
- Rebuilt for Python 3.8
a4e9bd
1e4f0e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8-2
1e4f0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a4e9bd
1e4f0e
* Thu Mar 28 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.0.8-1
1e4f0e
- Update to 3.0.8 (#1684199).
1e4f0e
- Update the URL to the new home on GitHub.
a4e9bd
1e4f0e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-9
1e4f0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a4e9bd
1e4f0e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-8
1e4f0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a4e9bd
1e4f0e
* Mon Jun 18 2018 Miro Hron훾ok <mhroncok@redhat.com> - 2.0.3-7
1e4f0e
- Rebuilt for Python 3.7
a4e9bd
1e4f0e
* Fri Jun 08 2018 Miro Hron훾ok <mhroncok@redhat.com> - 2.0.3-6
1e4f0e
- Fix build on Python 3.7 (#1583818)
a4e9bd
1e4f0e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-5
1e4f0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a4e9bd
1e4f0e
* Fri Jan 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0.3-4
1e4f0e
- Update Python 2 dependency declarations to new packaging standards
1e4f0e
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)