From 34eae97d0447ea1756d3c3061bb15aa2cf1abd5d Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Wed, 16 May 2018 18:03:35 +0200 Subject: [PATCH 1/3] Back port to EPEL7 --- python-httmock.spec | 35 +++++++---------------------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/python-httmock.spec b/python-httmock.spec index 99724d5..61e4ce3 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 1.2.6 -Release: 1%{?dist} +Release: 1%{?dist}.1 Summary: A mocking library for requests License: ASL 2.0 @@ -13,12 +13,8 @@ Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/test BuildArch: noarch BuildRequires: python2-devel -BuildRequires: python2dist(requests) >= 1.0.0 -BuildRequires: python2dist(setuptools) - -BuildRequires: python3-devel -BuildRequires: python3dist(requests) >= 1.0.0 -BuildRequires: python3dist(setuptools) +BuildRequires: python2-requests >= 1.0.0 +BuildRequires: python2-setuptools %description A mocking library for requests for Python. @@ -27,24 +23,13 @@ that use requests internally. %package -n python2-%{pypi_name} Summary: %{summary} -%{?python_provide:%python_provide python2-%{pypi_name}} -Requires: python2dist(requests) >= 1.0.0 +Requires: python2-requests >= 1.0.0 %description -n python2-%{pypi_name} A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries that use requests internally. -%package -n python3-%{pypi_name} -Summary: %{summary} -%{?python_provide:%python_provide python3-%{pypi_name}} - -Requires: python3dist(requests) >= 1.0.0 -%description -n python3-%{pypi_name} -A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. - %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info @@ -53,17 +38,14 @@ cp %{SOURCE1} . %build %py2_build -%py3_build %install # Must do the default python version install last because # the scripts in /usr/bin are overwritten with every setup.py install. %py2_install -%py3_install %check %{__python2} setup.py test -%{__python3} setup.py test %files -n python2-%{pypi_name} %license LICENSE @@ -71,13 +53,10 @@ cp %{SOURCE1} . %{python2_sitelib}/%{pypi_name}.py* %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info -%files -n python3-%{pypi_name} -%license LICENSE -%doc README.md -%{python3_sitelib}/__pycache__/* -%{python3_sitelib}/%{pypi_name}.py -%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Fri May 11 2018 Steve Traylen - 1.2.6-1 1 +- Back port to EPEL7 + * Fri May 11 2018 Steve Traylen - 1.2.6-1 - Initial package. From 3b9079c50340ca3d6c48a92df234b9e477a19f24 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Wed, 13 Nov 2019 15:02:40 +0100 Subject: [PATCH 2/3] Add python36-httmock and python34-httmock --- httmock-1.3.0.tar.gz | Bin 0 -> 4428 bytes python-httmock.spec | 55 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 httmock-1.3.0.tar.gz diff --git a/httmock-1.3.0.tar.gz b/httmock-1.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0c3e61534ab5205144949f179cfcae7a0e981a95 GIT binary patch literal 4428 zcmV-S5wq?eiwFqdI!{~z|72-%bT4RhbZu{AYb`M@GcGVLbYXG;?LGT*@-@@%>XBgyk{MGZ3xf8kH~HVYiwEC&_|E4h4KWvs z1Q*N2K7a*w!Q2V42qyP?9jEKG_jkTZX+t?aJXF6&>bHH+Q@^V0bh^ER?os!!+iUN% zJ8;$8A%{CJP~u2XPRLG31z$$1;Q(wl+t5kui241Ml)Ie#zaO5SUyRPbg8Ywqy;bt> zblQhT{=LKA0m#31)a&e!b}j#}UQUB>$=&&#AO~P};fj7M(ZlLMzsYy{ZVk9M1XLKMp&CJVYGejrF3F~H$Q zWafH|u#XcK3gY@?5-dW`rT&DGM_1g*_h>8*;`oQg5!?z2;1n8!a5u{W5-KFggn(X$ z{r&yN$47@sVx54`_dNv`8Aaa%f@OpEzQ>}7aQ3g*<h~zzLmm z2G2x*PCXQx3S1^%Mb^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hu_AgE;(3^zZ$1A=tgTn$>D=_}=A zRqY_>e3FkD$A*2J$bC$8^*}vcb(?cBtBGErXHV(DW=U8XPuRExX7_!yTaoM%sQn7K zh;YjyyB*jpIIW2joO6TZax(jUfR(PtX0IdT)uwwK6?ky(dSz3!Wr+J^db&(cxNO)v zOxlPZd&|JS~DUYe(+gI%zt=Yxh zZYQWtr1+o6|4>Q(li7Udw- z-xIFeR&CzDDf@rk?5~aA|LGic68rBRb=3d=6$^K@FAMq)3N-p&7e{7VH*tx3#>t7Vf@$orXz(HF z)wOzduh07qG9en^ls@x|ms#jZa#R)?q_MXxj{RnibZ-IP&4O<@^qU3U_RMd#&E_M& zruX_wDr0m0CBrjJr;}$T46ObT&p@lQt_*ybKr=d%(dd@Ww1f3@6uScSPe@@j>v^^= Sb*ak>mj3`BYcJjacmM!U8`S~; literal 0 HcmV?d00001 diff --git a/python-httmock.spec b/python-httmock.spec index 61e4ce3..45f2036 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 1.2.6 -Release: 1%{?dist}.1 +Release: 2%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -16,6 +16,14 @@ BuildRequires: python2-devel BuildRequires: python2-requests >= 1.0.0 BuildRequires: python2-setuptools +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-requests >= 1.0.0 +BuildRequires: python%{python3_pkgversion}-setuptools + +BuildRequires: python%{python3_other_pkgversion}-devel +BuildRequires: python%{python3_other_pkgversion}-requests >= 1.0.0 +BuildRequires: python%{python3_other_pkgversion}-setuptools + %description A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries @@ -25,11 +33,33 @@ that use requests internally. Summary: %{summary} Requires: python2-requests >= 1.0.0 +%{?python_provide:%python_provide python2-%{pypi_name}} + %description -n python2-%{pypi_name} A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries that use requests internally. +%package -n python%{python3_pkgversion}-%{pypi_name} +Summary: %{summary} + +Requires: python%{python3_pkgversion}-requests >= 1.0.0 +%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} +%description -n python%{python3_pkgversion}-%{pypi_name} +A mocking library for requests for Python. +You can use it to mock third-party APIs and test libraries +that use requests internally. + +%package -n python%{python3_other_pkgversion}-%{pypi_name} +Summary: %{summary} + +Requires: python%{python3_other_pkgversion}-requests >= 1.0.0 +%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pypi_name}} +%description -n python%{python3_other_pkgversion}-%{pypi_name} +A mocking library for requests for Python. +You can use it to mock third-party APIs and test libraries +that use requests internally. + %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info @@ -38,14 +68,20 @@ cp %{SOURCE1} . %build %py2_build +%py3_build +%py3_other_build %install # Must do the default python version install last because # the scripts in /usr/bin are overwritten with every setup.py install. %py2_install +%py3_install +%py3_other_install %check %{__python2} setup.py test +%{__python3} setup.py test +%{__python3_other} setup.py test %files -n python2-%{pypi_name} %license LICENSE @@ -53,8 +89,25 @@ cp %{SOURCE1} . %{python2_sitelib}/%{pypi_name}.py* %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%files -n python%{python3_pkgversion}-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name}.py* +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%{python3_sitelib}/__pycache__/%{pypi_name}.cpython-* + +%files -n python%{python3_other_pkgversion}-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_other_sitelib}/%{pypi_name}.py* +%{python3_other_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%{python3_other_sitelib}/__pycache__/%{pypi_name}.cpython-* + %changelog +* Wed Nov 13 2019 Steve Traylen - 1.2.6-2 +- Add python3 packages to epel7 + * Fri May 11 2018 Steve Traylen - 1.2.6-1 1 - Back port to EPEL7 From 8be3a0d0e52c27cd28f2da27091996251b821967 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Wed, 13 Nov 2019 15:05:50 +0100 Subject: [PATCH 3/3] delete some white space --- python-httmock.spec | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/python-httmock.spec b/python-httmock.spec index 45f2036..a71d84f 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -11,7 +11,7 @@ URL: https://github.com/patrys/httmock Source0: https://files.pythonhosted.org/packages/source/h/httmock/httmock-%{version}.tar.gz Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py BuildArch: noarch - + BuildRequires: python2-devel BuildRequires: python2-requests >= 1.0.0 BuildRequires: python2-setuptools @@ -26,39 +26,39 @@ BuildRequires: python%{python3_other_pkgversion}-setuptools %description A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. +You can use it to mock third-party APIs and test libraries +that use requests internally. %package -n python2-%{pypi_name} Summary: %{summary} - + Requires: python2-requests >= 1.0.0 %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. +You can use it to mock third-party APIs and test libraries +that use requests internally. %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} - + Requires: python%{python3_pkgversion}-requests >= 1.0.0 %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} %description -n python%{python3_pkgversion}-%{pypi_name} A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. +You can use it to mock third-party APIs and test libraries +that use requests internally. %package -n python%{python3_other_pkgversion}-%{pypi_name} Summary: %{summary} - + Requires: python%{python3_other_pkgversion}-requests >= 1.0.0 %{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pypi_name}} %description -n python%{python3_other_pkgversion}-%{pypi_name} A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. +You can use it to mock third-party APIs and test libraries +that use requests internally. %prep %autosetup -n %{pypi_name}-%{version}