From a2e40a4f372f10345f79c36683f5c4b9d4f3d894 Mon Sep 17 00:00:00 2001 From: tigro Date: Wed, 13 Dec 2023 17:14:30 +0300 Subject: [PATCH] import python-pretend-1.0.8-13.el8 --- .gitignore | 1 + .python-pretend.metadata | 1 + SPECS/python-pretend.spec | 147 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 149 insertions(+) create mode 100644 .gitignore create mode 100644 .python-pretend.metadata create mode 100644 SPECS/python-pretend.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..03ed644 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pretend-1.0.8.tar.gz diff --git a/.python-pretend.metadata b/.python-pretend.metadata new file mode 100644 index 0000000..a35cc5d --- /dev/null +++ b/.python-pretend.metadata @@ -0,0 +1 @@ +6d45d1d5062ccc7be755385bef19237f857c8380 SOURCES/pretend-1.0.8.tar.gz diff --git a/SPECS/python-pretend.spec b/SPECS/python-pretend.spec new file mode 100644 index 0000000..991e36d --- /dev/null +++ b/SPECS/python-pretend.spec @@ -0,0 +1,147 @@ +%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 + +%global srcname pretend + +Name: python-pretend +Version: 1.0.8 +Release: 13%{?dist} +Summary: A library for stubbing in Python + +Group: Development/Libraries +License: BSD +URL: https://github.com/alex/pretend +Source0: https://pypi.python.org/packages/source/p/%{srcname}/%{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 + + +%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 +%autosetup -n %{srcname}-%{version} + + +%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} +%files -n python3-pretend +%doc PKG-INFO README.rst +%license LICENSE.rst +%{python3_sitelib}/pretend.py +%{python3_sitelib}/__pycache__/pretend.cpython-3?* +%{python3_sitelib}/pretend-%{version}-py3.?.egg-info +%endif + + +%changelog +* Wed Dec 13 2023 Arkady L. Shane - 1.0.8-13 +- Rebuilt for MSVSphere 8.9 + +* Wed Jun 20 2018 Charalampos Stratakis - 1.0.8-13 +- Conditionalize the python2 subpackage + +* Fri Feb 09 2018 Fedora Release Engineering - 1.0.8-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Sep 29 2017 Troy Dawson - 1.0.8-11 +- Cleanup spec file conditionals + +* Thu Jul 27 2017 Fedora Release Engineering - 1.0.8-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jun 30 2017 Piotr Popieluch - 1.0.8-9 +- Update to new package guidelines + +* Sat Feb 11 2017 Fedora Release Engineering - 1.0.8-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 12 2016 Charalampos Stratakis - 1.0.8-7 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.0.8-6 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Oct 14 2015 Robert Kuska - 1.0.8-4 +- Rebuilt for Python3.5 rebuild +- Change pattern for listed files under __pycache__ folder to follow new naming of bytecompiled files + +* Thu Jun 18 2015 Fedora Release Engineering - 1.0.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Nov 22 2014 Piotr Popieluch - 1.0.8-2 +- Added epel support + +* Mon Oct 20 2014 Piotr Popieluch - 1.0.8-1 +- Initial package