Accepting request 507533 from home:okurz:branches:devel:languages:python
Convert to singlespec OBS-URL: https://build.opensuse.org/request/show/507533 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-service_identity?expand=0&rev=7
This commit is contained in:
parent
d5c32ceb9c
commit
340632a886
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jul 1 15:09:29 UTC 2017 - okurz@suse.com
|
||||||
|
|
||||||
|
- Convert to singlespec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 2 16:30:29 UTC 2016 - jacobwinski@gmail.com
|
Thu Jun 2 16:30:29 UTC 2016 - jacobwinski@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-service_identity
|
# spec file for package python-service_identity
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2014 LISA GmbH, Bingen, Germany.
|
# Copyright (c) 2014 LISA GmbH, Bingen, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -17,6 +17,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define oname service_identity
|
%define oname service_identity
|
||||||
|
|
||||||
Name: python-service_identity
|
Name: python-service_identity
|
||||||
@ -26,15 +27,17 @@ Summary: Service identity verification for pyOpenSSL
|
|||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/pyca/service_identity
|
Url: https://github.com/pyca/service_identity
|
||||||
Source0: https://pypi.python.org/packages/source/s/%{oname}/%{oname}-%{version}.tar.gz
|
Source0: https://pypi.io/packages/source/s/%{oname}/%{oname}-%{version}.tar.gz
|
||||||
BuildRequires: python-attrs
|
BuildRequires: %{python_module attrs}
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-pyOpenSSL >= 0.14
|
BuildRequires: %{python_module pyOpenSSL >= 0.14}
|
||||||
BuildRequires: python-pyasn1
|
BuildRequires: %{python_module pyasn1-modules}
|
||||||
BuildRequires: python-pyasn1-modules
|
BuildRequires: %{python_module pyasn1}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
# Documentation
|
# Documentation
|
||||||
BuildRequires: python-Sphinx
|
BuildRequires: %{python_module Sphinx}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
|
||||||
Requires: python-attrs
|
Requires: python-attrs
|
||||||
Requires: python-pyOpenSSL >= 0.14
|
Requires: python-pyOpenSSL >= 0.14
|
||||||
@ -49,6 +52,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
service_identity aspires to give you all the tools you need for
|
service_identity aspires to give you all the tools you need for
|
||||||
verifying whether a certificate is valid for the intended purposes.
|
verifying whether a certificate is valid for the intended purposes.
|
||||||
@ -61,22 +66,25 @@ relevant RFCs too.
|
|||||||
%setup -q -n %{oname}-%{version}
|
%setup -q -n %{oname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
# make man and documentation
|
# make man and documentation
|
||||||
cd docs
|
cd docs
|
||||||
make man singlehtml
|
make man singlehtml
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
|
||||||
# install man
|
# install man
|
||||||
install -Dm 0644 docs/_build/man/%{oname}.1 %{buildroot}%{_mandir}/man1/%{oname}.1
|
install -Dm 0644 docs/_build/man/%{oname}.1 %{buildroot}%{_mandir}/man1/%{oname}.1
|
||||||
|
%python_clone %{buildroot}%{_mandir}/man1/%{oname}.1
|
||||||
|
%fdupes %{buildroot}%{_prefix}
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS.rst LICENSE README.rst docs/_build/singlehtml/index.html
|
%doc AUTHORS.rst LICENSE README.rst docs/_build/singlehtml/index.html
|
||||||
%{_mandir}/man1/%{oname}.1%{ext_man}
|
%{_mandir}/man1/*-%{python_bin_suffix}.1%{?ext_man}
|
||||||
|
%python3_only %{_mandir}/man1/%{oname}.1%{?ext_man}
|
||||||
%{python_sitelib}/%{oname}
|
%{python_sitelib}/%{oname}
|
||||||
%{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info
|
%{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user