8
0
forked from pool/aws-c-common
Files
aws-c-common/aws-c-common.spec
Dirk Mueller a16c1792ef Accepting request 937724 from home:glaubitz:branches:devel:libraries:c_c++
- Update to version 0.6.18
  * Support Windows Server 2008 Pre-release
    + Support for Windows Server 2008
    + CBMC updates
- from version 0.6.17
  * Added support for tvOS and watchOS platform detection Pre-release
    + Added support for detecting watchOS and tvOS (#863)
- from version 0.6.16
  * More Avx2 fixes Pre-release
    + Improve avx2 detection
    + Disable cpu-specific code when using mingw due to an alignment
      bug that has yet to be fixed in gcc (for windows).
- from version 0.6.15
  * Non-AVX2 compile fixes Pre-release
    + Fixed encoding_avx2.c being compiled when AVX is not detected (#854)
- from version 0.6.14
  * Windows string test fixes Pre-release
    + Windows string fixes. (#853)
- from version 0.6.13
  * ARMv6 fixes Latest
    + Only attempt to use sys/auxv.h if it exists (#852)
- from version 0.6.12
  * New version with IO utilities Pre-release
    + Removed ARN parser from common, it's in sdkutils now (#851)
      - Removed ARN parser from common, it's in sdkutils now
      - Removed tests for ARN parser

OBS-URL: https://build.opensuse.org/request/show/937724
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aws-c-common?expand=0&rev=36
2021-12-11 23:56:09 +00:00

95 lines
2.8 KiB
RPMSpec

#
# spec file for package aws-c-common
#
# Copyright (c) 2021 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 1
Name: aws-c-common
Version: 0.6.18
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. It includes cross-platform primitives,
configuration, data structures, and error handling.
%package -n lib%{name}%{library_soversion}
Summary: Core C99 package for AWS SDK for C
Group: System/Libraries
%description -n lib%{name}%{library_soversion}
Core C99 package for AWS SDK for C. It includes cross-platform primitives,
configuration, data structures, and error handling.
This package contains the dynamically linked library.
%package devel
Summary: Development files for aws-c-common library
Group: Development/Libraries/C and C++
Requires: lib%{name}%{library_soversion} = %{version}
%description devel
Core C99 package for AWS SDK for C. It 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 devel
%{_libdir}/cmake/
%{_libdir}/*.so
%{_includedir}/*
%changelog