Hello community,
here is the log from the commit of package python-service_identity for
openSUSE:Factory checked in at 2017-07-11 08:24:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-service_identity (Old)
and /work/SRC/openSUSE:Factory/.python-service_identity.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-service_identity"
Tue Jul 11 08:24:53 2017 rev:3 rq:507914 version:16.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-service_identity/python-service_identity.changes
2016-07-15 12:45:14.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python-service_identity.new/python-service_identity.changes
2017-07-11 08:24:54.355397892 +0200
@@ -1,0 +2,5 @@
+Sat Jul 1 15:09:29 UTC 2017 - [email protected]
+
+- Convert to singlespec
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-service_identity.spec ++++++
--- /var/tmp/diff_new_pack.P8H5no/_old 2017-07-11 08:24:54.875324560 +0200
+++ /var/tmp/diff_new_pack.P8H5no/_new 2017-07-11 08:24:54.879323996 +0200
@@ -1,7 +1,7 @@
#
# 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.
#
# 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
Name: python-service_identity
@@ -26,15 +27,17 @@
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-attrs
-BuildRequires: python-devel
-BuildRequires: python-pyOpenSSL >= 0.14
-BuildRequires: python-pyasn1
-BuildRequires: python-pyasn1-modules
-BuildRequires: python-setuptools
+Source0:
https://pypi.io/packages/source/s/%{oname}/%{oname}-%{version}.tar.gz
+BuildRequires: %{python_module attrs}
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module pyOpenSSL >= 0.14}
+BuildRequires: %{python_module pyasn1-modules}
+BuildRequires: %{python_module pyasn1}
+BuildRequires: %{python_module setuptools}
# Documentation
-BuildRequires: python-Sphinx
+BuildRequires: %{python_module Sphinx}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
Requires: python-attrs
Requires: python-pyOpenSSL >= 0.14
@@ -49,6 +52,8 @@
BuildArch: noarch
%endif
+%python_subpackages
+
%description
service_identity aspires to give you all the tools you need for
verifying whether a certificate is valid for the intended purposes.
@@ -61,22 +66,25 @@
%setup -q -n %{oname}-%{version}
%build
-python setup.py build
+%python_build
# make man and documentation
cd docs
make man singlehtml
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
# install man
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,-)
%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}-%{version}-py%{py_ver}.egg-info