From ca32d13d4db309704cd1bcce015e8e4d175c3cd7 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 18 May 2023 05:12:10 +0000 Subject: automatic import of python-aarc-g002-entitlement --- python-aarc-g002-entitlement.spec | 253 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 253 insertions(+) create mode 100644 python-aarc-g002-entitlement.spec (limited to 'python-aarc-g002-entitlement.spec') diff --git a/python-aarc-g002-entitlement.spec b/python-aarc-g002-entitlement.spec new file mode 100644 index 0000000..6bb89b2 --- /dev/null +++ b/python-aarc-g002-entitlement.spec @@ -0,0 +1,253 @@ +%global _empty_manifest_terminate_build 0 +Name: python-aarc-g002-entitlement +Version: 0.3.2 +Release: 1 +Summary: Parse and compare entitlements according to the AARC-G002 recommendation (https://aarc-community.org/guidelines/aarc-g002) +License: MIT +URL: https://github.com/kit-scc/aarc-g002-entitlement +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/78/d7/4c3ef672e269795ee2dda44d209d918441a917ca6e5ca010eb95c0fc63b5/aarc_g002_entitlement-0.3.2.tar.gz +BuildArch: noarch + +Requires: python3-regex + +%description +[![Documentation Status](https://readthedocs.org/projects/aarc-g002-entitlement/badge/?version=latest&token=5f5165c8ebde7726ae9df9f62331a59e7344d6e61a4bb9ea8c97cecfae25f4f3)](https://aarc-g002-entitlement.readthedocs.io/en/latest/?badge=latest) +# AARC G002 Entitlement Parser + +## Deprecation warning +The newer [AarcEntitlement](https://github.com/KIT-SCC/AarcEntitlement) +supports AARC-G002 and the updated version AARC-G069. + + + +# Introduction +This package provides a python Class to parse and compare entitlements according +to the AARC-G002 Recommendation https://aarc-community.org/guidelines/aarc-g002. + + +# Example + +```python +from aarc_g002_entitlement import Aarc_g002_entitlement + +required = Aarc_g002_entitlement( + 'urn:geant:h-df.de:group:aai-admin', + strict=False) +actual = Aarc_g002_entitlement( + 'urn:geant:h-df.de:group:aai-admin:role=member#backupserver.used.for.developmt.de') + +# is a user with actual permitted to use a resource which needs required? +permitted = required.is_contained_in(actual) # True in this case + +# are the two entitlements the same? +equals = required == actual # False in this case +``` + +For more examples: `./example.py` + +# Installation +``` +pip --user install aarc-g002-entitlement +``` + +# Documentation +``` +tox -e docs +``` +After this, the documentation should be located at `doc/build/index.html`. + +Documentation is also available at [Readthedocs](https://aarc-g002-entitlement.readthedocs.io/en/latest) + +# Tests +Run tests for all supported python versions +``` +tox +``` + +# Funding Notice +The AARC project has received funding from the European Union’s Horizon +2020 research and innovation programme under grant agreement No 653965 and +730941. + + + + + +%package -n python3-aarc-g002-entitlement +Summary: Parse and compare entitlements according to the AARC-G002 recommendation (https://aarc-community.org/guidelines/aarc-g002) +Provides: python-aarc-g002-entitlement +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-aarc-g002-entitlement +[![Documentation Status](https://readthedocs.org/projects/aarc-g002-entitlement/badge/?version=latest&token=5f5165c8ebde7726ae9df9f62331a59e7344d6e61a4bb9ea8c97cecfae25f4f3)](https://aarc-g002-entitlement.readthedocs.io/en/latest/?badge=latest) +# AARC G002 Entitlement Parser + +## Deprecation warning +The newer [AarcEntitlement](https://github.com/KIT-SCC/AarcEntitlement) +supports AARC-G002 and the updated version AARC-G069. + + + +# Introduction +This package provides a python Class to parse and compare entitlements according +to the AARC-G002 Recommendation https://aarc-community.org/guidelines/aarc-g002. + + +# Example + +```python +from aarc_g002_entitlement import Aarc_g002_entitlement + +required = Aarc_g002_entitlement( + 'urn:geant:h-df.de:group:aai-admin', + strict=False) +actual = Aarc_g002_entitlement( + 'urn:geant:h-df.de:group:aai-admin:role=member#backupserver.used.for.developmt.de') + +# is a user with actual permitted to use a resource which needs required? +permitted = required.is_contained_in(actual) # True in this case + +# are the two entitlements the same? +equals = required == actual # False in this case +``` + +For more examples: `./example.py` + +# Installation +``` +pip --user install aarc-g002-entitlement +``` + +# Documentation +``` +tox -e docs +``` +After this, the documentation should be located at `doc/build/index.html`. + +Documentation is also available at [Readthedocs](https://aarc-g002-entitlement.readthedocs.io/en/latest) + +# Tests +Run tests for all supported python versions +``` +tox +``` + +# Funding Notice +The AARC project has received funding from the European Union’s Horizon +2020 research and innovation programme under grant agreement No 653965 and +730941. + + + + + +%package help +Summary: Development documents and examples for aarc-g002-entitlement +Provides: python3-aarc-g002-entitlement-doc +%description help +[![Documentation Status](https://readthedocs.org/projects/aarc-g002-entitlement/badge/?version=latest&token=5f5165c8ebde7726ae9df9f62331a59e7344d6e61a4bb9ea8c97cecfae25f4f3)](https://aarc-g002-entitlement.readthedocs.io/en/latest/?badge=latest) +# AARC G002 Entitlement Parser + +## Deprecation warning +The newer [AarcEntitlement](https://github.com/KIT-SCC/AarcEntitlement) +supports AARC-G002 and the updated version AARC-G069. + + + +# Introduction +This package provides a python Class to parse and compare entitlements according +to the AARC-G002 Recommendation https://aarc-community.org/guidelines/aarc-g002. + + +# Example + +```python +from aarc_g002_entitlement import Aarc_g002_entitlement + +required = Aarc_g002_entitlement( + 'urn:geant:h-df.de:group:aai-admin', + strict=False) +actual = Aarc_g002_entitlement( + 'urn:geant:h-df.de:group:aai-admin:role=member#backupserver.used.for.developmt.de') + +# is a user with actual permitted to use a resource which needs required? +permitted = required.is_contained_in(actual) # True in this case + +# are the two entitlements the same? +equals = required == actual # False in this case +``` + +For more examples: `./example.py` + +# Installation +``` +pip --user install aarc-g002-entitlement +``` + +# Documentation +``` +tox -e docs +``` +After this, the documentation should be located at `doc/build/index.html`. + +Documentation is also available at [Readthedocs](https://aarc-g002-entitlement.readthedocs.io/en/latest) + +# Tests +Run tests for all supported python versions +``` +tox +``` + +# Funding Notice +The AARC project has received funding from the European Union’s Horizon +2020 research and innovation programme under grant agreement No 653965 and +730941. + + + + + +%prep +%autosetup -n aarc-g002-entitlement-0.3.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-aarc-g002-entitlement -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot - 0.3.2-1 +- Package Spec generated -- cgit v1.2.3