forked from pool/aws-c-common
- Update to version 0.4.11
+ Fix stupid bad boolean logic in macro.
* Fix stupid bad boolean logic in macro
* simplified gcc macro for assume
- from version 0.4.10
+ Fixed support for gcc 4.1.2.
- from version 0.4.9
+ fixed mixed static/shared builds.
* Reorder thread shutdown so that only truly necessary
memory is still allocated at shutdown callback town
- from version 0.4.8
+ Made AWS_ENABLE_LTO an option
* AWS_ENABLE_LTO=ON|OFF now controls LTO globally
* Made AWS_ENABLE_LTO an option
- from version 0.4.7
+ Added support for thread exit callbacks
* Added support for thread exit callbacks
* Added user data support to aws_thread_call_once
- from version 0.4.6
+ LTO support
* Added IPO/LTO support to cmake
* Removed the requirement that release builds produce good backtrace output
* Check for IPO policy in older versions of CMake
* Add policy existence check to c flags
- Re-enable link-time optimization (LTO) in spec file
OBS-URL: https://build.opensuse.org/request/show/734788
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aws-c-common?expand=0&rev=7
95 lines
2.9 KiB
RPMSpec
95 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package aws-c-common
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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-common
|
|
Version: 0.4.11
|
|
Release: 0
|
|
Summary: Core c99 package for AWS SDK for C
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://github.com/awslabs/aws-c-common
|
|
Source0: https://github.com/awslabs/%{name}/archive/v%{version}.tar.gz
|
|
BuildRequires: cmake
|
|
BuildRequires: fdupes
|
|
BuildRequires: ninja
|
|
|
|
%description
|
|
Core c99 package for AWS SDK for C. Includes cross-platform primitives,
|
|
configuration, data structures, and error handling.
|
|
|
|
%package -n lib%{name}%{library_soversion}
|
|
Summary: Shared library files for aws-c-common library
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n lib%{name}%{library_soversion}
|
|
Core c99 package for AWS SDK for C. Includes cross-platform primitives,
|
|
configuration, data structures, and error handling.
|
|
|
|
This package contains the dynamically linked library.
|
|
|
|
%package -n lib%{name}-devel
|
|
Summary: Development files for aws-c-common library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: lib%{name}%{library_soversion} = %{version}
|
|
|
|
%description -n lib%{name}-devel
|
|
Core c99 package for AWS SDK for C. Includes cross-platform primitives,
|
|
configuration, data structures, and error handling.
|
|
|
|
This package contains the development files.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%define __builder ninja
|
|
%cmake \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
%make_jobs
|
|
|
|
%check
|
|
export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/build
|
|
%ctest
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
# Move cmake files to correct installation path
|
|
mkdir -p %{buildroot}%{_libdir}/cmake/aws-c-common
|
|
mv %{buildroot}%{_libdir}/aws-c-common/cmake/* %{buildroot}%{_libdir}/cmake/aws-c-common/
|
|
mv %{buildroot}%{_libdir}/cmake/Aws* %{buildroot}%{_libdir}/cmake/aws-c-common/
|
|
rm -rf %{buildroot}%{_libdir}/aws-c-common
|
|
|
|
%post -n lib%{name}%{library_soversion} -p /sbin/ldconfig
|
|
%postun -n lib%{name}%{library_soversion} -p /sbin/ldconfig
|
|
|
|
%files -n lib%{name}%{library_soversion}
|
|
%doc NOTICE README.md
|
|
%license LICENSE
|
|
%{_libdir}/*.so.%{library_soversion}
|
|
%{_libdir}/*.so.%{library_version}
|
|
|
|
%files -n lib%{name}-devel
|
|
%{_libdir}/cmake/aws-c-common
|
|
%{_libdir}/*.so
|
|
%{_includedir}/*
|
|
|
|
%changelog
|
|
|