From 4e016f2068d9b5a53c62a483d7d2cc6e5e40aef6db1cf298a87d1595dbbb89f5 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Thu, 14 Jan 2010 17:01:21 +0000 Subject: [PATCH] Accepting request 29558 from devel:libraries:c_c++ Copy from devel:libraries:c_c++/lapack based on submit request 29558 from user rguenther OBS-URL: https://build.opensuse.org/request/show/29558 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lapack?expand=0&rev=9 --- lapack-3.2.1.patch | 11 +++++ lapack.changes | 6 +++ lapack.spec | 104 ++++----------------------------------------- 3 files changed, 25 insertions(+), 96 deletions(-) create mode 100644 lapack-3.2.1.patch diff --git a/lapack-3.2.1.patch b/lapack-3.2.1.patch new file mode 100644 index 0000000..dbf429c --- /dev/null +++ b/lapack-3.2.1.patch @@ -0,0 +1,11 @@ +--- BLAS/SRC/Makefile.orig 2010-01-13 13:06:19.000000000 +0100 ++++ BLAS/SRC/Makefile 2010-01-13 13:07:13.000000000 +0100 +@@ -167,5 +167,8 @@ + clean: + rm -f *.o + ++dcabs1.o: dcabs1.f ++ $(FORTRAN) $(NOOPT) -c $< -o $@ ++ + .f.o: + $(FORTRAN) $(OPTS) -c $< -o $@ diff --git a/lapack.changes b/lapack.changes index d6b4fee..260ee84 100644 --- a/lapack.changes +++ b/lapack.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 13 13:15:58 CET 2010 - rguenther@suse.de + +- Drop -O3 -funroll-all-loops compiler flags, build dcabs1.f with -O0. + [bnc#569978] + ------------------------------------------------------------------- Mon May 18 15:26:56 CEST 2009 - dominique-obs@leuenberger.net diff --git a/lapack.spec b/lapack.spec index 636e5a5..9a0b7b0 100644 --- a/lapack.spec +++ b/lapack.spec @@ -1,7 +1,7 @@ # # spec file for package lapack (Version 3.2.1) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 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 @@ -22,12 +22,13 @@ Name: lapack BuildRequires: gcc-fortran Summary: Linear Algebra Package Version: 3.2.1 -Release: 1 +Release: 2 License: Public Domain, Freeware Group: Development/Libraries/Parallel Source0: lapack-%{version}.tar.bz2 Source1: manpages-3.2.0.tar.bz2 Source99: lapack-rpmlintrc +Patch1: lapack-3.2.1.patch Url: http://www.netlib.org/lapack/ Requires: blas = %{version} Requires: liblapack3 = %{version} @@ -142,13 +143,14 @@ Authors: %prep %setup -q +%patch1 tar xjf %{S:1} --strip-components=1 %build cp make.inc.example make.inc make cleanlib make %{?jobs:-j%jobs} blaslib \ - OPTS="$RPM_OPT_FLAGS -O3 -funroll-all-loops -fPIC" \ + OPTS="$RPM_OPT_FLAGS -fPIC" \ NOOPT="$RPM_OPT_FLAGS -O0 -fPIC" mv blas_LINUX.a libblas_pic.a mkdir tmp @@ -158,12 +160,12 @@ ln -s libblas.so.%version libblas.so rm -rf tmp make cleanlib make %{?jobs:-j%jobs} blaslib \ - OPTS="$RPM_OPT_FLAGS -O3 -funroll-all-loops" \ + OPTS="$RPM_OPT_FLAGS" \ NOOPT="$RPM_OPT_FLAGS -O0" mv blas_LINUX.a libblas.a make cleanlib make %{?jobs:-j%jobs} lapacklib \ - OPTS="$RPM_OPT_FLAGS -O3 -funroll-all-loops -fPIC" \ + OPTS="$RPM_OPT_FLAGS -fPIC" \ NOOPT="$RPM_OPT_FLAGS -O0 -fPIC" mv lapack_LINUX.a liblapack_pic.a mkdir tmp @@ -173,7 +175,7 @@ ln -s liblapack.so.%version liblapack.so rm -rf tmp make cleanlib make %{?jobs:-j%jobs} lapacklib \ - OPTS="$RPM_OPT_FLAGS -O3 -funroll-all-loops" \ + OPTS="$RPM_OPT_FLAGS" \ NOOPT="$RPM_OPT_FLAGS -O0" mv lapack_LINUX.a liblapack.a @@ -255,93 +257,3 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %changelog -* Mon May 18 2009 dominique-obs@leuenberger.net -- Update to version 3.2.1 [bnc#504669] - * Changes see at http://www.netlib.org/lapack/lapack-3.2.1.html -* Wed Jan 28 2009 rguenther@suse.de -- Update to version 3.2.0. [bnc#456384] - * Extra Precise Iterative Refinement - * XBLAS - * Non-Negative Diagonals from Householder QR - * High Performance QR and Householder Reflections on Low-Profile Matrices - * New fast and accurate Jacobi SVD - * Routines for Rectangular Full Packed format - * Pivoted Cholesky - * Mixed precision iterative refinement - * Some new variants added for the one sided factorization - * More robust DQDS algorithm -* Sun May 11 2008 lrupp@suse.de -- use versioned requires/obsoletes -- %%run_ldconfig is deprecated -- prefix the patch with the packagename -* Fri Apr 27 2007 rguenther@suse.de -- Update to version 3.1.1. [#265999] -- Integrates 3.1.0 errata and missing blas routines. -- Provides better gfortran SECOND integration. -- Split shared libraries into their own versioned subpackage. -* Fri Jan 19 2007 rguenther@suse.de -- Include fixes for the 3.1.0 errata. -- Add missing CSROT, DROTM, DROTMG, DSDOT, SDSDOT, SROTM, SROTMG - and ZDROT from blas distribution. [#228824] -* Thu Dec 14 2006 rguenther@suse.de -- Restore missing so symlinks. -* Tue Nov 14 2006 rguenther@suse.de -- Update to version 3.1.0. -- Rename blasman to blas-man. -- Rename lapack-manpages to lapack-man. -* Tue Oct 31 2006 rguenther@suse.de -- Trim BuildRequires. -- Build and package -fPIC static library variants. [#205310] -- Fix installing of the libblas.so symlink. -- Do not package the matrix testing setup library libtmglib. -- Do not package useless README file. -* Wed Jan 25 2006 mls@suse.de -- converted neededforbuild to BuildRequires -* Sat Jan 14 2006 kukuk@suse.de -- Add gmp-devel to nfb -* Fri Apr 22 2005 meissner@suse.de -- fixed all other instances of -fno-f2c, and g77 -> gfortran use. -* Thu Apr 21 2005 meissner@suse.de -- g77 -> gfortran, -fno-f2c is no more. -* Sat Jan 29 2005 nashif@suse.de -- Updated manpages (#48784) -* Thu Jan 20 2005 ro@suse.de -- remove BuildPrereq, BuildRequires is generated -* Thu Mar 18 2004 nashif@suse.de -- Fixed permission for manpages (#36340) -* Sat Jan 10 2004 adrian@suse.de -- add %%run_ldconfig -* Mon Feb 03 2003 meissner@suse.de -- Use $RPM_OPT_FLAGS, so it builds on ppc64. -* Mon Aug 26 2002 nashif@suse.de -- Fixed manpage conflict -- correct library version -* Mon Jul 01 2002 ro@suse.de -- use -fPIC for all shared objects -- link liblapack with shared libblas (same reason) -* Thu May 02 2002 sf@suse.de -- fixed %%{_lib}-problems for x86_64 -* Mon Sep 17 2001 nashif@suse.de -- Fixed bug #9925, adding blas to required packages. -* Tue May 08 2001 nashif@suse.de -- Fixed bug #6803 -* Thu Feb 08 2001 sf@suse.de -- compile with '-01' for IA64 due to 'internal compiler error' in g77 -* Mon Nov 06 2000 nashif@suse.de -- Fixed bug of missing objects (#4028) -* Sat Apr 22 2000 nashif@suse.de -- Applied new patches -- Modified group, url and files in spec -* Mon Feb 21 2000 nashif@suse.de -- Applied new patches -* Wed Jan 19 2000 nashif@suse.de -- Applied new patched -- Moved manpages to /usr/share/man -* Thu Dec 23 1999 nashif@suse.de -- Update to latest version -- Package split lapack + blas -* Thu Oct 07 1999 nashif@suse.de -- Package split: man pages + libraries -* Wed Sep 22 1999 nashif@suse.de -- New package: LAPACK - Linear Algebra Package (LAPACK)