forked from pool/python-pysaml2
Accepting request 507290 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/507290 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysaml2?expand=0&rev=6
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a26804150ddc5da803d0df4b7026b613a3571c387fd6d107f6263aabf2c84ec6
|
||||
size 4106432
|
3
pysaml2-4.4.0.tar.gz
Normal file
3
pysaml2-4.4.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a83768a873b905451b4931f242983ac95849d4c7ccefbe13119f301f6feadd5a
|
||||
size 4462503
|
@@ -1,3 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
- fix requires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 17 14:42:09 UTC 2016 - michael@stroeder.com
|
||||
|
||||
- update to 4.4.0
|
||||
- added LICENSE.txt to docs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 26 13:14:29 UTC 2016 - tbechtold@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,46 +16,55 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
|
||||
# Test reqs are heavy, thus only have it on demand:
|
||||
%bcond_with tests
|
||||
%bcond_with tests
|
||||
|
||||
Name: python-pysaml2
|
||||
Version: 2.4.0
|
||||
%global modname pysaml2
|
||||
Version: 4.4.0
|
||||
Release: 0
|
||||
Summary: Python implementation of SAML Version 2 to be used in a WSGI environment
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/rohe/pysaml2
|
||||
Source: https://pypi.python.org/packages/source/p/pysaml2/pysaml2-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
Url: https://github.com/rohe/%{modname}
|
||||
Source: https://pypi.io/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# Test requirements:
|
||||
%if %{with tests}
|
||||
BuildRequires: python-M2Crypto
|
||||
BuildRequires: python-decorator
|
||||
BuildRequires: python-mako
|
||||
BuildRequires: python-mongodict
|
||||
BuildRequires: python-pyasn1
|
||||
BuildRequires: python-pymongo
|
||||
BuildRequires: python-pytest
|
||||
BuildRequires: python-python-memcached
|
||||
BuildRequires: python-repoze.who
|
||||
BuildRequires: python-requests >= 1.0.0
|
||||
BuildRequires: %{python_module decorator}
|
||||
BuildRequires: %{python_module future}
|
||||
BuildRequires: %{python_module mako}
|
||||
BuildRequires: %{python_module mongodict}
|
||||
BuildRequires: %{python_module pyOpenSSL}
|
||||
BuildRequires: %{python_module pyasn1}
|
||||
BuildRequires: %{python_module pycryptodomex}
|
||||
BuildRequires: %{python_module pymongo}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-dateutil}
|
||||
BuildRequires: %{python_module python-memcached}
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: %{python_module repoze.who}
|
||||
BuildRequires: %{python_module requests >= 1.0.0}
|
||||
%endif
|
||||
%if 0%{?suse_release}
|
||||
# NOTE(saschpe): xmlsec has a lot of deps and some issues, thus not require it:
|
||||
Recommends: python-xmlsec
|
||||
%endif
|
||||
Requires: python-M2Crypto
|
||||
Requires: python-Paste
|
||||
Requires: python-argparse
|
||||
Requires: python-decorator
|
||||
Requires: python-future
|
||||
Requires: python-pyOpenSSL
|
||||
Requires: python-pycrypto >= 2.2
|
||||
Requires: python-pycryptodomex
|
||||
Requires: python-python-dateutil
|
||||
Requires: python-pytz
|
||||
Requires: python-repoze.who
|
||||
Requires: python-requests >= 1.0.0
|
||||
Requires: python-six
|
||||
Requires: python-zope.interface
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
@@ -64,37 +73,38 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
PySAML2 should be compatible with any python >= 2.6 not 3.X yet.
|
||||
To be able to sign/verify, encrypt/decrypt you need xmlsec1.
|
||||
The repoze stuff works best together with repoze.who .
|
||||
PySAML2 is a pure python implementation of SAML2.
|
||||
It contains all necessary pieces for building a
|
||||
SAML2 service provider or an identity provider.
|
||||
|
||||
%prep
|
||||
%setup -q -n pysaml2-%{version}
|
||||
%setup -q -n %{modname}-%{version}
|
||||
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
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
python setup.py test
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README
|
||||
%{_bindir}/make_metadata.py
|
||||
%{_bindir}/parse_xsd2.py
|
||||
%{_bindir}/mdexport.py
|
||||
%{_bindir}/merge_metadata.py
|
||||
%{python_sitelib}/pysaml2-%{version}-py%{py_ver}.egg-info
|
||||
%{python_sitelib}/s2repoze
|
||||
%{python_sitelib}/saml2
|
||||
%{python_sitelib}/xmldsig
|
||||
%{python_sitelib}/xmlenc
|
||||
%doc README.rst LICENSE.txt
|
||||
%python3_only %{_bindir}/make_metadata.py
|
||||
%python3_only %{_bindir}/parse_xsd2.py
|
||||
%python3_only %{_bindir}/mdexport.py
|
||||
%python3_only %{_bindir}/merge_metadata.py
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user