2018-12-18 14:56:04 +01:00
|
|
|
#
|
|
|
|
# spec file for package abseil-cpp
|
|
|
|
#
|
2022-01-10 23:53:17 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-12-18 14:56:04 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-07-24 20:50:35 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-12-18 14:56:04 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: abseil-cpp
|
2022-01-10 23:53:17 +01:00
|
|
|
Version: 20211102.0
|
2018-12-18 14:56:04 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: C++11 libraries which augment the C++ stdlib
|
|
|
|
License: Apache-2.0
|
2020-01-14 21:09:32 +01:00
|
|
|
URL: https://abseil.io/
|
2020-07-31 15:51:36 +02:00
|
|
|
Source0: https://github.com/abseil/abseil-cpp/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2020-11-02 09:39:42 +01:00
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: cmake
|
2019-11-11 21:18:34 +01:00
|
|
|
BuildRequires: fdupes
|
2021-04-19 21:06:22 +02:00
|
|
|
BuildRequires: pkgconfig
|
2018-12-18 14:56:04 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Abseil is a collection of C++11 libraries which augment the C++
|
|
|
|
standard library. It also provides features incorporated into C++14
|
|
|
|
and C++17 standards.
|
|
|
|
|
2020-11-02 09:39:42 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Header files for Abseil
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Abseil is a collection of C++11 libraries which augment the C++
|
|
|
|
standard library.
|
|
|
|
This package contains headers and build system files for it.
|
|
|
|
|
2018-12-18 14:56:04 +01:00
|
|
|
%prep
|
2020-11-02 09:39:42 +01:00
|
|
|
%autosetup -p1
|
2018-12-18 14:56:04 +01:00
|
|
|
|
|
|
|
%build
|
2020-11-02 09:39:42 +01:00
|
|
|
# let rpm/OBS have some versioning to work with when it comes to upgrades and rebuilds
|
2020-11-09 13:56:28 +01:00
|
|
|
cat >"%{_builddir}/abslx.sym" <<-EOF
|
|
|
|
ABSL_%{version} { global: *; };
|
2020-11-02 09:39:42 +01:00
|
|
|
EOF
|
2020-11-09 13:56:28 +01:00
|
|
|
%define build_ldflags -Wl,--version-script=%{_builddir}/abslx.sym
|
2021-04-19 21:06:22 +02:00
|
|
|
%cmake
|
2021-07-03 20:50:36 +02:00
|
|
|
%cmake_build
|
2018-12-18 14:56:04 +01:00
|
|
|
|
|
|
|
%install
|
2020-11-02 09:39:42 +01:00
|
|
|
%cmake_install
|
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
|
|
|
|
2021-04-19 21:06:22 +02:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2020-11-02 09:39:42 +01:00
|
|
|
%files
|
2020-11-09 13:56:28 +01:00
|
|
|
%license LICENSE
|
2021-04-19 21:06:22 +02:00
|
|
|
%{_libdir}/libabsl_*.so.*
|
2020-11-02 09:39:42 +01:00
|
|
|
|
|
|
|
%files devel
|
2021-04-19 21:06:22 +02:00
|
|
|
%doc README.md
|
|
|
|
%{_includedir}/absl
|
|
|
|
%{_libdir}/cmake/absl
|
|
|
|
%{_libdir}/libabsl_*.so
|
|
|
|
%{_libdir}/pkgconfig/absl_*.pc
|
2019-11-11 21:18:34 +01:00
|
|
|
|
2018-12-18 14:56:04 +01:00
|
|
|
%changelog
|