Please accept these changes. OBS-URL: https://build.opensuse.org/request/show/317792 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-service_identity?expand=0&rev=3
84 lines
2.7 KiB
RPMSpec
84 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-service_identity
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2014 LISA GmbH, Bingen, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define oname service_identity
|
|
|
|
Name: python-service_identity
|
|
Version: 14.0.0
|
|
Release: 0
|
|
Summary: Service identity verification for pyOpenSSL
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/pyca/service_identity
|
|
Source0: https://pypi.python.org/packages/source/s/%{oname}/%{oname}-%{version}.tar.gz
|
|
BuildRequires: python-characteristic
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-pyOpenSSL >= 0.12
|
|
BuildRequires: python-pyasn1
|
|
BuildRequires: python-pyasn1-modules
|
|
BuildRequires: python-setuptools
|
|
# Documentation
|
|
BuildRequires: python-Sphinx
|
|
|
|
Requires: python-characteristic
|
|
Requires: python-pyOpenSSL >= 0.12
|
|
Requires: python-pyasn1
|
|
Requires: python-pyasn1-modules
|
|
Requires: python-setuptools
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
%else
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
service_identity aspires to give you all the tools you need for
|
|
verifying whether a certificate is valid for the intended purposes.
|
|
|
|
In the simplest case, this means host name verification. However,
|
|
service_identity implements RFC 6125 fully and plans to add other
|
|
relevant RFCs too.
|
|
|
|
%prep
|
|
%setup -q -n %{oname}-%{version}
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
# make man and documentation
|
|
cd docs
|
|
make man singlehtml
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
# install man
|
|
install -Dm 0644 docs/_build/man/%{oname}.1 %{buildroot}%{_mandir}/man1/%{oname}.1
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS.rst LICENSE README.rst docs/_build/singlehtml/index.html
|
|
%{_mandir}/man1/%{oname}.1%{ext_man}
|
|
%{python_sitelib}/%{oname}
|
|
%{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info
|
|
|
|
%changelog
|