SHA256
1
0
forked from pool/gsl
OBS User unknown
2007-11-08 23:58:44 +00:00
committed by Git OBS Bridge
parent 5853ad6e91
commit 83fb5165a3
3 changed files with 107 additions and 8 deletions

View File

@@ -13,16 +13,21 @@
Name: gsl
BuildRequires: blas latex2html
Version: 1.9
Release: 6
License: GNU General Public License (GPL)
Release: 77
License: GPL v2 or later
# NOTE: The package is used (within the distro) by snd, yacas, perl-PDL,
# Labplot and kst. The latter two are KDE4 apps which are GPLv2only due
# to libqt4 being v2only. Thus we can not move to gsl-1.10 for now which
# is GPL v3 or later.
Group: Development/Libraries/C and C++
#Provides:
Autoreqprov: on
AutoReqProv: on
Summary: GNU Scientific Library
Source: ftp://ftp.gnu.org/pub/gnu/gsl/gsl-%{version}.tar.bz2
Patch: gsl-1.6-initvars.diff
Patch3: gsl-1.6-deps.dif
URL: http://www.gnu.org/software/gsl/
Patch5: gsl-wrap.diff
Url: http://www.gnu.org/software/gsl/
Prefix: /usr
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -62,7 +67,8 @@ Authors:
%package devel
Summary: GNU Scientific Library - development files
Group: Development/Libraries/C and C++
Requires: gsl glibc-devel
Requires: gsl = %{version} glibc-devel
PreReq: %{install_info_prereq}
%description devel
This package contains the headers, static libraries and some
@@ -104,9 +110,11 @@ Authors:
%setup
%patch -p1
%patch3 -p0
%patch5 -p1
autoreconf -fi
%build
RPM_OPT_FLAGS=`echo "$RPM_OPT_FLAGS" | sed 's/-fstack-protector//'`
%ifarch i386 i486 i586 i686 x86_64
# We could add -msse2 -mpfmath=sse here ...
CFLAGS="$RPM_OPT_FLAGS -O3 -finline-limit=720 --param max-inline-insns-auto=160 -funroll-loops -fno-strict-aliasing -funit-at-a-time -ftree-vectorize -momit-leaf-frame-pointer" \
@@ -118,7 +126,7 @@ CFLAGS="$RPM_OPT_FLAGS -O3 -finline-limit=720 --param max-inline-insns-auto=160
--prefix=/usr --mandir=%{_mandir} --infodir=%{_infodir} --libdir=%{_libdir}
%endif
make %{?jobs:-j%jobs}
make check
#make check
# latex2html (dvips) is braindead in its rejection of '.' in a dir name
cd ..
mv %{name}-%{version} %{name}
@@ -127,6 +135,9 @@ texi2html -l2h -menu -split_chapter -glossary gsl-ref.texi
cd ../..
mv %{name} %{name}-%{version}
%check
make check
%install
make install DESTDIR=$RPM_BUILD_ROOT
@@ -141,7 +152,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
/usr/bin/gsl-randist
%doc %{_mandir}/man1/gsl-histogram.1.gz
%doc %{_mandir}/man1/gsl-randist.1.gz
%doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO
%files devel
%defattr(-,root,root)
@@ -157,11 +168,23 @@ make install DESTDIR=$RPM_BUILD_ROOT
%doc %{_mandir}/man1/gsl-config.1.gz
%doc %{_mandir}/man3/gsl.3.gz
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/gsl-ref.info.gz
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gsl-ref.info.gz
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/gsl-%{version}
%changelog
* Wed Nov 07 2007 - garloff@suse.de
- disable -fstack-protector (we don't want it for HPC code)
- avoid wrapping assumption sort testcase (gcc-4.3 fix)
- move make check to %%check section
- require gsl = %%{version} from -devel package
- call install-info in -devel %%post/%%postun
- add note on license
* Mon Apr 16 2007 - dmueller@suse.de
- run autoreconf
- fix devel package requires