Blame abseil-cpp.spec

Bernhard M. Wiedemann 2adb0f
#
Bernhard M. Wiedemann 2adb0f
# spec file for package abseil-cpp
Bernhard M. Wiedemann 2adb0f
#
fda99f
# Copyright (c) 2022 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
1e1c09
%define lname	libabsl2111_0_0
fda99f
Version:        20211102.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
241de0
BuildRequires:  c++_compiler
241de0
BuildRequires:  cmake
Bernhard M. Wiedemann 662df7
BuildRequires:  fdupes
387a1b
BuildRequires:  pkgconfig
1e1c09
%if 0%{suse_version} < 1500
1e1c09
BuildRequires:  gcc11-c++
1e1c09
%endif
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
1e1c09
%package -n %{lname}
1e1c09
Summary:        C++11 libraries which augment the C++ stdlib
1e1c09
Obsoletes:      abseil-cpp < %version-%release
1e1c09
Provides:       abseil-cpp = %version-%release
1e1c09
1e1c09
%description -n %{lname}
1e1c09
Abseil is a collection of C++11 libraries which augment the C++
1e1c09
standard library. It also provides features incorporated into C++14
1e1c09
and C++17 standards.
1e1c09
241de0
%package devel
241de0
Summary:        Header files for Abseil
1e1c09
Requires:       %{lname} = %{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
1e1c09
%if 0%{suse_version} < 1500
1e1c09
export CXX=g++-11
1e1c09
%endif
387a1b
%cmake
ee27e7
%cmake_build
Bernhard M. Wiedemann 2adb0f
Bernhard M. Wiedemann 2adb0f
%install
241de0
%cmake_install
241de0
%fdupes %{buildroot}/%{_prefix}
241de0
1e1c09
%post   -n %{lname} -p /sbin/ldconfig
1e1c09
%postun -n %{lname} -p /sbin/ldconfig
387a1b
1e1c09
%files -n %{lname}
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