File mingw64-abseil-cpp.spec of Package mingw64-abseil-cpp

#
# spec file for package mingw64-abseil-cpp
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# 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 http://bugs.opensuse.org/
#


%define realname abseil-cpp
%define libname mingw64-lib%{realname}
Name:           mingw64-%{realname}
Version:        20250127.1
Release:        0
Summary:        C++11 libraries which augment the C++ stdlib
License:        Apache-2.0
URL:            https://abseil.io/
Source0:        https://github.com/abseil/abseil-cpp/releases/download/%{version}/%{realname}-%{version}.tar.gz
Patch0:         options-cxx17.patch
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-cmake
%_mingw64_package_header_debug
BuildArch:      noarch

%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.

%package -n %{libname}
Summary:        C++11 libraries which augment the C++ stdlib
Group:          System/Libraries

%description -n %{libname}
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.

%package devel
Summary:        Header files for Abseil
Group:          Development/Languages/C and C++
Requires:       %{libname} = %{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.

%_mingw64_debug_package

%prep
%autosetup -p1 -n %{realname}-%{version}

%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}

%install
%{_mingw64_cmake_install}

%files -n %{libname}
%{_mingw64_bindir}/libabsl_*.dll

%files devel
%license LICENSE
%doc README.md
%{_mingw64_includedir}/absl
%{_mingw64_libdir}/libabsl_*.dll.a
%{_mingw64_libdir}/pkgconfig/absl_*.pc
%{_mingw64_libdir}/cmake/absl

%changelog
openSUSE Build Service is sponsored by