commit 4cfbe765c413ea642ee9861dabb9949f13d17782c0222da519da242beb135117 Author: Marcus Meissner Date: Wed Feb 13 16:59:09 2019 +0000 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 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/aces_fix-cmake-modules-path.patch b/aces_fix-cmake-modules-path.patch new file mode 100644 index 0000000..3a46d84 --- /dev/null +++ b/aces_fix-cmake-modules-path.patch @@ -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/" diff --git a/aws-c-event-stream.changes b/aws-c-event-stream.changes new file mode 100644 index 0000000..ffe6bd8 --- /dev/null +++ b/aws-c-event-stream.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Feb 12 16:16:28 UTC 2019 - John Paul Adrian Glaubitz + +- Initial build + + Version 0.1.0 diff --git a/aws-c-event-stream.spec b/aws-c-event-stream.spec new file mode 100644 index 0000000..e30c5fc --- /dev/null +++ b/aws-c-event-stream.spec @@ -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 diff --git a/v0.1.0.tar.gz b/v0.1.0.tar.gz new file mode 100644 index 0000000..3d34078 --- /dev/null +++ b/v0.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c803cf334be146c0dfd2b2e6bcb04a309b31d7f9c9f5ab26c0c23d6b6667078e +size 27563