14
0

Accepting request 504766 from home:okurz:matrix-synapse

Convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/504766
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysaml2?expand=0&rev=13
This commit is contained in:
2017-06-30 11:03:36 +00:00
committed by Git OBS Bridge
parent 25668c3a6e
commit a0efb901d4
2 changed files with 44 additions and 33 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 19 08:57:42 UTC 2017 - okurz@suse.com
- Convert to singlespec
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 22 15:18:26 UTC 2016 - dmueller@suse.com Tue Nov 22 15:18:26 UTC 2016 - dmueller@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pysaml2 # spec file for package python-pysaml2
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,35 +16,40 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Test reqs are heavy, thus only have it on demand: # Test reqs are heavy, thus only have it on demand:
%bcond_with tests %bcond_with tests
Name: python-pysaml2 Name: python-pysaml2
%global modname pysaml2
Version: 4.4.0 Version: 4.4.0
Release: 0 Release: 0
Summary: Python implementation of SAML Version 2 to be used in a WSGI environment Summary: Python implementation of SAML Version 2 to be used in a WSGI environment
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/rohe/pysaml2 Url: https://github.com/rohe/%{modname}
Source: https://pypi.python.org/packages/source/p/pysaml2/pysaml2-%{version}.tar.gz Source: https://pypi.io/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
BuildRequires: python-devel BuildRequires: %{python_module devel}
BuildRequires: python-setuptools BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# Test requirements: # Test requirements:
%if %{with tests} %if %{with tests}
BuildRequires: python-decorator BuildRequires: %{python_module decorator}
BuildRequires: python-future BuildRequires: %{python_module future}
BuildRequires: python-mako BuildRequires: %{python_module mako}
BuildRequires: python-mongodict BuildRequires: %{python_module mongodict}
BuildRequires: python-pyOpenSSL BuildRequires: %{python_module pyOpenSSL}
BuildRequires: python-pyasn1 BuildRequires: %{python_module pyasn1}
BuildRequires: python-pycryptodomex BuildRequires: %{python_module pycryptodomex}
BuildRequires: python-pymongo BuildRequires: %{python_module pymongo}
BuildRequires: python-pytest BuildRequires: %{python_module pytest}
BuildRequires: python-python-dateutil BuildRequires: %{python_module python-dateutil}
BuildRequires: python-python-memcached BuildRequires: %{python_module python-memcached}
BuildRequires: python-pytz BuildRequires: %{python_module pytz}
BuildRequires: python-repoze.who BuildRequires: %{python_module repoze.who}
BuildRequires: python-requests >= 1.0.0 BuildRequires: %{python_module requests >= 1.0.0}
%endif %endif
%if 0%{?suse_release} %if 0%{?suse_release}
# NOTE(saschpe): xmlsec has a lot of deps and some issues, thus not require it: # NOTE(saschpe): xmlsec has a lot of deps and some issues, thus not require it:
@@ -68,37 +73,38 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%endif %endif
%python_subpackages
%description %description
PySAML2 is a pure python implementation of SAML2. PySAML2 is a pure python implementation of SAML2.
It contains all necessary pieces for building a It contains all necessary pieces for building a
SAML2 service provider or an identity provider. SAML2 service provider or an identity provider.
%prep %prep
%setup -q -n pysaml2-%{version} %setup -q -n %{modname}-%{version}
sed -i "s/python-memcached == 1.51/python-memcached/" setup.py sed -i "s/python-memcached == 1.51/python-memcached/" setup.py
# delete shebang of files not in executable path
find src/ -name '*.py' -print0 | xargs -0 sed -i '1s/#!.*$//'
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%fdupes %{buildroot}%{_prefix}
%if %{with tests} %if %{with tests}
%check %check
python setup.py test %python_exec setup.py test
%endif %endif
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README.rst LICENSE.txt %doc README.rst LICENSE.txt
%{_bindir}/make_metadata.py %python3_only %{_bindir}/make_metadata.py
%{_bindir}/parse_xsd2.py %python3_only %{_bindir}/parse_xsd2.py
%{_bindir}/mdexport.py %python3_only %{_bindir}/mdexport.py
%{_bindir}/merge_metadata.py %python3_only %{_bindir}/merge_metadata.py
%{python_sitelib}/pysaml2-%{version}-py%{py_ver}.egg-info %{python_sitelib}/*
#%{python_sitelib}/s2repoze
%{python_sitelib}/saml2
#%{python_sitelib}/xmldsig
#%{python_sitelib}/xmlenc
%changelog %changelog