Accepting request 1096901 from devel:languages:python
- Clean up SPEC file. OBS-URL: https://build.opensuse.org/request/show/1096901 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-httplib2?expand=0&rev=56
This commit is contained in:
commit
a6edd20665
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 5 07:47:13 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Clean up SPEC file.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 13 08:39:56 UTC 2023 - ecsos <ecsos@opensuse.org>
|
Tue Jun 13 08:39:56 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
@ -26,7 +26,8 @@ Summary: A Python HTTP client library
|
|||||||
License: Apache-2.0 AND MIT AND (GPL-2.0-or-later OR MPL-1.1 OR LGPL-2.1-or-later)
|
License: Apache-2.0 AND MIT AND (GPL-2.0-or-later OR MPL-1.1 OR LGPL-2.1-or-later)
|
||||||
URL: https://github.com/httplib2/httplib2
|
URL: https://github.com/httplib2/httplib2
|
||||||
Source: https://files.pythonhosted.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: ca-certificates
|
Requires: ca-certificates
|
||||||
@ -45,27 +46,21 @@ A comprehensive HTTP client library that supports many features
|
|||||||
left out of other HTTP libraries.
|
left out of other HTTP libraries.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n httplib2-%{version}
|
%autosetup -p1 -n httplib2-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%if %{with tests}
|
|
||||||
%check
|
%check
|
||||||
%if %{have_python2}
|
# Tests require network connection
|
||||||
python2 python2/httplib2test.py
|
# python3 python3/httplib2test.py
|
||||||
%endif
|
|
||||||
%if %{have_python3}
|
|
||||||
python3 python3/httplib2test.py
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%{python_sitelib}/httplib2-%{version}-py*.egg-info
|
%{python_sitelib}/httplib2-%{version}*-info
|
||||||
%{python_sitelib}/httplib2
|
%{python_sitelib}/httplib2
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user