SHA256
1
0
forked from pool/aws-c-s3
aws-c-s3/aws-c-s3.spec
John Paul Adrian Glaubitz 2ec03446ab Accepting request 1176474 from home:glaubitz:branches:devel:libraries:c_c++
- Update to version 0.5.9
  * Buffer-pool allows "forced" buffers, which don't count
    against memory limit by @graebm in (#429)
  * Improve async write (fewer copies, polling API)
    by @graebm in (#430)
- Add Provides and Obsoletes for lib%{name}%{library_soversion}

OBS-URL: https://build.opensuse.org/request/show/1176474
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aws-c-s3?expand=0&rev=48
2024-05-31 10:33:46 +00:00

116 lines
3.4 KiB
RPMSpec

#
# spec file for package aws-c-s3
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
%define library_version 1.0.0
%define library_soversion 0unstable
Name: aws-c-s3
Version: 0.5.9
Release: 0
Summary: AWS Cross-Platform, C99 wrapper for cryptography primitives
License: Apache-2.0
Group: Development/Libraries/C and C++
URL: https://github.com/awslabs/aws-c-s3
Source0: https://github.com/awslabs/%{name}/archive/v%{version}.tar.gz
Patch0: acs_fix-cmake-modules-path.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: cmake(aws-c-auth)
BuildRequires: cmake(aws-c-cal)
BuildRequires: cmake(aws-c-common)
BuildRequires: cmake(aws-c-compression)
BuildRequires: cmake(aws-c-http)
BuildRequires: cmake(aws-c-io)
BuildRequires: cmake(aws-c-sdkutils)
BuildRequires: cmake(aws-checksums)
BuildRequires: cmake(s2n)
BuildRequires: pkgconfig(libssl)
BuildRequires: pkgconfig(numa)
%description
AWS Crypto Abstraction Layer: Cross-Platform, C99 wrapper for cryptography primitives.
%package -n %{name}-bin
Summary: Binary files for aws-c-s3 library
Group: Development/Libraries/C and C++
# both provide /usr/bin/s3
Conflicts: libs3-tools
%description -n %{name}-bin
AWS Crypto Abstraction Layer: Cross-Platform, C99 wrapper for cryptography primitives.
This package contains the command line utilities.
%package -n lib%{name}-%{library_soversion}
Summary: Shared library files for aws-c-s3 library
Group: Development/Libraries/C and C++
Provides: lib%{name}%{library_soversion} = %{version}
Obsoletes: lib%{name}%{library_soversion} < %{version}
%description -n lib%{name}-%{library_soversion}
AWS Crypto Abstraction Layer: Cross-Platform, C99 wrapper for cryptography primitives.
This package contains the dynamically linked library.
%package devel
Summary: Development files for aws-c-s3 library
Group: Development/Libraries/C and C++
Requires: lib%{name}-%{library_soversion} = %{version}
%description devel
AWS Crypto Abstraction Layer: Cross-Platform, C99 wrapper for cryptography primitives.
This package contains the development files.
%prep
%autosetup -p1
%build
%define __builder ninja
%cmake \
-DCMAKE_BUILD_TYPE=Release
%make_jobs
# Testsuite currently fails
#%%check
#export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/build
#%%ctest
%install
%cmake_install
%post -n lib%{name}-%{library_soversion} -p /sbin/ldconfig
%postun -n lib%{name}-%{library_soversion} -p /sbin/ldconfig
%files -n %{name}-bin
%{_bindir}/s3
%files -n lib%{name}-%{library_soversion}
%doc README.md
%license LICENSE
%{_libdir}/*.so.%{library_soversion}
%{_libdir}/*.so.%{library_version}
%files devel
%{_libdir}/cmake/%{name}/
%{_libdir}/*.so
%{_includedir}/*
%changelog