8
0

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

- New dependency required for newer versions aws-sdk-cpp

OBS-URL: https://build.opensuse.org/request/show/674184
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aws-c-event-stream?expand=0&rev=1
This commit is contained in:
2019-02-13 16:59:09 +00:00
committed by Git OBS Bridge
commit 4cfbe765c4
6 changed files with 166 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,38 @@
diff -Nru aws-c-event-stream-0.1.0.orig/CMakeLists.txt aws-c-event-stream-0.1.0/CMakeLists.txt
--- aws-c-event-stream-0.1.0.orig/CMakeLists.txt 2018-12-18 04:15:43.000000000 +0100
+++ aws-c-event-stream-0.1.0/CMakeLists.txt 2019-02-11 15:57:11.162527377 +0100
@@ -13,14 +13,14 @@
cmake_minimum_required (VERSION 3.1)
project (aws-c-event-stream C)
-list(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/lib/cmake")
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/lib64/cmake")
include(AwsCFlags)
include(AwsSanitizers)
include(CheckCCompilerFlag)
if(NOT MSVC)
- set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
- set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
+ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib64)
+ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib64)
endif()
file(GLOB AWS_EVENT_STREAM_HEADERS
@@ -69,14 +69,14 @@
target_link_libraries(${CMAKE_PROJECT_NAME} PUBLIC AWS::aws-c-common AWS::aws-checksums)
# installation & packaging
-set(LIBRARY_DIRECTORY ${CMAKE_INSTALL_PREFIX}/lib)
+set(LIBRARY_DIRECTORY ${CMAKE_INSTALL_PREFIX}/lib64)
install(FILES ${AWS_EVENT_STREAM_HEADERS} DESTINATION "include/aws/event-stream")
install(TARGETS ${CMAKE_PROJECT_NAME}
EXPORT ${CMAKE_PROJECT_NAME}-targets
ARCHIVE DESTINATION ${LIBRARY_DIRECTORY}
LIBRARY DESTINATION ${LIBRARY_DIRECTORY}
- RUNTIME DESTINATION lib)
+ RUNTIME DESTINATION lib64)
install(EXPORT "${CMAKE_PROJECT_NAME}-targets"
DESTINATION "${LIBRARY_DIRECTORY}/${CMAKE_PROJECT_NAME}/cmake/"

View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue Feb 12 16:16:28 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Initial build
+ Version 0.1.0

96
aws-c-event-stream.spec Normal file
View File

@@ -0,0 +1,96 @@
#
# spec file for package aws-c-common
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: aws-c-event-stream
Version: 0.1.0
Release: 0
Summary: C99 implementation of the vnd.amazon.eventstream content-type
License: Apache-2.0
Group: Development/Libraries/C and C++
URL: https://github.com/awslabs/aws-c-event-stream
Source0: https://github.com/awslabs/%{name}/archive/v%{version}.tar.gz
Patch: aces_fix-cmake-modules-path.patch
BuildRequires: fdupes
BuildRequires: libaws-c-common-devel
BuildRequires: libaws-checksums-devel
BuildRequires: cmake
BuildRequires: ninja
%description
C99 implementation of the vnd.amazon.eventstream content-type.
%package -n lib%{name}
Summary: Shared library files for aws-c-event-stream library
Group: Development/Libraries/C and C++
%description -n lib%{name}
C99 implementation of the vnd.amazon.eventstream content-type.
This package contains the dynamically linked library.
%package -n lib%{name}-devel
Summary: Development files for aws-c-event-stream library
Group: Development/Libraries/C and C++
Requires: lib%{name} = %{version}
%description -n lib%{name}-devel
C99 implementation of the vnd.amazon.eventstream content-type.
This package contains the development files.
%prep
%setup -q
%ifarch aarch64 ppc64 ppc64le riscv64 s390x x86_64
%patch -p1
%endif
%build
%define __builder ninja
%cmake \
-DCMAKE_BUILD_TYPE=Release
%make_jobs
%check
%ifarch aarch64 ppc64 ppc64le riscv64 s390x x86_64
export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/build/lib64
%else
export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/build/lib
%endif
%ctest
%install
%cmake_install
%fdupes -s %{buildroot}%{_libdir}/cmake
%post -n lib%{name}
/sbin/ldconfig
%postun -n lib%{name}
/sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%doc NOTICE README.md
%license LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_libdir}/%{name}
%{_libdir}/*.so
%{_includedir}/*
%changelog

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

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