diff options
Diffstat (limited to 'python-djangosaml2idp.spec')
-rw-r--r-- | python-djangosaml2idp.spec | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/python-djangosaml2idp.spec b/python-djangosaml2idp.spec new file mode 100644 index 0000000..16a2803 --- /dev/null +++ b/python-djangosaml2idp.spec @@ -0,0 +1,89 @@ +%global _empty_manifest_terminate_build 0 +Name: python-djangosaml2idp +Version: 0.7.2 +Release: 1 +Summary: SAML 2.0 Identity Provider for Django +License: Apache Software License 2.0 +URL: https://github.com/OTA-Insight/djangosaml2idp/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/df/f4/9569fc4f0ffbff6b0ddbc8fd3fb7c4e44cc6f43ddacaf8b32f141e0f63d2/djangosaml2idp-0.7.2.tar.gz +BuildArch: noarch + +Requires: python3-django +Requires: python3-pysaml2 +Requires: python3-pytz +Requires: python3-arrow +Requires: python3-pytest +Requires: python3-pytest-runner +Requires: python3-pytest-django +Requires: python3-pytest-cov +Requires: python3-pytest-pythonpath +Requires: python3-pytest-mock +Requires: python3-requests-mock + +%description +djangosaml2idp implements the Identity Provider side of the SAML2 protocol for Django. +It builds on top of `PySAML2 <https://github.com/IdentityPython/pysaml2>`_, and is production-ready. +Any contributions, feature requests, proposals, ideas ... are welcome! See the `CONTRIBUTING document <https://github.com/OTA-Insight/djangosaml2idp/blob/master/CONTRIBUTING.md>`_ for some info. + +%package -n python3-djangosaml2idp +Summary: SAML 2.0 Identity Provider for Django +Provides: python-djangosaml2idp +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-djangosaml2idp +djangosaml2idp implements the Identity Provider side of the SAML2 protocol for Django. +It builds on top of `PySAML2 <https://github.com/IdentityPython/pysaml2>`_, and is production-ready. +Any contributions, feature requests, proposals, ideas ... are welcome! See the `CONTRIBUTING document <https://github.com/OTA-Insight/djangosaml2idp/blob/master/CONTRIBUTING.md>`_ for some info. + +%package help +Summary: Development documents and examples for djangosaml2idp +Provides: python3-djangosaml2idp-doc +%description help +djangosaml2idp implements the Identity Provider side of the SAML2 protocol for Django. +It builds on top of `PySAML2 <https://github.com/IdentityPython/pysaml2>`_, and is production-ready. +Any contributions, feature requests, proposals, ideas ... are welcome! See the `CONTRIBUTING document <https://github.com/OTA-Insight/djangosaml2idp/blob/master/CONTRIBUTING.md>`_ for some info. + +%prep +%autosetup -n djangosaml2idp-0.7.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-djangosaml2idp -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.2-1 +- Package Spec generated |