Compare commits

..

No commits in common. "1e242743fe35cdb68d259f2cbd3e5d5454391d6c" and "bce3f0b3574bc412d1c2b7ebeafeef6483f627a0" have entirely different histories.

2 changed files with 23 additions and 39 deletions

View File

@ -1,63 +1,51 @@
Name: aws-sdk-cpp
Version: 1.11.327
Release: 3
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
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: cmake >= 3.13
BuildRequires: gcc gcc-c++
BuildRequires: libcurl-devel
BuildRequires: openssl-devel
BuildRequires: zlib-devel
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.
%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
%autosetup -p1
%build
%{cmake} \
install -d %{_vpath_builddir}
cd %{_vpath_builddir}
%{cmake} .. \
-DBUILD_ONLY="s3" \
-DCMAKE_CXX_FLAGS="%{build_cxxflags} -std=c++11 -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_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
%make_build
cd ..
%make_build -s %{?_smp_mflags} -C %{_vpath_builddir}
%install
%make_install
make install -s %{?_smp_mflags} -C %{_vpath_builddir} DESTDIR=%{buildroot}
%files
%{_libdir}/*.so
%doc
%defattr(644,root,root,-)
%{_prefix}/include/*
%files devel
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/*
%{_libdir}/*/cmake
%defattr(755,root,root,-)
%{_prefix}/lib64/*
%{_prefix}/lib/*
%{_prefix}/src/*
%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
- fix bug
* Thu Nov 7 2024 liuheng <hengliue@163.com> - 1.11.327-1
- Initial package
* Thu Nov 7 2024 liuheng <hengliue@163.com> - 1.11.327-9
- Initial package

View File

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