Blame SPECS/python-wsgi_intercept.spec

rdobuilder 42a24c
%global pypi_name wsgi_intercept
rdobuilder 42a24c
rdobuilder 42a24c
%global common_desc \
rdobuilder 42a24c
It installs a WSGI application in place of a real URI for testing. \
rdobuilder 42a24c
Testing a WSGI application normally involves starting a server at \
rdobuilder 42a24c
a local host and port, then pointing your test code to that address. \
rdobuilder 42a24c
Instead,this library lets you intercept calls to any specific host/port \
rdobuilder 42a24c
combination and redirect them into a `WSGI application`_ importable by \
rdobuilder 42a24c
your test program.
rdobuilder 42a24c
rdobuilder 42a24c
rdobuilder 42a24c
Name:           python-%{pypi_name}
rdobuilder 42a24c
Version:        1.12.0
rdobuilder 42a24c
Release:        5%{?dist}
rdobuilder 42a24c
Summary:        wsgi_intercept installs a WSGI application in place of a real URI for testing
rdobuilder 42a24c
rdobuilder 42a24c
License:        MIT
rdobuilder 42a24c
URL:            https://github.com/cdent/wsgi-intercept
rdobuilder 42a24c
Source0:        %pypi_source
rdobuilder 42a24c
BuildArch:      noarch
rdobuilder 42a24c
rdobuilder 42a24c
BuildRequires:  python3-devel
rdobuilder 42a24c
BuildRequires:  pyproject-rpm-macros
rdobuilder 42a24c
rdobuilder 42a24c
%description
rdobuilder 42a24c
%{common_desc}
rdobuilder 42a24c
rdobuilder 42a24c
%package -n python3-%{pypi_name}
rdobuilder 42a24c
Summary:        wsgi_intercept installs a WSGI application in place of a real URI for testing
rdobuilder 42a24c
%{?python_provide:%python_provide python3-%{pypi_name}}
rdobuilder 42a24c
rdobuilder 42a24c
%description -n python3-%{pypi_name}
rdobuilder 42a24c
%{common_desc}
rdobuilder 42a24c
rdobuilder 42a24c
%package -n python-%{pypi_name}-doc
rdobuilder 42a24c
Summary:        Documentation for the wsgi-intercept module
rdobuilder 42a24c
rdobuilder 42a24c
%description -n python-%{pypi_name}-doc
rdobuilder 42a24c
Documentation for the wsgi-intercept module
rdobuilder 42a24c
rdobuilder 42a24c
rdobuilder 42a24c
%prep
rdobuilder 42a24c
%setup -q -n %{pypi_name}-%{version}
rdobuilder 42a24c
rdobuilder 42a24c
%generate_buildrequires
rdobuilder 42a24c
%pyproject_buildrequires -x testing -x docs
rdobuilder 42a24c
rdobuilder 42a24c
%build
rdobuilder 42a24c
%pyproject_wheel
rdobuilder 42a24c
rdobuilder 42a24c
# generate html docs
rdobuilder 42a24c
# Use tox macro -e docs once https://github.com/cdent/wsgi-intercept/pull/71 is merged
rdobuilder 42a24c
# and contained in a release.
rdobuilder 42a24c
export PYTHONPATH="$( pwd ):$PYTHONPATH"
rdobuilder 42a24c
sphinx-build docs build/sphinx
rdobuilder 42a24c
# remove the sphinx-build leftovers
rdobuilder 42a24c
rm -rf build/sphinx/.{doctrees,buildinfo}
rdobuilder 42a24c
rdobuilder 42a24c
%install
rdobuilder 42a24c
%pyproject_install
rdobuilder 42a24c
%pyproject_save_files wsgi_intercept
rdobuilder 42a24c
rdobuilder 42a24c
%check
rdobuilder 42a24c
# Use tox macro once https://github.com/cdent/wsgi-intercept/pull/71 is merged
rdobuilder 42a24c
# and contained in a release.
rdobuilder 42a24c
%{__python3} setup.py test
rdobuilder 42a24c
rdobuilder 42a24c
%files -n python3-%{pypi_name} -f %{pyproject_files}
rdobuilder 42a24c
%doc README
rdobuilder 42a24c
%license LICENSE
rdobuilder 42a24c
%exclude %{python3_sitelib}/%{pypi_name}/tests
rdobuilder 42a24c
rdobuilder 42a24c
%files -n python-%{pypi_name}-doc
rdobuilder 42a24c
%license LICENSE
rdobuilder 42a24c
%doc build/sphinx
rdobuilder 42a24c
rdobuilder 42a24c
%changelog
rdobuilder 42a24c
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-5
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-4
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-3
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 1.12.0-2
rdobuilder 42a24c
- Rebuilt for Python 3.12
rdobuilder 42a24c
rdobuilder 42a24c
* Mon Jul 03 2023 Joel Capitao <jcapitao@redhat.com> - 1.12.0-1
rdobuilder 42a24c
- Update to 1.12.0 (#2218071)
rdobuilder 42a24c
- Switch to pyproject-rpm-macros
rdobuilder 42a24c
rdobuilder 42a24c
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1.11.0-2
rdobuilder 42a24c
- Rebuilt for Python 3.12
rdobuilder 42a24c
rdobuilder 42a24c
* Tue May 23 2023 Joel Capitao <jcapitao@redhat.com> - 1.11.0-1
rdobuilder 42a24c
- Update to 1.11.0 (#2140362)
rdobuilder 42a24c
rdobuilder 42a24c
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Fri Aug 19 2022 Joel Capitao <jcapitao@redhat.com> - 1.10.0-1
rdobuilder 42a24c
- Update to 1.10.0 (#2040722)
rdobuilder 42a24c
rdobuilder 42a24c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-9
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 1.9.2-8
rdobuilder 42a24c
- Rebuilt for Python 3.11
rdobuilder 42a24c
rdobuilder 42a24c
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-7
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-6
rdobuilder 42a24c
- Second attempt - Rebuilt for
rdobuilder 42a24c
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.9.2-5
rdobuilder 42a24c
- Rebuilt for Python 3.10
rdobuilder 42a24c
rdobuilder 42a24c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-4
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-3
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.2-2
rdobuilder 42a24c
- Rebuilt for Python 3.9
rdobuilder 42a24c
rdobuilder 42a24c
* Tue Feb 11 2020 Yatin Karel <ykarel@redhat.com> - 1.9.2-1
rdobuilder 42a24c
- Update to 1.9.2 (Resolves #1429737)
rdobuilder 42a24c
rdobuilder 42a24c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-16
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-15
rdobuilder 42a24c
- Rebuilt for Python 3.8.0rc1 (#1748018)
rdobuilder 42a24c
rdobuilder 42a24c
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-14
rdobuilder 42a24c
- Rebuilt for Python 3.8
rdobuilder 42a24c
rdobuilder 42a24c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-13
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Thu May 09 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-12
rdobuilder 42a24c
- Subpackage python2-wsgi_intercept has been removed
rdobuilder 42a24c
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
rdobuilder 42a24c
rdobuilder 42a24c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-11
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-10
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-9
rdobuilder 42a24c
- Rebuilt for Python 3.7
rdobuilder 42a24c
rdobuilder 42a24c
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.2-8
rdobuilder 42a24c
- Update Python 2 dependency declarations to new packaging standards
rdobuilder 42a24c
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
rdobuilder 42a24c
rdobuilder 42a24c
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.2-7
rdobuilder 42a24c
- Escape macros in %%changelog
rdobuilder 42a24c
rdobuilder 42a24c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-6
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-5
rdobuilder 42a24c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
rdobuilder 42a24c
rdobuilder 42a24c
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-4
rdobuilder 42a24c
- Rebuild for Python 3.6
rdobuilder 42a24c
rdobuilder 42a24c
* Wed May 11 2016 Chandan Kumar <chkumar246@gmail.com> - 1.2.2-3
rdobuilder 42a24c
- Added missing python3 macro in %%check
rdobuilder 42a24c
rdobuilder 42a24c
* Wed May 11 2016 Chandan Kumar <chkumar246@gmail.com> - 1.2.2-2
rdobuilder 42a24c
- Applied python3 Alan Pevec patch
rdobuilder 42a24c
rdobuilder 42a24c
* Wed May 05 2016 Chandan Kumar <chkumar246@gmail.com> - 1.2.2-1
rdobuilder 42a24c
- Bumped to version 1.2.2
rdobuilder 42a24c
rdobuilder 42a24c
* Mon Sep 21 2015 Chandan Kumar <chkumar246@gmail.com> - 0.10.3-2
rdobuilder 42a24c
- Fixed import error
rdobuilder 42a24c
- Removed test folder
rdobuilder 42a24c
rdobuilder 42a24c
* Wed Sep 16 2015 Chandan Kumar <chkumar246@gmail.com> - 0.10.3-1
rdobuilder 42a24c
- Initial package.