%{?mingw_package_header} Name: mingw-gsl Version: 1.15 Release: 2%{?dist} Summary: MinGW Windows port of the GNU Scientific Library # info part of this package is under GFDL license # eigen/nonsymmv.c and eigen/schur.c # contains rutiens which are part of LAPACK - under BSD style license License: GPLv3 and GFDL and BSD URL: http://www.gnu.org/software/gsl/ Source0: ftp://ftp.gnu.org/gnu/gsl/gsl-%{version}.tar.gz Patch0: gsl-1.15-lib64.patch BuildArch: noarch BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw32-gcc BuildRequires: mingw64-gcc BuildRequires: mingw32-binutils BuildRequires: mingw64-binutils %description The GNU Scientific Library (GSL) is a collection of routines for numerical analysis, written in C. # Mingw32 %package -n mingw32-gsl Summary: MinGW Windows port of the GNU Scientific Library for the win32 target %description -n mingw32-gsl The GNU Scientific Library (GSL) is a collection of routines for numerical analysis, written in C. %package -n mingw32-gsl-static Summary: Static version of MinGW Windows port of the GNU Scientific Library Requires: mingw32-gsl = %{version}-%{release} %description -n mingw32-gsl-static Static version of MinGW Windows port of the GNU Scientific Library for the win32 target. # Mingw64 %package -n mingw64-gsl Summary: MinGW Windows port of the GNU Scientific Library for the win64 target %description -n mingw64-gsl The GNU Scientific Library (GSL) is a collection of routines for numerical analysis, written in C. %package -n mingw64-gsl-static Summary: Static version of MinGW Windows port of the GNU Scientific Library Requires: mingw64-gsl = %{version}-%{release} %description -n mingw64-gsl-static Static version of MinGW Windows port of the GNU Scientific Library for the win32 target. %{?mingw_debug_package} %prep %setup -q -n gsl-%{version} %patch0 -p1 -b .lib64 iconv -f windows-1252 -t utf-8 THANKS > THANKS.aux touch -r THANKS THANKS.aux mv THANKS.aux THANKS %build # Native package has: # configure ... CFLAGS="$CFLAGS -fgnu89-inline" # but that destroys the original CFLAGS setting. %mingw_configure %mingw_make %{?_smp_mflags} %install %mingw_make install "DESTDIR=$RPM_BUILD_ROOT" # Libtool files don't need to be bundled find $RPM_BUILD_ROOT -name "*.la" -delete # Remove info files and man pages which duplicate native package. rm -r $RPM_BUILD_ROOT%{mingw32_mandir} rm -r $RPM_BUILD_ROOT%{mingw32_infodir} rm -r $RPM_BUILD_ROOT%{mingw64_mandir} rm -r $RPM_BUILD_ROOT%{mingw64_infodir} # Mingw32 %files -n mingw32-gsl %doc COPYING AUTHORS BUGS ChangeLog NEWS README THANKS TODO %{mingw32_bindir}/libgslcblas-0.dll %{mingw32_bindir}/libgsl-0.dll %{mingw32_bindir}/gsl-config %{mingw32_bindir}/gsl-histogram.exe %{mingw32_bindir}/gsl-randist.exe %{mingw32_libdir}/libgslcblas.dll.a %{mingw32_libdir}/libgsl.dll.a %{mingw32_libdir}/pkgconfig/gsl.pc %{mingw32_datadir}/aclocal/gsl.m4 %{mingw32_includedir}/gsl %files -n mingw32-gsl-static %{mingw32_libdir}/libgslcblas.a %{mingw32_libdir}/libgsl.a # Mingw64 %files -n mingw64-gsl %doc COPYING AUTHORS BUGS ChangeLog NEWS README THANKS TODO %{mingw64_bindir}/libgslcblas-0.dll %{mingw64_bindir}/libgsl-0.dll %{mingw64_bindir}/gsl-config %{mingw64_bindir}/gsl-histogram.exe %{mingw64_bindir}/gsl-randist.exe %{mingw64_libdir}/libgslcblas.dll.a %{mingw64_libdir}/libgsl.dll.a %{mingw64_libdir}/pkgconfig/gsl.pc %{mingw64_datadir}/aclocal/gsl.m4 %{mingw64_includedir}/gsl %files -n mingw64-gsl-static %{mingw64_libdir}/libgslcblas.a %{mingw64_libdir}/libgsl.a %changelog * Sun Jun 3 2012 Alexey Kurov - 1.15-2 - subpackages specific summaries - no cleanup needed in %%install section - removed %%defattr * Tue May 8 2012 Alexey Kurov - 1.15-1 - GSL 1.15 - mingw64 support * Sun Mar 21 2010 Keiichi Takahashi - 1.14-1 - update GSL to 1.14. * Mon Oct 26 2009 Keiichi Takahashi - 1.13-2 - Added -static subpackage * Sun Oct 25 2009 Keiichi Takahashi - 1.13-1 - update GSL to 1.13. * Fri Feb 20 2009 Richard W.M. Jones - 1.11-4 - Rebuild for mingw32-gcc 4.4 * Fri Feb 6 2009 Richard W.M. Jones - 1.11-3 - Include license. * Fri Jan 23 2009 Richard W.M. Jones - 1.11-2 - Use _smp_mflags. * Fri Oct 24 2008 Richard W.M. Jones - 1.11-1 - Initial RPM release.