|
|
eab3ae |
%global srcname pysaml2
|
|
|
eab3ae |
|
|
|
eab3ae |
Name: python-%{srcname}
|
|
rdobuilder |
1c92fb |
Version: 7.0.1
|
|
rdobuilder |
1c92fb |
Release: 1%{?dist}
|
|
|
eab3ae |
Summary: Python implementation of SAML Version 2
|
|
|
eab3ae |
License: ASL 2.0
|
|
|
eab3ae |
URL: https://github.com/IdentityPython/%{srcname}
|
|
|
eab3ae |
|
|
|
eab3ae |
%global gittag v%{version}
|
|
|
eab3ae |
|
|
|
eab3ae |
|
|
|
eab3ae |
|
|
|
eab3ae |
Source0: https://github.com/IdentityPython/%{srcname}/archive/%{gittag}/%{srcname}-%{version}.tar.gz
|
|
|
eab3ae |
|
|
|
eab3ae |
BuildArch: noarch
|
|
|
eab3ae |
|
|
|
eab3ae |
BuildRequires: python3-sphinx
|
|
|
eab3ae |
BuildRequires: python3-defusedxml
|
|
|
eab3ae |
|
|
|
eab3ae |
%description
|
|
|
eab3ae |
PySAML2 is a pure python implementation of SAML2. It contains all
|
|
|
eab3ae |
necessary pieces for building a SAML2 service provider or an identity
|
|
|
eab3ae |
provider. The distribution contains examples of both. Originally
|
|
|
eab3ae |
written to work in a WSGI environment there are extensions that allow
|
|
|
eab3ae |
you to use it with other frameworks.
|
|
|
eab3ae |
|
|
|
eab3ae |
|
|
|
eab3ae |
|
|
|
eab3ae |
%package -n python3-%{srcname}
|
|
|
eab3ae |
Summary: Python implementation of SAML Version 2
|
|
|
eab3ae |
Conflicts: python2-%{srcname} < 4.5.0-6
|
|
|
eab3ae |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
eab3ae |
|
|
|
eab3ae |
Requires: python3-requests >= 1.0.0
|
|
|
eab3ae |
Requires: python3-future
|
|
|
eab3ae |
Requires: python3-cryptography
|
|
|
eab3ae |
Requires: python3-pytz
|
|
|
eab3ae |
Requires: python3-pyOpenSSL
|
|
|
eab3ae |
Requires: python3-dateutil
|
|
|
eab3ae |
Requires: python3-defusedxml
|
|
|
eab3ae |
Requires: python3-six
|
|
|
eab3ae |
|
|
|
eab3ae |
BuildRequires: python3-devel
|
|
|
eab3ae |
BuildRequires: python3-setuptools
|
|
|
eab3ae |
|
|
|
eab3ae |
%description -n python3-%{srcname}
|
|
|
eab3ae |
PySAML2 is a pure python implementation of SAML2. It contains all
|
|
|
eab3ae |
necessary pieces for building a SAML2 service provider or an identity
|
|
|
eab3ae |
provider. The distribution contains examples of both. Originally
|
|
|
eab3ae |
written to work in a WSGI environment there are extensions that allow
|
|
|
eab3ae |
you to use it with other frameworks.
|
|
|
eab3ae |
|
|
|
eab3ae |
|
|
|
eab3ae |
%package doc
|
|
|
eab3ae |
Summary: Documentation for Python implementation of SAML Version 2
|
|
|
eab3ae |
|
|
|
eab3ae |
%description doc
|
|
|
eab3ae |
Documentation for Python implementation of SAML Version 2.
|
|
|
eab3ae |
|
|
|
eab3ae |
%prep
|
|
|
eab3ae |
%setup -qn %{srcname}-%{version}
|
|
|
eab3ae |
sed -i '/argparse/d' setup.py
|
|
|
eab3ae |
|
|
|
eab3ae |
# Avoid non-executable-script rpmlint while maintaining timestamps
|
|
|
eab3ae |
find src -name \*.py |
|
|
|
eab3ae |
while read source; do
|
|
|
eab3ae |
if head -n1 "$source" | grep -F '/usr/bin/env'; then
|
|
|
eab3ae |
touch --ref="$source" "$source".ts
|
|
|
eab3ae |
sed -i '/\/usr\/bin\/env python/{d;q}' "$source"
|
|
|
eab3ae |
touch --ref="$source".ts "$source"
|
|
|
eab3ae |
rm "$source".ts
|
|
|
eab3ae |
fi
|
|
|
eab3ae |
done
|
|
|
eab3ae |
# special case for parse_xsd generated file which have lines like:
|
|
|
eab3ae |
#!!!! 'NoneType' object has no attribute 'py_class'
|
|
|
eab3ae |
source="src/saml2/schema/wsdl.py"
|
|
|
eab3ae |
touch --ref="$source" "$source".ts
|
|
|
eab3ae |
sed -i '1,3{d;q}' "$source"
|
|
|
eab3ae |
touch --ref="$source".ts "$source"
|
|
|
eab3ae |
rm "$source".ts
|
|
|
eab3ae |
|
|
|
eab3ae |
%build
|
|
|
eab3ae |
|
|
|
eab3ae |
%py3_build
|
|
|
eab3ae |
|
|
|
eab3ae |
# drop alabaster Sphinx theme, not packaged in Fedora yet
|
|
|
eab3ae |
#sed -i '/alabaster/d' docs/conf.py
|
|
|
eab3ae |
# generate html docs
|
|
|
eab3ae |
export PYTHONPATH=./src
|
|
|
eab3ae |
sphinx-build-3 docs html
|
|
|
eab3ae |
# remove the sphinx-build leftovers
|
|
|
eab3ae |
rm -rf html/.{doctrees,buildinfo}
|
|
|
eab3ae |
|
|
|
eab3ae |
%install
|
|
|
eab3ae |
|
|
|
eab3ae |
%py3_install
|
|
|
eab3ae |
|
|
|
eab3ae |
|
|
|
eab3ae |
|
|
|
eab3ae |
%files -n python3-%{srcname}
|
|
|
eab3ae |
%doc README.rst
|
|
|
eab3ae |
%license LICENSE
|
|
|
eab3ae |
%{_bindir}/parse_xsd2.py
|
|
|
eab3ae |
%{_bindir}/make_metadata.py
|
|
|
eab3ae |
%{_bindir}/mdexport.py
|
|
|
eab3ae |
%{_bindir}/merge_metadata.py
|
|
|
eab3ae |
%{python3_sitelib}/saml2
|
|
|
eab3ae |
%{python3_sitelib}/*.egg-info
|
|
|
eab3ae |
|
|
|
eab3ae |
%files doc
|
|
|
eab3ae |
%license LICENSE
|
|
|
eab3ae |
%doc html
|
|
|
eab3ae |
|
|
|
eab3ae |
%changelog
|
|
rdobuilder |
1c92fb |
* Fri Sep 24 2021 Joel Capitao <jcapitao@redhat.com> - 7.0.1-1
|
|
rdobuilder |
1c92fb |
- Update to 7.0.1 (rhbz#1290944)
|
|
rdobuilder |
1c92fb |
|
|
rdobuilder |
1c92fb |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.0-4
|
|
rdobuilder |
1c92fb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
1c92fb |
|
|
rdobuilder |
1c92fb |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 6.1.0-3
|
|
rdobuilder |
1c92fb |
- Rebuilt for Python 3.10
|
|
rdobuilder |
1c92fb |
|
|
|
eab3ae |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.0-2
|
|
|
eab3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
eab3ae |
|
|
|
eab3ae |
* Thu Jul 30 2020 Yatin Karel <ykarel@redhat.com> - 6.1.0-1
|
|
|
eab3ae |
- Update to 6.1.0 (rhbz#1290944)
|
|
|
eab3ae |
|
|
|
eab3ae |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-12
|
|
|
eab3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
eab3ae |
|
|
|
eab3ae |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 4.5.0-11
|
|
|
eab3ae |
- Rebuilt for Python 3.9
|
|
|
eab3ae |
|
|
|
eab3ae |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-10
|
|
|
eab3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
eab3ae |
|
|
|
eab3ae |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.5.0-9
|
|
|
eab3ae |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
eab3ae |
|
|
|
eab3ae |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.5.0-8
|
|
|
eab3ae |
- Rebuilt for Python 3.8
|
|
|
eab3ae |
|
|
|
eab3ae |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-7
|
|
|
eab3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
eab3ae |
|
|
|
eab3ae |
* Mon Feb 11 2019 Miro Hrončok <mhroncok@redhat.com> - 4.5.0-6
|
|
|
eab3ae |
- Subpackage python2-pysaml2 has been removed
|
|
|
eab3ae |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
eab3ae |
|
|
|
eab3ae |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-5
|
|
|
eab3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
eab3ae |
|
|
|
eab3ae |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-4
|
|
|
eab3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
eab3ae |
|
|
|
eab3ae |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.5.0-3
|
|
|
eab3ae |
- Rebuilt for Python 3.7
|
|
|
eab3ae |
|
|
|
eab3ae |
* Wed Jun 6 2018 <jdennis@redhat.com> - 4.5.0-2
|
|
|
eab3ae |
- Resolves: rhbz#1582254 - re-enable python2 support
|
|
|
eab3ae |
|
|
|
eab3ae |
* Fri May 18 2018 <jdennis@redhat.com> - 4.5.0-1
|
|
|
eab3ae |
- upgrade to current upstream
|
|
|
eab3ae |
- enforce Python packaging standards
|
|
|
eab3ae |
|
|
|
eab3ae |
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.0.2-10
|
|
|
eab3ae |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
eab3ae |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
eab3ae |
|
|
|
eab3ae |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-9
|
|
|
eab3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
eab3ae |
|
|
|
eab3ae |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-8
|
|
|
eab3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
eab3ae |
|
|
|
eab3ae |
* Thu Mar 16 2017 Jason Joyce <jjoyce@redhat.com> - 3.0.2-7
|
|
|
eab3ae |
- security fix for entity expansion issue - CVE-2016-10149
|
|
|
eab3ae |
|
|
|
eab3ae |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-6
|
|
|
eab3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
eab3ae |
|
|
|
eab3ae |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.0.2-5
|
|
|
eab3ae |
- Rebuild for Python 3.6
|
|
|
eab3ae |
|
|
|
eab3ae |
* Sun Nov 13 2016 Peter Robinson <pbrobinson@fedoraproject.org> 3.0.2-4
|
|
|
eab3ae |
- fix pycrypto dependency
|
|
|
eab3ae |
|
|
|
eab3ae |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-3
|
|
|
eab3ae |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
eab3ae |
|
|
|
eab3ae |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
|
|
|
eab3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
eab3ae |
|
|
|
eab3ae |
* Sat Dec 05 2015 Alan Pevec <alan.pevec@redhat.com> 3.0.2-1
|
|
|
eab3ae |
- Update to 3.0.2
|
|
|
eab3ae |
|
|
|
eab3ae |
* Wed Jul 15 2015 Alan Pevec <apevec@redhat.com> - 3.0.0-1
|
|
|
eab3ae |
- update to upstream release 3.0.0
|
|
|
eab3ae |
|
|
|
eab3ae |
* Thu Jun 18 2015 Alan Pevec <apevec@redhat.com> - 3.0.0-0.3.git40603ae
|
|
|
eab3ae |
- include unreleased fix for https://github.com/rohe/pysaml2/issues/202
|
|
|
eab3ae |
- review feedback
|
|
|
eab3ae |
- fix rpmlint errors
|
|
|
eab3ae |
|
|
|
eab3ae |
* Tue Mar 31 2015 Alan Pevec <apevec@redhat.com> - 2.4.0-1
|
|
|
eab3ae |
- Update to 2.4.0
|
|
|
eab3ae |
|
|
|
eab3ae |
* Mon Feb 16 2015 Dan Prince - 2.3.0-1
|
|
|
eab3ae |
- Initial package.
|