forked from pool/python-httplib2
Accepting request 489328 from home:TheBlackCat:branches:devel:languages:python
Spec file cleanups OBS-URL: https://build.opensuse.org/request/show/489328 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httplib2?expand=0&rev=64
This commit is contained in:
parent
5f935d64e2
commit
a794be5468
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 19 14:16:35 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Spec file cleanups
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 12 18:16:09 UTC 2017 - toddrme2178@gmail.com
|
Wed Apr 12 18:16:09 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Tests require network connection
|
||||||
|
%bcond_with tests
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-httplib2
|
Name: python-httplib2
|
||||||
@ -27,17 +29,16 @@ Group: Development/Libraries/Python
|
|||||||
Source: http://pypi.python.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
|
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
|
||||||
Patch0: httplib2-use-system-certs.patch
|
Patch0: httplib2-use-system-certs.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
#%%python_buildrequires
|
|
||||||
# Test requirements (for ssl module):
|
|
||||||
#BuildRequires: python
|
|
||||||
Requires: ca-certificates
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with tests}
|
||||||
|
# Test requirements (for ssl module):
|
||||||
|
BuildRequires: python
|
||||||
|
BuildRequires: python3
|
||||||
|
%endif
|
||||||
|
Requires: ca-certificates
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
#%%define _specdir /home/matejcik/obs/home:matejcik:messing-with-macros/python-httplib2
|
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -55,13 +56,19 @@ left out of other HTTP libraries.
|
|||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
|
||||||
#%%check
|
%if %{with tests}
|
||||||
#python2 python2/httplib2test.py
|
%check
|
||||||
#python3 python3/httplib2test.py
|
%if %have_python2
|
||||||
|
python2 python2/httplib2test.py
|
||||||
|
%endif
|
||||||
|
%if %have_python2
|
||||||
|
python3 python3/httplib2test.py
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{python_sitelib}/httplib2-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/httplib2-%{version}-py*.egg-info
|
||||||
%{python_sitelib}/httplib2
|
%{python_sitelib}/httplib2
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user