SPECS: sundials.spec - rel 1 - fixed problems with ancient libtool - DESTDI...
baggins
baggins at pld-linux.org
Mon Mar 2 23:04:42 CET 2009
Author: baggins Date: Mon Mar 2 22:04:42 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- rel 1
- fixed problems with ancient libtool
- DESTDIR support
- install and files done
---- Files affected:
SPECS:
sundials.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/sundials.spec
diff -u SPECS/sundials.spec:1.1 SPECS/sundials.spec:1.2
--- SPECS/sundials.spec:1.1 Thu Feb 26 17:35:18 2009
+++ SPECS/sundials.spec Mon Mar 2 23:04:36 2009
@@ -2,17 +2,15 @@
Summary: SUite of Nonlinear and DIfferential/ALgebraic equation Solvers
Name: sundials
Version: 2.3.0
-Release: 0.1
+Release: 1
License: BSD
Group: Applications/Math
Source0: https://computation.llnl.gov/casc/sundials/download/code/%{name}-%{version}.tar.gz
# Source0-md5: c236f2a7e0e6a03b8fab3d189471b933
-#Patch0: %{name}-DESTDIR.patch
+Patch0: %{name}-DESTDIR.patch
URL: https://computation.llnl.gov/casc/sundials/
BuildRequires: autoconf
-BuildRequires: automake
-#BuildRequires: intltool
-#BuildRequires: libtool
+BuildRequires: libtool
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -29,30 +27,28 @@
%prep
%setup -q
+%patch0 -p1
%build
-# if ac/am/* rebuilding is necessary, do it in this order and add
-# appropriate BuildRequires
-#%%{__intltoolize}
-#%%{__gettextize}
-#%%{__libtoolize}
-#%%{__aclocal}
-#%%{__autoconf}
-#%%{__autoheader}
-#%%{__automake}
-# if not running libtool or automake, but config.sub is too old:
-#cp -f /usr/share/automake/config.sub .
-%configure
+rm -f libtool ltmain.sh
+cp -f /usr/share/libtool/config/ltmain.sh config
+%{__aclocal}
+%{__autoconf}
+%configure \
+ F77="gfortran" \
+ --enable-shared \
+ --disable-mpi \
+ --enable-examples
+
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-# create directories if necessary
-#install -d $RPM_BUILD_ROOT
-#install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+ DESTDIR=$RPM_BUILD_ROOT \
+ EXS_INSTDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -62,6 +58,15 @@
%files
%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/sundials-config
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %ghost %{_libdir}/lib*.so.0
+%attr(755,root,root) %ghost %{_libdir}/lib*.so.1
+%{_libdir}/lib*.a
+%{_libdir}/lib*.la
+%{_includedir}/*
+%{_examplesdir}/%{name}-%{version}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -69,6 +74,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2009/03/02 22:04:36 baggins
+- rel 1
+- fixed problems with ancient libtool
+- DESTDIR support
+- install and files done
+
Revision 1.1 2009/02/26 16:35:18 baggins
- initial revision
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/sundials.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list