Name: libspooles Version: 2.2 Release: 2%{?dist} Summary: Sparse matrix library # SPOOLES: Public Domain # SPOOLES: iohb: BSD style License: BSD and Public Domain URL: http://www.netlib.org/linalg/spooles/spooles.2.2.html Group: Applications/Engineering Source0: http://netlib.bell-labs.com/netlib/linalg/spooles/spooles.2.2.tgz Patch0: patch-spooles-shared Patch1: patch-spooles-I2Ohash-from-debian BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description SPOOLES is a library for solving sparse real and complex linear systems of equations, written in the C language using object oriented design. %prep %setup -c -q %patch0 -p1 %patch1 -p1 %package devel Summary: Header files for the SPOOLES library Group: Applications/Engineering %description devel %{name}-devel provides the header file for the SPOOLES library. %build export CFLAGS="$RPM_OPT_FLAGS" make -f makeRPM all %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT install -D -m 0755 libspooles.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libspooles.so.%{version} ln -s libspooles.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libspooles.so # header files: use same convention as debian spooles package: # all headers under /usr/include/spooles for file in $(find . -name \*.h -print); do install -D -m 0644 $file $RPM_BUILD_ROOT/%{_includedir}/spooles/$file done %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc spooles.2.2.html %{_libdir}/libspooles.so.2.2 %files devel %defattr(-,root,root,-) %{_includedir}/spooles %{_libdir}/libspooles.so %changelog * Sun Feb 21 2010 Manfred Spraul - 2.2-2 - %%post and %%postun added * Sat Feb 20 2010 Manfred Spraul - 2.2-1 - renamed to libspooles - serial and parallel functions included - MPI functions not included