File mingw32-gsl.spec of Package mingw32-gsl
#
# spec file for package mingw32-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: mingw32-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: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem >= 30
Requires: mingw32-cross-pkg-config
%_mingw32_package_header_debug
BuildArch: noarch
%description
The GNU Scientific Library (GSL) is a collection of routines for
numerical analysis, written in C.
%package -n mingw32-libgsl0
Summary: MinGW Windows port of the GNU Scientific Library
Group: System/Libraries
Obsoletes: mingw32-libgsl
%description -n mingw32-libgsl0
The GNU Scientific Library (GSL) is a collection of routines for
numerical analysis, written in C.
%package -n mingw32-libgsl-devel
Summary: MinGW Windows port of the GNU Scientific Library
Group: Development/Libraries/C and C++
%description -n mingw32-libgsl-devel
The GNU Scientific Library (GSL) is a collection of routines for
numerical analysis, written in C.
%_mingw32_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
MINGW32_CFLAGS="%{_mingw32_cflags} -fgnu89-inline"; export MINGW32_CFLAGS
%{_mingw32_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}%{_mingw32_mandir}
rm -r %{buildroot}%{_mingw32_infodir}
%files
%defattr(-,root,root)
%{_mingw32_bindir}/gsl-histogram.exe
%{_mingw32_bindir}/gsl-randist.exe
%files -n mingw32-libgsl0
%defattr(-,root,root)
%{_mingw32_bindir}/libgslcblas-0.dll
%{_mingw32_bindir}/libgsl-0.dll
%files -n mingw32-libgsl-devel
%defattr(-,root,root)
%doc COPYING
%{_mingw32_bindir}/gsl-config
%{_mingw32_libdir}/libgslcblas.dll.a
%{_mingw32_libdir}/libgsl.dll.a
%{_mingw32_libdir}/pkgconfig/gsl.pc
%{_mingw32_datadir}/aclocal/gsl.m4
%{_mingw32_includedir}/gsl
%changelog