SHA256
8
0
forked from pool/aws-c-http

Accepting request 1243447 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/1243447
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/aws-c-http?expand=0&rev=12
This commit is contained in:
2025-02-06 21:05:13 +00:00
committed by Git OBS Bridge
5 changed files with 13 additions and 49 deletions

View File

@@ -1,44 +0,0 @@
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)

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Jan 30 11:43:07 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 0.9.3
* Switch CI to use roles by @DmitriyMusatkin in (#494)
* Fix CI for GCC-13 on Ubuntu-18 by @waahm7 in (#496)
* A bunch of CMake fixes by @graebm in (#497)
- Drop ach_fix-cmake-modules-path.patch, fixed upstream
-------------------------------------------------------------------
Thu Nov 14 12:36:20 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -19,14 +19,13 @@
%define library_version 1.0.0
%define library_soversion 1_0_0
Name: aws-c-http
Version: 0.9.2
Version: 0.9.3
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: cmake(aws-checksums)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:328013ebc2b5725326cac01941041eec1e1010058c60709da2c23aa8fb967370
size 476594

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

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:63061321fd3234a4f8688cff1a6681089321519436a5f181e1bcb359204df7c8
size 477580