File mingw64-gsl.spec of Package mingw64-gsl
#
# spec file for package mingw64-gsl
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: mingw64-gsl
Version: 1.14
Release: 0
Summary: MinGW Windows port of the GNU Scientific Library
License: LGPL-2.1-or-later
Group: Productivity/Scientific/Math
Url: http://www.gnu.org/software/gsl/
Source0: ftp://ftp.gnu.org/gnu/gsl/gsl-%{version}.tar.gz
#!BuildIgnore: post-build-checks
Patch0: gsl-1.10-lib64.patch
BuildRequires: dos2unix
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 30
Requires: mingw64-cross-pkg-config
%_mingw64_package_header_debug
BuildArch: noarch
%description
The GNU Scientific Library (GSL) is a collection of routines for
numerical analysis, written in C.
%package -n mingw64-libgsl0
Summary: MinGW Windows port of the GNU Scientific Library
Group: System/Libraries
Obsoletes: mingw64-libgsl
%description -n mingw64-libgsl0
The GNU Scientific Library (GSL) is a collection of routines for
numerical analysis, written in C.
%package -n mingw64-libgsl-devel
Summary: MinGW Windows port of the GNU Scientific Library
Group: Development/Libraries/C and C++
%description -n mingw64-libgsl-devel
The GNU Scientific Library (GSL) is a collection of routines for
numerical analysis, written in C.
%_mingw64_debug_package
%prep
%setup -q -n gsl-%{version}
%patch -P 0 -p1 -b .lib64
iconv -f windows-1252 -t utf-8 THANKS > THANKS.aux
touch -r THANKS THANKS.aux
mv THANKS.aux THANKS
%build
MINGW64_CFLAGS="%{_mingw64_cflags} -fgnu89-inline"; export MINGW64_CFLAGS
%{_mingw64_configure} \
--enable-shared --disable-static
make %{?_smp_mflags} || make
# These ltshwrapper files contain DOS line endings for
# unknown reason. Bash chokes on them, so we have to convert
# them back to normal line endings.
dos2unix .libs/*_ltshwrapper
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
# Remove info files and man pages which duplicate native package.
rm -r %{buildroot}%{_mingw64_mandir}
rm -r %{buildroot}%{_mingw64_infodir}
%files
%defattr(-,root,root)
%{_mingw64_bindir}/gsl-histogram.exe
%{_mingw64_bindir}/gsl-randist.exe
%files -n mingw64-libgsl0
%defattr(-,root,root)
%{_mingw64_bindir}/libgslcblas-0.dll
%{_mingw64_bindir}/libgsl-0.dll
%files -n mingw64-libgsl-devel
%defattr(-,root,root)
%doc COPYING
%{_mingw64_bindir}/gsl-config
%{_mingw64_libdir}/libgslcblas.dll.a
%{_mingw64_libdir}/libgsl.dll.a
%{_mingw64_libdir}/pkgconfig/gsl.pc
%{_mingw64_datadir}/aclocal/gsl.m4
%{_mingw64_includedir}/gsl
%changelog