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