File mingw64-double-conversion.spec of Package mingw64-double-conversion

#
# spec file for package mingw64-double-conversion
#
# Copyright (c) 2024, 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 double-conversion
%define libname mingw64-lib%{realname}

Name:           mingw64-%{realname}
Version:        3.3.0
Release:        0
Summary:        Binary-decimal and decimal-binary routines for IEEE doubles
License:        BSD-3-Clause
URL:            https://github.com/google/double-conversion
Source0:        https://github.com/google/double-conversion/archive/v%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-filesystem
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Double-conversion provides binary-decimal and decimal-binary routines
for IEEE double-precision floating point numbers. The library
consists of conversion routines that have been extracted from the V8
JavaScript engine.

%package -n %{libname}
Summary:        Binary-decimal and decimal-binary routines for IEEE doubles

%description -n %{libname}
Double-conversion provides binary-decimal and decimal-binary routines
for IEEE double-precision floating point numbers. The library
consists of conversion routines that have been extracted from the V8
JavaScript engine.

This subpackage contains the implementation as a shared library.

%package -n mingw64-%{realname}-devel
Summary:        Development files for BCD/DCB routines for IEEE doubles
Group:          Development/Libraries/C and C++
Requires:       %{libname} = %{version}

%description -n mingw64-%{realname}-devel
Double-conversion provides binary-decimal and decimal-binary routines
for IEEE double-precision floating point numbers. The library
consists of conversion routines that have been extracted from the V8
JavaScript engine.

This package provides libraries and header files for developing applications
that use double-conversion.

%_mingw64_debug_package

%prep
%setup -q -n %{realname}-%{version}

%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}

%install
%{_mingw64_cmake_install}

%files -n %{libname}
%license LICENSE
%{_mingw64_bindir}/libdouble-conversion.dll

%files -n mingw64-%{realname}-devel
%license LICENSE
%{_mingw64_includedir}/double-conversion/
%{_mingw64_libdir}/libdouble-conversion.dll.a
%{_mingw64_libdir}/cmake/double-conversion/

%changelog
openSUSE Build Service is sponsored by