SHA256
1
0
forked from pool/aws-c-auth

Accepting request 973731 from home:glaubitz:branches:devel:libraries:c_c++

- Initial build
  + Version 0.6.13

OBS-URL: https://build.opensuse.org/request/show/973731
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aws-c-auth?expand=0&rev=1
This commit is contained in:
Dirk Mueller 2022-05-02 07:44:29 +00:00 committed by Git OBS Bridge
commit 42638e8113
6 changed files with 182 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,45 @@
diff -Nru aws-c-auth-0.6.4.orig/CMakeLists.txt aws-c-auth-0.6.4/CMakeLists.txt
--- aws-c-auth-0.6.4.orig/CMakeLists.txt 2021-08-31 21:05:57.000000000 +0000
+++ aws-c-auth-0.6.4/CMakeLists.txt 2021-10-12 12:14:56.438749566 +0000
@@ -14,18 +14,11 @@
file(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}" CMAKE_INSTALL_PREFIX)
endif()
-
-if (UNIX AND NOT APPLE)
- include(GNUInstallDirs)
-elseif(NOT DEFINED CMAKE_INSTALL_LIBDIR)
- set(CMAKE_INSTALL_LIBDIR "lib")
-endif()
-
-# This is required in order to append /lib/cmake to each element in CMAKE_PREFIX_PATH
-set(AWS_MODULE_DIR "/${CMAKE_INSTALL_LIBDIR}/cmake")
-string(REPLACE ";" "${AWS_MODULE_DIR};" AWS_MODULE_PATH "${CMAKE_PREFIX_PATH}${AWS_MODULE_DIR}")
-# Append that generated list to the module search path
-list(APPEND CMAKE_MODULE_PATH ${AWS_MODULE_PATH})
+find_package(aws-c-common REQUIRED)
+set(CMAKE_MODULE_PATH ${aws-c-common_DIR})
+
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/modules")
+include(GNUInstallDirs)
include(AwsCFlags)
include(AwsCheckHeaders)
@@ -118,7 +111,7 @@
endif()
install(EXPORT "${PROJECT_NAME}-targets"
- DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}/"
+ DESTINATION "${LIB_INSTALL_DIR}/cmake/${CMAKE_PROJECT_NAME}/${TARGET_DIR}/"
NAMESPACE AWS::
COMPONENT Development)
@@ -127,7 +120,7 @@
@ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake"
- DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/"
+ DESTINATION "${LIB_INSTALL_DIR}/cmake/${CMAKE_PROJECT_NAME}"
COMPONENT Development)
include(CTest)

5
aws-c-auth.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu Apr 28 13:58:17 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Initial build
+ Version 0.6.13

105
aws-c-auth.spec Normal file
View File

@ -0,0 +1,105 @@
#
# spec file for package aws-c-auth
#
# Copyright (c) 2021 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 library_version 1.0.0
%define library_soversion 1
Name: aws-c-auth
Version: 0.6.13
Release: 0
Summary: AWS C99 library implementation of AWS client-side authentication
License: Apache-2.0
Group: Development/Libraries/C and C++
URL: https://github.com/awslabs/aws-c-auth
Source0: https://github.com/awslabs/%{name}/archive/v%{version}.tar.gz
Patch0: aca_fix-cmake-modules-path.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: cmake(aws-c-common)
BuildRequires: cmake(aws-c-compression)
BuildRequires: cmake(aws-c-cal)
BuildRequires: cmake(aws-c-http)
BuildRequires: cmake(aws-c-io)
BuildRequires: cmake(aws-c-sdkutils)
BuildRequires: cmake(s2n)
BuildRequires: pkgconfig(libssl)
BuildRequires: ninja
BuildRequires: pkgconfig
%description
C99 library implementation of AWS client-side authentication: standard
credentials providers and signing.
From a cryptographic perspective, only functions with the suffix "_constant_time"
should be considered constant time.
%package -n lib%{name}%{library_soversion}
Summary: Shared library files for aws-c-auth library
Group: Development/Libraries/C and C++
%description -n lib%{name}%{library_soversion}
AWS C99 library implementation of AWS client-side authentication:
standard credentials providers and signing.
This package contains the dynamically linked library.
%package devel
Summary: Development files for aws-c-auth library
Group: Development/Libraries/C and C++
Requires: lib%{name}%{library_soversion} = %{version}
%description devel
AWS C99 library implementation of AWS client-side authentication:
standard credentials providers and signing.
This package contains the development files.
%prep
%setup -q
%patch0 -p1
%build
%define __builder ninja
%cmake \
-DCMAKE_BUILD_TYPE=Release
%make_jobs
# Testsuite currently hangs
# see: https://github.com/awslabs/aws-c-auth/issues/147
#%%check
#export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/build
#%%ctest
%install
%cmake_install
ln -s lib%{name}.so.%{library_version} %{buildroot}%{_libdir}/lib%{name}.so.%{library_soversion}
%post -n lib%{name}%{library_soversion} -p /sbin/ldconfig
%postun -n lib%{name}%{library_soversion} -p /sbin/ldconfig
%files -n lib%{name}%{library_soversion}
%doc README.md
%license LICENSE
%{_libdir}/*.so.%{library_soversion}
%{_libdir}/*.so.%{library_version}
%files devel
%{_libdir}/cmake/%{name}/
%{_libdir}/*.so
%{_includedir}/*
%changelog

3
v0.6.13.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:66bff9b10b5b96ef12fc386dca0f335d85689ed5d0cee9d664cbe53e0a8b287d
size 218953