Blame abseil-cpp.spec

Bernhard M. Wiedemann 2adb0f
#
Bernhard M. Wiedemann 2adb0f
# spec file for package abseil-cpp
Bernhard M. Wiedemann 2adb0f
#
387a1b
# Copyright (c) 2021 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
387a1b
Version:        20210324.0
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
387a1b
# PATCH-FIX-UPSTREAM Correctly-install-pkgconfig.patch -- https://github.com/abseil/abseil-cpp/commit/7f4d0ba0be4c70fd71eb4c08a6422c8c2f7faa0b
387a1b
Patch0:         Correctly-install-pkgconfig.patch
241de0
BuildRequires:  c++_compiler
241de0
BuildRequires:  cmake
Bernhard M. Wiedemann 662df7
BuildRequires:  fdupes
387a1b
BuildRequires:  pkgconfig
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
387a1b
%cmake
Bernhard M. Wiedemann 2adb0f
Bernhard M. Wiedemann 2adb0f
%install
241de0
%cmake_install
241de0
%fdupes %{buildroot}/%{_prefix}
241de0
387a1b
%post   -p /sbin/ldconfig
387a1b
%postun -p /sbin/ldconfig
387a1b
241de0
%files
bc69e6
%license LICENSE
387a1b
%{_libdir}/libabsl_*.so.*
241de0
241de0
%files devel
387a1b
%doc README.md
387a1b
%{_includedir}/absl
387a1b
%{_libdir}/cmake/absl
387a1b
%{_libdir}/libabsl_*.so
387a1b
%{_libdir}/pkgconfig/absl_*.pc
Bernhard M. Wiedemann 662df7
Bernhard M. Wiedemann 2adb0f
%changelog