!1 init package

From: @hengliue 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2024-11-21 06:47:50 +00:00 committed by Gitee
commit 2c48d7f537
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 51 additions and 0 deletions

BIN
aws-sdk-cpp-1.11.327.tar.gz Normal file

Binary file not shown.

51
aws-sdk-cpp.spec Normal file
View File

@ -0,0 +1,51 @@
Name: aws-sdk-cpp
Version: 1.11.327
Release: 1
Summary: The AWS SDK for C++ provides a modern C++ interface for AWS
License: Apache-2.0
URL: https://github.com/aws/aws-sdk-cpp.git
Source0: https://github.com/aws/aws-sdk-cpp/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires: tar cmake gcc-c++ gcc
BuildRequires: libcurl-devel openssl-devel zlib-devel
Requires: libcurl openssl zlib
%description
The AWS SDK for C++ provides a modern C++ (version C++ 11 or later) interface
for Amazon Web Services (AWS). This package contains the S3 component.
%prep
%autosetup -p1
%build
install -d %{_vpath_builddir}
cd %{_vpath_builddir}
%{cmake} .. \
-DBUILD_ONLY="s3" \
-DCMAKE_CXX_FLAGS="%{optflags} -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector-strong" \
-DCMAKE_C_FLAGS="%{optflags} -std=c99 -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector-strong" \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,relro,-z,now %{build_ldflags}" \
-DCMAKE_SKIP_RPATH=TRUE \
-DCMAKE_BUILD_TYPE=Release \
-DAUTORUN_UNIT_TESTS=OFF
cd ..
%make_build -s %{?_smp_mflags} -C %{_vpath_builddir}
%install
make install -s %{?_smp_mflags} -C %{_vpath_builddir} DESTDIR=%{buildroot}
%files
%doc
%defattr(644,root,root,-)
%{_prefix}/include/*
%defattr(755,root,root,-)
%{_prefix}/lib64/*
%{_prefix}/lib/*
%{_prefix}/src/*
%changelog
* Thu Nov 7 2024 liuheng <hengliue@163.com> - 1.11.327-9
- Initial package