@@ 1,52 1,60 @@
Name: aws-c-s3
-Version: 0.1.27
-Release: 5%{?dist}
+Version: 0.5.7
+Release: 1%{?dist}
Summary: C99 library implementation for communicating with the S3 service
-License: ASL 2.0
+License: Apache-2.0
URL: https://github.com/awslabs/%{name}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: aws-c-s3-cmake.patch
BuildRequires: gcc
BuildRequires: cmake
-BuildRequires: aws-c-common-devel
-BuildRequires: aws-c-sdkutils-devel
-BuildRequires: aws-c-cal-devel
-BuildRequires: aws-c-compression-devel
-BuildRequires: aws-c-io-devel
-BuildRequires: aws-c-http-devel
+BuildRequires: openssl-devel
BuildRequires: aws-c-auth-devel
+BuildRequires: aws-c-http-devel
BuildRequires: aws-checksums-devel
+BuildRequires: aws-c-sdkutils-devel
-Requires: aws-c-common-libs
-Requires: aws-c-sdkutils-libs
-Requires: aws-c-cal-libs
-Requires: aws-c-compression-libs
-Requires: aws-c-io-libs
-Requires: aws-c-http-libs
+Requires: openssl-libs
Requires: aws-c-auth-libs
+Requires: aws-c-http-libs
Requires: aws-checksums-libs
+Requires: aws-c-sdkutils-libs
%description
-C99 library implementation for communicating with the S3 service,
-designed for maximizing throughput on high bandwidth EC2 instances.
+The AWS-C-S3 library is an asynchronous AWS S3 client
+focused on maximizing throughput and network utilization.
%package libs
Summary: C99 library implementation for communicating with the S3 service
+Requires: %{name}%{?_isa} = %{version}-%{release}
%description libs
-C99 library implementation for communicating with the S3 service,
-designed for maximizing throughput on high bandwidth EC2 instances.
+The AWS-C-S3 library is an asynchronous AWS S3 client
+focused on maximizing throughput and network utilization.
%package devel
Summary: C99 library implementation for communicating with the S3 service
+Requires: openssl-devel
+Requires: aws-c-auth-devel
+Requires: aws-c-http-devel
+Requires: aws-checksums-devel
+Requires: aws-c-sdkutils-devel
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
-C99 library implementation for communicating with the S3 service,
-designed for maximizing throughput on high bandwidth EC2 instances.
+The AWS-C-S3 library is an asynchronous AWS S3 client
+focused on maximizing throughput and network utilization.
+
+
+%package doc
+Summary: C99 library implementation for communicating with the S3 service
+
+%description doc
+The AWS-C-S3 library is an asynchronous AWS S3 client
+focused on maximizing throughput and network utilization.
%prep
@@ 57,32 65,53 @@ designed for maximizing throughput on high bandwidth EC2 instances.
%cmake -DBUILD_SHARED_LIBS=ON
%cmake_build
+
%install
%cmake_install
+# install documentation
+mkdir -p %{buildroot}/%{_docdir}/aws-c-s3/docs
+mkdir -p %{buildroot}/%{_docdir}/aws-c-s3/docs/images
+install -p -m 644 docs/*.md %{buildroot}/%{_docdir}/aws-c-s3/docs/
+install -p -m 644 docs/images/*.svg %{buildroot}/%{_docdir}/aws-c-s3/docs/images/
+
+
+%check
+%ctest
+
%files
+%license LICENSE NOTICE
+%doc README.md
%{_bindir}/s3
+
%files libs
-%license LICENSE
-%doc README.md
-%{_libdir}/libaws-c-s3.so.0unstable
%{_libdir}/libaws-c-s3.so.1.0.0
+
%files devel
+%{_libdir}/libaws-c-s3.so
%dir %{_includedir}/aws/s3
%{_includedir}/aws/s3/*.h
-
%dir %{_libdir}/cmake/aws-c-s3
%dir %{_libdir}/cmake/aws-c-s3/shared
-%{_libdir}/libaws-c-s3.so
%{_libdir}/cmake/aws-c-s3/aws-c-s3-config.cmake
%{_libdir}/cmake/aws-c-s3/shared/aws-c-s3-targets-noconfig.cmake
%{_libdir}/cmake/aws-c-s3/shared/aws-c-s3-targets.cmake
+%files doc
+%license LICENSE NOTICE
+%dir %{_docdir}/aws-c-s3/docs/
+%dir %{_docdir}/aws-c-s3/docs/images/
+%{_docdir}/aws-c-s3/docs/*.md
+%{_docdir}/aws-c-s3/docs/images/*.svg
+
%changelog
+* Fri May 03 2024 Dominik Wombacher <dominik@wombacher.cc> - 0.5.7-1
+- update to 0.5.7
+
* Tue Feb 22 2022 David Duncan <davdunc@amazon.com> - 0.1.27-5
- Updated for package review