[mingw-gsl] import gsl-1.15

nucleo nucleo at fedoraproject.org
Mon Jun 4 12:23:08 UTC 2012


commit b518d113f19efcd51f331ba9084e3f99b8f1f55c
Author: nucleo <nucleo at fedoraproject.org>
Date:   Mon Jun 4 15:23:04 2012 +0300

    import gsl-1.15

 .gitignore           |    1 +
 gsl-1.15-lib64.patch |   23 +++++++
 mingw-gsl.spec       |  160 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 4 files changed, 185 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..234ae88 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gsl-1.15.tar.gz
diff --git a/gsl-1.15-lib64.patch b/gsl-1.15-lib64.patch
new file mode 100644
index 0000000..039bf18
--- /dev/null
+++ b/gsl-1.15-lib64.patch
@@ -0,0 +1,23 @@
+diff -up gsl-1.15/gsl-config.in.pom gsl-1.15/gsl-config.in
+--- gsl-1.15/gsl-config.in.pom	2010-12-26 18:57:08.000000000 +0100
++++ gsl-1.15/gsl-config.in	2011-05-09 08:33:05.000000000 +0200
+@@ -58,16 +58,16 @@ while test $# -gt 0; do
+ 	;;
+ 
+     --cflags)
+-       	echo @GSL_CFLAGS@ 
++       	echo -I$includedir
+        	;;
+ 
+     --libs)
+         : ${GSL_CBLAS_LIB=-lgslcblas}
+-	echo @GSL_LIBS@ $GSL_CBLAS_LIB @GSL_LIBM@
++	echo -lgsl $GSL_CBLAS_LIB -lm
+        	;;
+ 
+     --libs-without-cblas)
+-	echo @GSL_LIBS@ @GSL_LIBM@
++	echo -lgsl -lm
+        	;;
+     *)
+ 	usage
diff --git a/mingw-gsl.spec b/mingw-gsl.spec
new file mode 100644
index 0000000..64afc58
--- /dev/null
+++ b/mingw-gsl.spec
@@ -0,0 +1,160 @@
+%{?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 <nucleo at fedoraproject.org> - 1.15-2
+- subpackages specific summaries
+- no cleanup needed in %%install section
+- removed %%defattr
+
+* Tue May  8 2012 Alexey Kurov <nucleo at fedoraproject.org> - 1.15-1
+- GSL 1.15
+- mingw64 support
+
+* Sun Mar 21 2010 Keiichi Takahashi <bitwalk at users.sourceforge.net> -   1.14-1
+- update GSL to 1.14.
+
+* Mon Oct 26 2009 Keiichi Takahashi <bitwalk at users.sourceforge.net> -   1.13-2
+- Added -static subpackage
+
+* Sun Oct 25 2009 Keiichi Takahashi <bitwalk at users.sourceforge.net> -   1.13-1
+- update GSL to 1.13.
+
+* Fri Feb 20 2009 Richard W.M. Jones <rjones at redhat.com> - 1.11-4
+- Rebuild for mingw32-gcc 4.4
+
+* Fri Feb  6 2009 Richard W.M. Jones <rjones at redhat.com> - 1.11-3
+- Include license.
+
+* Fri Jan 23 2009 Richard W.M. Jones <rjones at redhat.com> - 1.11-2
+- Use _smp_mflags.
+
+* Fri Oct 24 2008 Richard W.M. Jones <rjones at redhat.com> - 1.11-1
+- Initial RPM release.
diff --git a/sources b/sources
index e69de29..a0f1b0b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+494ffefd90eef4ada678c306bab4030b  gsl-1.15.tar.gz


More information about the scm-commits mailing list