From e0887aa6676faaf88cfa64239d6d6335f4b0bb57 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 10 2018 05:50:11 +0000 Subject: import python-msrest-0.4.18-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dca16b3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/msrest-0.4.18.tar.gz diff --git a/.python-msrest.metadata b/.python-msrest.metadata new file mode 100644 index 0000000..1ad0f74 --- /dev/null +++ b/.python-msrest.metadata @@ -0,0 +1 @@ +e99ab57943eded8c3d43cd8ceba4ea8c022c7f7b SOURCES/msrest-0.4.18.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/python-msrest-0.4.11-build.patch b/SOURCES/python-msrest-0.4.11-build.patch new file mode 100644 index 0000000..924c43b --- /dev/null +++ b/SOURCES/python-msrest-0.4.11-build.patch @@ -0,0 +1,36 @@ +diff -up ./setup.py.orig ./setup.py +--- ./setup.py.orig 2017-06-21 21:09:56.000000000 +0200 ++++ ./setup.py 2017-06-30 14:09:35.185100223 +0200 +@@ -25,6 +25,17 @@ + # -------------------------------------------------------------------------- + + from setuptools import setup ++import sys ++ ++requirements = [ ++ "requests", ++ "requests_oauthlib>=0.5.0", ++ "isodate>=0.5.4", ++ "certifi" ++] ++if sys.version_info[0] == 2: ++ requirements.append('enum34>=1.0.4') ++ + + setup( + name='msrest', +@@ -47,13 +58,5 @@ setup( + 'Programming Language :: Python :: 3.6', + 'License :: OSI Approved :: MIT License', + 'Topic :: Software Development'], +- install_requires=[ +- "requests~=2.14", +- "requests_oauthlib>=0.5.0", +- "isodate>=0.5.4", +- "certifi>=2017.4.17", +- ], +- extras_require={ +- ":python_version<'3.4'": ['enum34>=1.0.4'], +- } ++ install_requires=requirements + ) diff --git a/SPECS/python-msrest.spec b/SPECS/python-msrest.spec new file mode 100644 index 0000000..1a61cf2 --- /dev/null +++ b/SPECS/python-msrest.spec @@ -0,0 +1,190 @@ +%if 0%{?fedora} +%global _with_python3 1 +%global _with_tests 1 +%endif + +%if 0%{?rhel} +%global py2_prefix python +%else +%global py2_prefix python2 +%endif + +%global srcname msrest + +%global common_summary AutoRest swagger generator Python client runtime +%global common_description %{common_summary}. + +Name: python-%{srcname} +Version: 0.4.18 +Release: 1%{?dist} +Summary: %{common_summary} + +Group: System Environment/Libraries +License: MIT +URL: https://github.com/Azure/msrest-for-python/ +Source0: %{srcname}-%{version}.tar.gz +# - Disable versioned dependencies not yet available in Fedora/EPEL +# - Fix setup.py for older versions of setuptools (EPEL) +Patch0: %{name}-0.4.11-build.patch + +BuildRequires: %{py2_prefix}-setuptools +BuildRequires: python-devel + +Requires: python-enum34 +Requires: python-isodate +Requires: %{py2_prefix}-requests +Requires: %{py2_prefix}-requests-oauthlib + +%if 0%{?_with_python3} +BuildRequires: python3-devel +%endif +# Needed for tests +%if 0%{?_with_tests} +BuildRequires: %{py2_prefix}-certifi +BuildRequires: python-enum34 +BuildRequires: python-httpretty +BuildRequires: python-isodate +BuildRequires: %{py2_prefix}-requests +BuildRequires: %{py2_prefix}-requests-oauthlib +%if 0%{?_with_python3} +BuildRequires: python3-certifi +BuildRequires: python3-httpretty +BuildRequires: python3-isodate +BuildRequires: python3-requests +BuildRequires: python3-requests-oauthlib +%endif +%endif +BuildArch: noarch + +%description +%{common_description} + + +%if 0%{?_with_python3} +%package -n python3-%{srcname} +Summary: %{common_summary} +Requires: python3-isodate +Requires: python3-requests +Requires: python3-requests-oauthlib +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +%{common_description} +%endif + + +%prep +%autosetup -n %{srcname}-for-python-%{version} + +# Remove failing test +# TODO: report bug upstream +rm tests/test_serialization.py + + +%build +%py2_build +%{?_with_python3:%py3_build} + + +%install +%py2_install +%{?_with_python3:%py3_install} + + +%check +%if 0%{?_with_tests} +%{__python2} setup.py test +%{?_with_python3:%{__python3} setup.py test} +%endif + + +%files -n python-%{srcname} +%doc README.rst +%license LICENSE.md +%{python2_sitelib}/* + + +%if 0%{?_with_python3} +%files -n python3-%{srcname} +%doc README.rst +%license LICENSE.md +%{python3_sitelib}/* +%endif + + +%changelog +* Fri Nov 10 2017 Mohamed El Morabity - 0.4.18-1 +- Update to 0.4.18 + +* Tue Oct 17 2017 Mohamed El Morabity - 0.4.17-1 +- Update to 0.4.17 + +* Fri Oct 06 2017 Mohamed El Morabity - 0.4.16-1 +- Update to 0.4.16 + +* Wed Aug 30 2017 Mohamed El Morabity - 0.4.14-1 +- Update to 0.4.14 +- Use python2- prefix for Fedora dependencies if possible + +* Thu Jul 27 2017 Fedora Release Engineering - 0.4.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jun 30 2017 Mohamed El Morabity - 0.4.11-1 +- Update to 0.4.11 + +* Fri Jun 09 2017 Mohamed El Morabity - 0.4.9-1 +- Update to 0.4.9 + +* Tue May 30 2017 Mohamed El Morabity - 0.4.8-2 +- Disable version check on certifi in setup.py + +* Tue May 30 2017 Mohamed El Morabity - 0.4.8-1 +- Update to 0.4.8 + +* Wed Apr 05 2017 Mohamed El Morabity - 0.4.7-1 +- Update to 0.4.7 + +* Tue Mar 07 2017 Mohamed El Morabity - 0.4.6-1 +- Update to 0.4.6 + +* Tue Feb 14 2017 Mohamed El Morabity - 0.4.5-1 +- Update to 0.4.5 + +* Thu Jan 26 2017 Mohamed El Morabity - 0.4.4-2 +- Add license file + +* Tue Sep 27 2016 Mohamed El Morabity - 0.4.4-1 +- Update to 0.4.4 + +* Mon Sep 05 2016 Mohamed El Morabity - 0.4.3-1 +- Update to 0.4.3 + +* Fri Jun 24 2016 Mohamed El Morabity - 0.4.0-2 +- Fix tests for Fedora >= 24 + +* Thu May 26 2016 Mohamed El Morabity - 0.4.0-1 +- Update to 0.4.0 + +* Sun May 01 2016 Mohamed El Morabity - 0.3.0-1 +- Update to 0.3.0 + +* Fri Apr 01 2016 Mohamed El Morabity - 0.2.0-1 +- Update to 0.2.0 + +* Fri Mar 25 2016 Mohamed El Morabity - 0.1.3-2 +- Add missing depedency to enum34 Python module + +* Wed Mar 23 2016 Mohamed El Morabity - 0.1.3-1 +- Update to 0.1.3 + +* Wed Mar 16 2016 Mohamed El Morabity - 0.1.2-1 +- Update to 0.1.2 + +* Sat Mar 05 2016 Mohamed El Morabity - 0.1.1-1 +- Update to 0.1.1 + +* Wed Mar 02 2016 Mohamed El Morabity - 0.0.3-1 +- Update to 0.0.3 + +* Sun Feb 28 2016 Mohamed El Morabity - 0.0.2-1 +- Initial RPM release