From 028c29200c9ab0c952aa95b101150b18a7db5cd5fc739f4bbcefea35a7aab0d2 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 26 Mar 2025 12:26:27 +0000 Subject: [PATCH] - Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to fix FTBFS with cmake4 - Add %check section - Remove Group: declarations, no longer used OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/scitokens-cpp?expand=0&rev=6 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + scitokens-cpp-0.6.3.tar.gz | 3 ++ scitokens-cpp.changes | 16 +++++++ scitokens-cpp.spec | 90 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 133 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 scitokens-cpp-0.6.3.tar.gz create mode 100644 scitokens-cpp.changes create mode 100644 scitokens-cpp.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/scitokens-cpp-0.6.3.tar.gz b/scitokens-cpp-0.6.3.tar.gz new file mode 100644 index 0000000..10d1ee7 --- /dev/null +++ b/scitokens-cpp-0.6.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df6758b0d5cc288befe4b4a44f29bc7afedf62093a6c8b9ab5e6fbcecf40daf4 +size 97890 diff --git a/scitokens-cpp.changes b/scitokens-cpp.changes new file mode 100644 index 0000000..817c5e9 --- /dev/null +++ b/scitokens-cpp.changes @@ -0,0 +1,16 @@ +------------------------------------------------------------------- +Sat Mar 22 16:07:27 UTC 2025 - Shawn Dunn + +- Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to fix FTBFS with cmake4 +- Add %check section +- Remove Group: declarations, no longer used + +------------------------------------------------------------------- +Wed Apr 12 09:34:32 UTC 2023 - Marcus Meissner + +- disable error on deprecated warnings of openssl + +------------------------------------------------------------------- +Thu Dec 23 10:38:18 UTC 2021 - Christian Goll + +- initial commit of libscitokens of version 0.6.3 diff --git a/scitokens-cpp.spec b/scitokens-cpp.spec new file mode 100644 index 0000000..d4a4cb3 --- /dev/null +++ b/scitokens-cpp.spec @@ -0,0 +1,90 @@ +# +# spec file for package scitokens-cpp +# +# 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/ +# + + +Name: scitokens-cpp +Version: 0.6.3 +Release: 0 +Summary: C++ Implementation of the SciTokens Library +License: Apache-2.0 +URL: https://github.com/scitokens/scitokens-cpp +Source0: https://github.com/scitokens/scitokens-cpp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: cmake >= 3.5 +BuildRequires: gcc-c++ +BuildRequires: libcurl-devel +BuildRequires: libuuid-devel +BuildRequires: make +BuildRequires: openssl-devel +BuildRequires: sqlite-devel + +%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. + +%package -n libSciTokens0 +Summary: C++ Implementation of the SciTokens Library + +%description -n libSciTokens0 +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. + +%package devel +Summary: Header files for the libscitokens public interfaces +Requires: libSciTokens0 = %{version} + +%description devel +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 -n scitokens-cpp-%{version} + +%build +export CFLAGS="%optflags -Wno-error=deprecated-declarations" +%{cmake} -DCMAKE_POLICY_VERSION_MINIMUM=3.5 +%{cmake_build} + +%install +%{cmake_install} + +%check +%ctest + +%post -n libSciTokens0 -p /sbin/ldconfig +%postun -n libSciTokens0 -p /sbin/ldconfig + +%files -n libSciTokens0 +%license LICENSE +%{_libdir}/libSciTokens.so.0* + +%files devel +%doc README.md +%license LICENSE +%{_libdir}/libSciTokens.so +%{_includedir}/scitokens/scitokens.h +%dir %{_includedir}/scitokens + +%changelog