From c5d2680fa241bbf9cdc3f2d5d397ba69247c68e9f8866df5c4807683f6504565 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 12 Oct 2021 10:14:36 +0000 Subject: [PATCH] Accepting request 924839 from home:glaubitz:branches:devel:libraries:c_c++ - Initial release + Version 0.6.7 OBS-URL: https://build.opensuse.org/request/show/924839 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aws-c-http?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + ach_fix-cmake-modules-path.patch | 44 +++++++++++++ aws-c-http.changes | 5 ++ aws-c-http.spec | 109 +++++++++++++++++++++++++++++++ v0.6.7.tar.gz | 3 + 6 files changed, 185 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ach_fix-cmake-modules-path.patch create mode 100644 aws-c-http.changes create mode 100644 aws-c-http.spec create mode 100644 v0.6.7.tar.gz 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/ach_fix-cmake-modules-path.patch b/ach_fix-cmake-modules-path.patch new file mode 100644 index 0000000..63f3c41 --- /dev/null +++ b/ach_fix-cmake-modules-path.patch @@ -0,0 +1,44 @@ +diff -Nru aws-c-http-0.6.7.orig/CMakeLists.txt aws-c-http-0.6.7/CMakeLists.txt +--- aws-c-http-0.6.7.orig/CMakeLists.txt 2021-09-22 20:39:33.000000000 +0000 ++++ aws-c-http-0.6.7/CMakeLists.txt 2021-10-12 09:52:05.904419768 +0000 +@@ -15,17 +15,12 @@ + 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() ++find_package(aws-c-common REQUIRED) ++find_package(aws-checksums REQUIRED) ++set(CMAKE_MODULE_PATH ${aws-c-common_DIR}) + +-# 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}) ++list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/modules") ++include(GNUInstallDirs) + + include(AwsCFlags) + include(AwsCheckHeaders) +@@ -83,7 +78,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) + +@@ -92,7 +87,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) diff --git a/aws-c-http.changes b/aws-c-http.changes new file mode 100644 index 0000000..351e81d --- /dev/null +++ b/aws-c-http.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Oct 12 09:55:26 UTC 2021 - John Paul Adrian Glaubitz + +- Initial release + + Version 0.6.7 diff --git a/aws-c-http.spec b/aws-c-http.spec new file mode 100644 index 0000000..8d972cc --- /dev/null +++ b/aws-c-http.spec @@ -0,0 +1,109 @@ +# +# spec file for package aws-c-cal +# +# 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-http +Version: 0.6.7 +Release: 0 +Summary: C99 implementation of the HTTP/1.1 and HTTP/2 specifications +License: Apache-2.0 +Group: Development/Libraries/C and C++ +URL: https://github.com/awslabs/aws-c-http +Source0: https://github.com/awslabs/%{name}/archive/v%{version}.tar.gz +Patch0: ach_fix-cmake-modules-path.patch +BuildRequires: cmake +BuildRequires: fdupes +BuildRequires: libaws-checksums-devel +BuildRequires: libaws-c-cal-devel +BuildRequires: libaws-c-common-devel +BuildRequires: libaws-c-compression-devel +BuildRequires: libaws-c-io-devel +BuildRequires: libopenssl-devel +BuildRequires: libs2n-devel +BuildRequires: ninja +BuildRequires: pkgconfig + +%description +C99 implementation of the HTTP/1.1 and HTTP/2 specifications. + +%package -n lib%{name}%{library_soversion} +Summary: Shared library files for aws-c-http library +Group: Development/Libraries/C and C++ + +%description -n lib%{name}%{library_soversion} +C99 implementation of the HTTP/1.1 and HTTP/2 specifications. + +This package contains the dynamically linked library. + +%package -n lib%{name}-devel +Summary: Development files for aws-c-http library +Group: Development/Libraries/C and C++ +Requires: lib%{name}%{library_soversion} = %{version} + +%description -n lib%{name}-devel +C99 implementation of the HTTP/1.1 and HTTP/2 specifications. + +This package contains the development files. + +%package -n %{name}-bin +Summary: Command line utilities of aws-c-cal library +Group: Development/Libraries/C and C++ +Requires: lib%{name}%{library_soversion} = %{version} + +%description -n %{name}-bin +C99 implementation of the HTTP/1.1 and HTTP/2 specifications. + +This package contains the command line utilities. + +%prep +%setup -q +%patch0 -p1 + +%build +%define __builder ninja +%cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_MODULE_PATH=%{_libdir}/cmake +%make_jobs + +# Testsuite currently fails +#%%check +#%export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/build +#%%ctest + +%install +%cmake_install + +%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_version} + +%files -n lib%{name}-devel +%{_libdir}/cmake/%{name}/ +%{_libdir}/*.so +%{_includedir}/* + +%files -n %{name}-bin +%{_bindir}/* + +%changelog diff --git a/v0.6.7.tar.gz b/v0.6.7.tar.gz new file mode 100644 index 0000000..29dda63 --- /dev/null +++ b/v0.6.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2244d1e26ce5b5f40f96e570b1c4332a07c645ef744644d5b90b089d3695ec3b +size 389939