File aws-sdk-cpp.spec of Package aws-sdk-cpp
#
# spec file for package aws-sdk-cpp
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2023 Alessandro de Oliveira Faria (A.K.A CABELO) <cabelo@opensuse.org>
#
# 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/
#
Name: aws-sdk-cpp
Version: 1.11.258
Release: 0
Summary: AWS SDK for C++
License: Apache-2.0
Group: Development/Languages/Other
URL: https://github.com/cabelo/aws-sdk-cpp/
Source0: https://github.com/cabelo/aws-sdk-cpp/archive/refs/tags/%{version}.tar.gz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libssl)
BuildRequires: pkgconfig(zlib)
%description
The AWS SDK for C++ provides a modern C++ (version C++ 11 or later) interface for
Amazon Web Services (AWS). It is meant to be performant and fully functioning with
low- and high-level SDKs, while minimizing dependencies and providing platform
portability (Windows, OSX, Linux, and mobile).
%package libs
Summary: AWS SDK for C++
Group: Development/Languages/Other
%description libs
The AWS SDK for C++ provides a modern C++ (version C++ 11 or later) interface for
Amazon Web Services (AWS). It is meant to be performant and fully functioning with
low- and high-level SDKs, while minimizing dependencies and providing platform
portability (Windows, OSX, Linux, and mobile).
This package contains the shared libraries.
%package devel
Summary: AWS SDK for C++ - development files
Group: Development/Languages/Other
%description devel
The AWS SDK for C++ provides a modern C++ (version C++ 11 or later) interface for
Amazon Web Services (AWS). It is meant to be performant and fully functioning with
low- and high-level SDKs, while minimizing dependencies and providing platform
portability (Windows, OSX, Linux, and mobile).
This package contains development files.
%package devel-static
Summary: AWS SDK for C++ - development files
Group: Development/Languages/Other
%description devel-static
The AWS SDK for C++ provides a modern C++ (version C++ 11 or later) interface for
Amazon Web Services (AWS). It is meant to be performant and fully functioning with
low- and high-level SDKs, while minimizing dependencies and providing platform
portability (Windows, OSX, Linux, and mobile).
This package contains development files.
%prep
%setup -q
%build
%define __builder ninja
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCUSTOM_MEMORY_MANAGEMENT=OFF \
-DCMAKE_MODULE_PATH=%{_libdir}/cmake/aws-c-common \
-DENABLE_TESTING=OFF # Enabling testsuite currently fails: https://github.com/aws/aws-sdk-cpp/issues/929
%cmake_build
%install
%cmake_install
%fdupes -s %{buildroot}%{_libdir}/cmake
%files libs
%{_libdir}/libaws*so
%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/s2n
%dir %{_includedir}/s2n/unstable
%dir %{_includedir}/aws
%dir %{_includedir}/smithy
%dir %{_includedir}/smithy/tracing
%dir %{_libdir}/cmake
%dir %{_libdir}/aws-c-auth/cmake
%dir %{_libdir}/aws-c-cal/cmake
%dir %{_libdir}/aws-c-cal/cmake/modules
%dir %{_libdir}/aws-c-common/cmake
%dir %{_libdir}/aws-c-compression/cmake/static
%dir %{_libdir}/aws-c-event-stream/cmake
%dir %{_libdir}/aws-c-http/cmake
%dir %{_libdir}/aws-c-io/cmake
%dir %{_libdir}/aws-c-mqtt/cmake
%dir %{_libdir}/aws-c-s3/cmake
%dir %{_libdir}/aws-c-s3/cmake/static
%dir %{_libdir}/aws-c-sdkutils/cmake
%dir %{_libdir}/aws-checksums/cmake
%dir %{_libdir}/aws-crt-cpp/cmake
%dir %{_libdir}/s2n
%dir %{_libdir}/aws-c-compression
%dir %{_libdir}/aws-c-auth
%dir %{_libdir}/aws-c-cal
%dir %{_libdir}/aws-c-common
%dir %{_libdir}/aws-c-compression
%dir %{_libdir}/aws-c-event-stream
%dir %{_libdir}/aws-c-http
%dir %{_libdir}/aws-c-io
%dir %{_libdir}/aws-c-mqtt
%dir %{_libdir}/aws-c-s3
%dir %{_libdir}/aws-c-s3
%dir %{_libdir}/aws-c-sdkutils
%dir %{_libdir}/aws-checksums
%dir %{_libdir}/aws-crt-cpp
%dir %{_libdir}/s2n
%dir %{_libdir}/s2n/cmake
%dir %{_libdir}/aws-c-compression
%dir %{_libdir}/aws-c-compression/cmake
%{_includedir}/s2n.h
%{_includedir}/s2n/unstable/*
%{_includedir}/smithy/Smithy_EXPORTS.h
%{_includedir}/smithy/tracing/*
%{_includedir}/aws
%{_libdir}/cmake
%{_libdir}/aws-c-auth/cmake/*
%{_libdir}/aws-c-cal/cmake/*
%{_libdir}/aws-c-cal/cmake/modules/*
%{_libdir}/aws-c-common/cmake/*
%{_libdir}/aws-c-compression/cmake/static/*
%{_libdir}/aws-c-event-stream/cmake/*
%{_libdir}/aws-c-http/cmake/*
%{_libdir}/aws-c-io/cmake/*
%{_libdir}/aws-c-mqtt/cmake/*
%{_libdir}/aws-c-s3/cmake/*
%{_libdir}/aws-c-s3/cmake/static/*
%{_libdir}/aws-c-sdkutils/cmake/*
%{_libdir}/aws-checksums/cmake/*
%{_libdir}/aws-crt-cpp/cmake/*
%{_libdir}/s2n/cmake/*
%{_libdir}/aws-c-compression/cmake/*
%{_libdir}/pkgconfig
%files devel-static
%defattr(-,root,root,-)
%{_libdir}/libaws-c-auth.a
%{_libdir}/libaws-c-cal.a
%{_libdir}/libaws-c-common.a
%{_libdir}/libaws-c-compression.a
%{_libdir}/libaws-c-event-stream.a
%{_libdir}/libaws-c-http.a
%{_libdir}/libaws-c-io.a
%{_libdir}/libaws-c-mqtt.a
%{_libdir}/libaws-c-s3.a
%{_libdir}/libaws-c-sdkutils.a
%{_libdir}/libaws-checksums.a
%{_libdir}/libaws-crt-cpp.a
%{_libdir}/libs2n.a
%changelog