File mingw32-double-conversion.spec of Package mingw32-double-conversion
#
# spec file for package mingw32-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 mingw32-lib%{realname}
Name: mingw32-%{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: mingw32-cross-cmake
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-filesystem
%_mingw32_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 mingw32-%{realname}-devel
Summary: Development files for BCD/DCB routines for IEEE doubles
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description -n mingw32-%{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.
%_mingw32_debug_package
%prep
%setup -q -n %{realname}-%{version}
%build
%{_mingw32_cmake}
%{_mingw32_cmake_build}
%install
%{_mingw32_cmake_install}
%files -n %{libname}
%license LICENSE
%{_mingw32_bindir}/libdouble-conversion.dll
%files -n mingw32-%{realname}-devel
%license LICENSE
%{_mingw32_includedir}/double-conversion/
%{_mingw32_libdir}/libdouble-conversion.dll.a
%{_mingw32_libdir}/cmake/double-conversion/
%changelog