adopt to new cmake macro

(cherry picked from commit a669edb3629998f55fe66cb5e8f53d16b41898f5)
This commit is contained in:
Funda Wang 2024-11-27 11:56:09 +08:00 committed by openeuler-sync-bot
parent 2c122eaad0
commit 95f313503f
2 changed files with 34 additions and 30 deletions

View File

@ -1,62 +1,62 @@
Name: aws-sdk-cpp Name: aws-sdk-cpp
Version: 1.11.327 Version: 1.11.327
Release: 2 Release: 3
Summary: The AWS SDK for C++ provides a modern C++ interface for AWS Summary: The AWS SDK for C++ provides a modern C++ interface for AWS
License: Apache-2.0 License: Apache-2.0
URL: https://github.com/aws/aws-sdk-cpp.git URL: https://github.com/aws/aws-sdk-cpp
Source0: https://github.com/aws/aws-sdk-cpp/archive/refs/tags/%{name}-%{version}.tar.gz Source0: https://github.com/aws/aws-sdk-cpp/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires: tar cmake gcc-c++ gcc BuildRequires: cmake >= 3.13
BuildRequires: libcurl-devel openssl-devel zlib-devel BuildRequires: gcc gcc-c++
BuildRequires: libcurl-devel
Requires: libcurl openssl zlib BuildRequires: openssl-devel
BuildRequires: zlib-devel
%description %description
The AWS SDK for C++ provides a modern C++ (version C++ 11 or later) interface 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. for Amazon Web Services (AWS). This package contains the S3 component.
%global debug_package %{nil} %package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for %{name}.
%prep %prep
%autosetup -p1 %autosetup -p1
%build %build
mkdir -p tmp_build %{cmake} \
pushd tmp_build -B %{__cmake_builddir} \
%{cmake} .. \
-DBUILD_ONLY="s3" \ -DBUILD_ONLY="s3" \
-DCMAKE_CXX_FLAGS="%{optflags} -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector-strong" \ -DCMAKE_CXX_FLAGS="%{build_cxxflags} -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_C_FLAGS="%{build_cflags} -std=c99 -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector-strong" \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,relro,-z,now %{build_ldflags}" \ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,relro,-z,now %{build_ldflags}" \
-DCMAKE_SKIP_RPATH=TRUE \ -DCMAKE_SKIP_RPATH=TRUE \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DAUTORUN_UNIT_TESTS=OFF -DAUTORUN_UNIT_TESTS=OFF
%make_build -s %{?_smp_mflags} %cmake_build
popd
%install %install
pushd tmp_build %cmake_install
make install -s %{?_smp_mflags} DESTDIR=%{buildroot}
popd
%files %files
%doc %{_libdir}/*.so
%defattr(-,root,root)
%{_prefix}/include/aws
%{_prefix}/include/s2n
%{_prefix}/include/s2n.h
%{_prefix}/include/smithy
%{_libdir}/aws*
%{_libdir}/cmake
%{_libdir}/libaws*
%{_libdir}/libs2n*
%{_libdir}/libtesting*
%{_libdir}/pkgconfig
%{_libdir}/s2n
%files devel
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/*
%{_libdir}/*/cmake
%changelog %changelog
* Wed Nov 27 2024 Funda Wang <fundawang@yeah.net> - 1.11.327-3
- adopt to new cmake macro
- split out devel package
* Fri Nov 22 2024 liuheng <hengliue@163.com> - 1.11.327-2 * Fri Nov 22 2024 liuheng <hengliue@163.com> - 1.11.327-2
- fix bug - fix bug

4
aws-sdk-cpp.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: aws/aws-sdk-cpp
tag_prefix:
separator: .