410f58
# Created by pyp2rpm-1.1.1
410f58
%global sname wrapt
410f58
410f58
%if 0%{?fedora} || 0%{?rhel} >= 8
410f58
%global with_docs 1
410f58
%endif
410f58
410f58
%{!?_licensedir: %global license %%doc}
410f58
410f58
Name:           python-%{sname}
410f58
Version:        1.12.1
410f58
Release:        4%{?dist}
410f58
Summary:        A Python module for decorators, wrappers and monkey patching
410f58
410f58
License:        BSD
410f58
URL:            https://github.com/GrahamDumpleton/wrapt
410f58
Source0:        https://github.com/GrahamDumpleton/%{sname}/archive/%{version}.tar.gz
410f58
410f58
BuildRequires:  gcc
410f58
410f58
BuildRequires:  python3-devel
410f58
410f58
%global _description\
410f58
The aim of the wrapt module is to provide a transparent object proxy\
410f58
for Python, which can be used as the basis for the construction of\
410f58
function wrappers and decorator functions.
410f58
410f58
%description %_description
410f58
410f58
%if 0%{?with_docs}
410f58
%package doc
410f58
Summary:        Documentation for the wrapt module
410f58
410f58
BuildRequires:  python3-sphinx
410f58
BuildRequires:  python3-sphinx_rtd_theme
410f58
410f58
%description doc
410f58
Documentation for the wrapt module
410f58
%endif
410f58
410f58
%package -n python3-wrapt
410f58
Summary:        A Python module for decorators, wrappers and monkey patching
410f58
%{?python_provide:%python_provide python3-wrapt}
410f58
410f58
%description -n python3-wrapt
410f58
The aim of the wrapt module is to provide a transparent object proxy
410f58
for Python, which can be used as the basis for the construction of
410f58
function wrappers and decorator functions.
410f58
410f58
%prep
410f58
%setup -q -n %{sname}-%{version}
410f58
410f58
# Remove bundled egg-info in case it exists
410f58
rm -rf %{sname}.egg-info
410f58
410f58
%build
410f58
%py3_build
410f58
410f58
%if 0%{?with_docs}
410f58
# for docs
410f58
pushd docs
410f58
sphinx-build -b html -d build/doctrees . build/html
410f58
popd
410f58
%endif
410f58
410f58
%install
410f58
%py3_install
410f58
410f58
%if 0%{?with_docs}
410f58
%files doc
410f58
%doc docs/build/html
410f58
%endif
410f58
410f58
%files -n python3-wrapt
410f58
%doc README.rst
410f58
%license LICENSE
410f58
%{python3_sitearch}/%{sname}
410f58
%{python3_sitearch}/%{sname}-%{version}-py%{python3_version}.egg-info
410f58
410f58
%changelog
410f58
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-4
410f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
410f58
410f58
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-3
410f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
410f58
410f58
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.12.1-2
410f58
- Rebuilt for Python 3.9
410f58
410f58
* Tue Mar 17 2020 Clément Verna <cverna@fedoraproject.org> - 1.12.1-1
410f58
- Update to 1.12.1. Fixes bug #1803787
410f58
410f58
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.2-5
410f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
410f58
410f58
* Wed Sep 11 2019 Miro Hrončok <mhroncok@redhat.com> - 1.11.2-4
410f58
- Subpackage python2-wrapt has been removed
410f58
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
410f58
410f58
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.11.2-3
410f58
- Rebuilt for Python 3.8
410f58
410f58
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.2-2
410f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
410f58
410f58
* Sat Jun 22 2019 Kevin Fenzi <kevin@scrye.com> - 1.11.2-1
410f58
- Update to 1.11.2. Fixes bug #1667650
410f58
410f58
* Thu Feb 07 2019 Javier Peña <jpena@redhat.com> - 1.11.1-1
410f58
- Update to upstream 1.11.1
410f58
410f58
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.11-6
410f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
410f58
410f58
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.11-5
410f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
410f58
410f58
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.10.11-4
410f58
- Rebuilt for Python 3.7
410f58
410f58
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.10.11-3
410f58
- Update Python 2 dependency declarations to new packaging standards
410f58
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
410f58
410f58
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.11-2
410f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
410f58
410f58
* Sun Dec 17 2017 Kevin Fenzi <kevin@scrye.com> - 1.10.11-1
410f58
- Update to 1.10.11. Fixes bug #1480582
410f58
410f58
* Wed Sep 27 2017 Troy Dawson <tdawson@redhat.com> - 1.10.10-5
410f58
- Cleanup spec file conditionals
410f58
410f58
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.10.10-4
410f58
- Python 2 binary package renamed to python2-wrapt
410f58
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
410f58
410f58
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.10-3
410f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
410f58
410f58
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.10-2
410f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
410f58
410f58
* Wed Mar 15 2017 Ralph Bean <rbean@redhat.com> - 1.10.10-1
410f58
- new version
410f58
410f58
* Wed Mar 15 2017 Ralph Bean <rbean@redhat.com> - 1.10.9-1
410f58
- new version
410f58
410f58
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.8-4
410f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
410f58
410f58
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.8-3
410f58
- Rebuild for Python 3.6
410f58
410f58
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.8-2
410f58
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
410f58
410f58
* Fri Apr 15 2016 Kevin Fenzi <kevin@scrye.com> - 1.10.8-1
410f58
- Update to 1.10.8. Fixes bug #1325923
410f58
410f58
* Mon Apr 04 2016 Ralph Bean <rbean@redhat.com> - 1.10.7-1
410f58
- new version
410f58
410f58
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.5-3
410f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
410f58
410f58
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.5-2
410f58
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
410f58
410f58
* Mon Jul 06 2015 Ralph Bean <rbean@redhat.com> - 1.10.5-1
410f58
- new version
410f58
410f58
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.4-7
410f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
410f58
410f58
* Fri May 15 2015 Ralph Bean <rbean@redhat.com> - 1.10.4-6
410f58
- Don't build docs on epel7 (the rtd theme is problematic).
410f58
410f58
* Sat Apr 11 2015 Ralph Bean <rbean@redhat.com> - 1.10.4-5
410f58
- Add python3 subpackage
410f58
410f58
* Wed Mar 25 2015 Chandan Kumar <chkumar246@gmail.com> - 1.10.4-4
410f58
- Added doc files for doc subpackage
410f58
410f58
* Wed Mar 25 2015 Chandan Kumar <chkumar246@gmail.com> - 1.10.4-3
410f58
- Fixed Docs
410f58
410f58
* Tue Mar 24 2015 Chandan Kumar <chkumar246@gmail.com> - 1.10.4-2
410f58
- Removed cflags and group section fro doc subpackage
410f58
410f58
* Tue Mar 24 2015 Chandan Kumar <chkumar246@gmail.com> - 1.10.4-1
410f58
- Bumped to upstream version 1.10.4
410f58
- Add docs
410f58
410f58
* Wed Mar 11 2015 Chandan Kumar <chkumar246@gmail.com> - 1.10.2-1
410f58
- Initial package.