File mingw32-gmp.spec of Package mingw32-gmp

#
# spec file for package mingw32-gmp
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           mingw32-gmp
Version:        6.1.1
Release:        0
Summary:        The GNU MP Library
License:        GPL-2.0-or-later AND LGPL-3.0-or-later
Group:          Development/Libraries/C and C++
URL:            https://gmplib.org/
Source:         https://gmplib.org/download/gmp/gmp-%{version}.tar.xz
Source1000:     %{name}-rpmlintrc
BuildRequires:  m4
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  xz
#!BuildIgnore:  post-build-checks
BuildArch:      noarch
%{_mingw32_package_header_debug}

%description
GMP is a free library for arbitrary precision arithmetic, operating on signed integers,
rational numbers, and floating point numbers.

%package -n mingw32-libgmp10
Summary:        The GNU MP Library
Group:          System/Libraries
Obsoletes:      mingw32-libgmp
Provides:       mingw32-libgmp

%description -n mingw32-libgmp10
GMP is a free library for arbitrary precision arithmetic, operating on signed integers,
rational numbers, and floating point numbers.

%package -n mingw32-libgmpxx4
Summary:        C++ bindings for the GNU MP Library
Group:          System/Libraries
Obsoletes:      mingw32-libgmpxx
Provides:       mingw32-libgmpxx

%description -n mingw32-libgmpxx4
GMP is a free library for arbitrary precision arithmetic, operating on signed integers,
rational numbers, and floating point numbers.  C++ bindings for the GNU MP Library.

%package devel
Summary:        Include Files and Libraries for Development with the GNU MP Library
Group:          Development/Libraries/C and C++
Requires:       mingw32-libgmp10 = %{version}
Requires:       mingw32-libgmpxx4 = %{version}

%description devel
These libraries are needed to develop programs which calculate with huge numbers (integer and floating point).

%_mingw32_debug_package

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

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%_mingw32_configure \
	  --enable-shared \
      --disable-static \
	  --enable-cxx

%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}

%install
%make_install

%files -n mingw32-libgmp10
%defattr(755,root,root,755)
%{_mingw32_bindir}/libgmp-10.dll

%files -n mingw32-libgmpxx4
%defattr(755,root,root,755)
%{_mingw32_bindir}/libgmpxx-4.dll

%files devel
%defattr(644,root,root,755)
%{_mingw32_libdir}/libgmp.dll.a
%{_mingw32_libdir}/libgmpxx.dll.a
%{_mingw32_includedir}/gmp.h
%{_mingw32_includedir}/gmpxx.h
%{_mingw32_infodir}
%exclude %{_mingw32_infodir}/dir*

%changelog
openSUSE Build Service is sponsored by