|
Bernhard M. Wiedemann |
2adb0f |
#
|
|
Bernhard M. Wiedemann |
2adb0f |
# spec file for package abseil-cpp
|
|
Bernhard M. Wiedemann |
2adb0f |
#
|
|
Bernhard M. Wiedemann |
76cc3d |
# Copyright (c) 2020 SUSE LLC
|
|
Bernhard M. Wiedemann |
2adb0f |
#
|
|
Bernhard M. Wiedemann |
2adb0f |
# All modifications and additions to the file contributed by third parties
|
|
Bernhard M. Wiedemann |
2adb0f |
# remain the property of their copyright owners, unless otherwise agreed
|
|
Bernhard M. Wiedemann |
2adb0f |
# upon. The license for this file, and modifications and additions to the
|
|
Bernhard M. Wiedemann |
2adb0f |
# file, is the same license as for the pristine package itself (unless the
|
|
Bernhard M. Wiedemann |
2adb0f |
# license for the pristine package is not an Open Source License, in which
|
|
Bernhard M. Wiedemann |
2adb0f |
# case the license is the MIT License). An "Open Source License" is a
|
|
Bernhard M. Wiedemann |
2adb0f |
# license that conforms to the Open Source Definition (Version 1.9)
|
|
Bernhard M. Wiedemann |
2adb0f |
# published by the Open Source Initiative.
|
|
Bernhard M. Wiedemann |
2adb0f |
|
|
Bernhard M. Wiedemann |
2adb0f |
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
Bernhard M. Wiedemann |
2adb0f |
#
|
|
Bernhard M. Wiedemann |
2adb0f |
|
|
Bernhard M. Wiedemann |
2adb0f |
|
|
Bernhard M. Wiedemann |
2adb0f |
Name: abseil-cpp
|
|
|
0a14bf |
Version: 20200923.2
|
|
Bernhard M. Wiedemann |
2adb0f |
Release: 0
|
|
Bernhard M. Wiedemann |
2adb0f |
Summary: C++11 libraries which augment the C++ stdlib
|
|
Bernhard M. Wiedemann |
2adb0f |
License: Apache-2.0
|
|
Bernhard M. Wiedemann |
2c54d5 |
URL: https://abseil.io/
|
|
Bernhard M. Wiedemann |
76cc3d |
Source0: https://github.com/abseil/abseil-cpp/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
241de0 |
BuildRequires: c++_compiler
|
|
|
241de0 |
BuildRequires: cmake
|
|
Bernhard M. Wiedemann |
662df7 |
BuildRequires: fdupes
|
|
Bernhard M. Wiedemann |
2adb0f |
|
|
Bernhard M. Wiedemann |
2adb0f |
%description
|
|
Bernhard M. Wiedemann |
2adb0f |
Abseil is a collection of C++11 libraries which augment the C++
|
|
Bernhard M. Wiedemann |
2adb0f |
standard library. It also provides features incorporated into C++14
|
|
Bernhard M. Wiedemann |
2adb0f |
and C++17 standards.
|
|
Bernhard M. Wiedemann |
2adb0f |
|
|
|
241de0 |
%package devel
|
|
|
241de0 |
Summary: Header files for Abseil
|
|
|
241de0 |
Requires: %{name} = %{version}
|
|
|
241de0 |
|
|
|
241de0 |
%description devel
|
|
|
241de0 |
Abseil is a collection of C++11 libraries which augment the C++
|
|
|
241de0 |
standard library.
|
|
|
241de0 |
This package contains headers and build system files for it.
|
|
|
241de0 |
|
|
Bernhard M. Wiedemann |
2adb0f |
%prep
|
|
|
241de0 |
%autosetup -p1
|
|
Bernhard M. Wiedemann |
2adb0f |
|
|
Bernhard M. Wiedemann |
2adb0f |
%build
|
|
|
241de0 |
# let rpm/OBS have some versioning to work with when it comes to upgrades and rebuilds
|
|
|
bc69e6 |
cat >"%{_builddir}/abslx.sym" <<-EOF
|
|
|
bc69e6 |
ABSL_%{version} { global: *; };
|
|
|
241de0 |
EOF
|
|
|
bc69e6 |
%define build_ldflags -Wl,--version-script=%{_builddir}/abslx.sym
|
|
|
241de0 |
%cmake -DBUILD_SHARED_LIBS:BOOL=ON
|
|
Bernhard M. Wiedemann |
2adb0f |
|
|
Bernhard M. Wiedemann |
2adb0f |
%install
|
|
|
241de0 |
%cmake_install
|
|
|
241de0 |
%fdupes %{buildroot}/%{_prefix}
|
|
|
241de0 |
|
|
|
241de0 |
%files
|
|
|
bc69e6 |
%license LICENSE
|
|
|
bc69e6 |
%doc README.md
|
|
|
241de0 |
%{_libdir}/libabsl_*.so
|
|
|
241de0 |
|
|
|
241de0 |
%files devel
|
|
|
241de0 |
%{_includedir}/absl/
|
|
|
241de0 |
%{_libdir}/cmake/
|
|
Bernhard M. Wiedemann |
662df7 |
|
|
Bernhard M. Wiedemann |
2adb0f |
%changelog
|