Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
python-scitokens
python-scitokens.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-scitokens.spec of Package python-scitokens
# # spec file for package python-scitokens # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define bname scitokens Name: python-scitokens Version: 1.7.4 Release: 0 Summary: SciToken reference implementation library License: Apache-2.0 URL: https://scitokens.org Source: https://github.com/scitokens/scitokens/archive/refs/tags/v%{version}.tar.gz#/%{bname}-%{version}.tar.gz # PATCH-FIX-UPSTREAM Do not use pkg_resources gh#scitokens/scitokens#182 Patch0: use-importlib-metadata.patch BuildRequires: %{python_module PyJWT >= 2.2} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyJWT >= 2.2 BuildArch: noarch Requires(post): update-alternatives Requires(postun):update-alternatives %python_subpackages %description SciTokens provide a token format for distributed authorization. The tokens are self-describing, can be verified in a distributed fashion (no need to contact the issuer to determine if the token is valid). This is convenient for a federated environment where several otherwise-independent storage endpoints want to delegate trust for an issuer for managing a storage allocation. %prep %autosetup -p1 -n scitokens-%{version} %build %python_build %install %python_install %python_clone -a %{buildroot}%{_bindir}/scitokens-admin-create-key %python_clone -a %{buildroot}%{_bindir}/scitokens-admin-create-token %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest %post %python_install_alternative scitokens-admin-create-key %python_install_alternative scitokens-admin-create-token %postun %python_uninstall_alternative scitokens-admin-create-key %python_uninstall_alternative scitokens-admin-create-token %files %{python_files} %{python_sitelib}/scitokens* %python_alternative %{_bindir}/scitokens-admin-create-key %python_alternative %{_bindir}/scitokens-admin-create-token %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor