Compare commits

...

1 Commits
i8 ... i10ce

2
.gitignore vendored

@ -1 +1 @@
SOURCES/pretend-1.0.8.tar.gz
SOURCES/pretend-1.0.9.tar.gz

@ -1 +1 @@
6d45d1d5062ccc7be755385bef19237f857c8380 SOURCES/pretend-1.0.8.tar.gz
19cd1d7127b7075e3e502ebff5b6303c20b5f359 SOURCES/pretend-1.0.9.tar.gz

@ -1,64 +1,41 @@
%if 0%{?fedora} || 0%{?rhel} > 7
%bcond_without python3
%else
%bcond_with python3
%endif
%if 0%{?rhel} > 7
# Disable python2 build by default
%bcond_with python2
%else
%bcond_without python2
%endif
## START: Set by rpmautospec
## (rpmautospec version 0.7.2)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 14;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
%global srcname pretend
Name: python-pretend
Version: 1.0.8
Release: 13%{?dist}
Version: 1.0.9
Release: %autorelease
Summary: A library for stubbing in Python
Group: Development/Libraries
License: BSD
License: BSD-3-Clause
URL: https://github.com/alex/pretend
Source0: https://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
%if %{with python2}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%endif # with python2
%if %{with python3}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%endif
BuildRequires: python3-pytest
%description
Pretend is a library to make stubbing with Python easier.
%if %{with python2}
%package -n python2-pretend
Summary: A library for stubbing in Python
License: BSD
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-pretend
Pretend is a library to make stubbing with Python easier.
%endif # with python2
%if %{with python3}
%package -n python3-pretend
Summary: A library for stubbing in Python
License: BSD
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-pretend
Pretend is a library to make stubbing with Python easier.
%endif
%prep
@ -66,48 +43,107 @@ Pretend is a library to make stubbing with Python easier.
%build
%if %{with python2}
%py2_build
%endif # with python2
%if %{with python3}
%py3_build
%endif
%install
%if %{with python2}
%py2_install
%endif # with python2
%if %{with python3}
%py3_install
%endif
%if %{with python2}
%files -n python2-pretend
%doc PKG-INFO README.rst
%license LICENSE.rst
%{python2_sitelib}/pretend.py*
%{python2_sitelib}/pretend-%{version}-py2.?.egg-info
%endif # with python2
%if %{with python3}
%check
%pytest -v
%files -n python3-pretend
%doc PKG-INFO README.rst
%doc README.rst
%license LICENSE.rst
%{python3_sitelib}/pretend.py
%{python3_sitelib}/__pycache__/pretend.cpython-3?*
%{python3_sitelib}/pretend-%{version}-py3.?.egg-info
%endif
%pycached %{python3_sitelib}/pretend.py
%{python3_sitelib}/pretend-%{version}-py%{python3_version}.egg-info/
%changelog
* Wed Dec 13 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.0.8-13
- Rebuilt for MSVSphere 8.9
* Sat Dec 28 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.0.9-14
- Rebuilt for MSVSphere 10
## START: Generated by rpmautospec
* Mon Sep 23 2024 Michel Lind <salimma@fedoraproject.org> - 1.0.9-14
- Audit license, convert to BSD-3-Clause
* Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 1.0.9-13
- convert license to SPDX
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1.0.9-11
- Rebuilt for Python 3.13
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.0.9-6
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Jun 20 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.0.8-13
- Conditionalize the python2 subpackage
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.0.9-3
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Aug 13 2021 Miro Hrončok <mhroncok@redhat.com> - 1.0.9-1
- Update to 1.0.9
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.0.8-24
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.8-21
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Oct 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.8-19
- Subpackage python2-pretend has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.8-18
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.8-17
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.8-13
- Rebuilt for Python 3.7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@ -145,3 +181,5 @@ Pretend is a library to make stubbing with Python easier.
* Mon Oct 20 2014 Piotr Popieluch <piotr1212@gmail.com> - 1.0.8-1
- Initial package
## END: Generated by rpmautospec

Loading…
Cancel
Save