- Rebuild for atlas 3.10
- Handle UnversionedDocDirs change
This commit is contained in:
parent
ed20befe7a
commit
aeb4d02405
24
SuperLU.spec
24
SuperLU.spec
@ -1,6 +1,6 @@
|
|||||||
Name: SuperLU
|
Name: SuperLU
|
||||||
Version: 4.3
|
Version: 4.3
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: Subroutines to solve sparse linear systems
|
Summary: Subroutines to solve sparse linear systems
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -35,43 +35,51 @@ and libraries for use with CUnit package.
|
|||||||
%setup -q -n %{name}_%{version}
|
%setup -q -n %{name}_%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
chmod a-x SRC/qselect.c
|
chmod a-x SRC/qselect.c EXAMPLE/cg20.cua
|
||||||
|
# Remove the shippped executables from EXAMPLE
|
||||||
|
find EXAMPLE -type f | while read file
|
||||||
|
do
|
||||||
|
[ "$(file $file | awk '{print $2}')" = ELF ] && rm $file || :
|
||||||
|
done
|
||||||
cp -p MAKE_INC/make.linux make.inc
|
cp -p MAKE_INC/make.linux make.inc
|
||||||
sed -i "s|-O3|$RPM_OPT_FLAGS|" make.inc
|
sed -i "s|-O3|$RPM_OPT_FLAGS|" make.inc
|
||||||
sed -i "s|\$(SUPERLULIB) ||" make.inc
|
sed -i "s|\$(SUPERLULIB) ||" make.inc
|
||||||
sed -i "s|\$(HOME)/Codes/%{name}_%{version}|%{_builddir}/%{name}_%{version}|" make.inc
|
sed -i "s|\$(HOME)/Codes/%{name}_%{version}|%{_builddir}/%{name}_%{version}|" make.inc
|
||||||
|
%if 0%{?fedora} >= 21
|
||||||
|
sed -i "s|-L/usr/lib -lblas|-L%{_libdir}/atlas -lsatlas|" make.inc
|
||||||
|
%else
|
||||||
sed -i "s|-L/usr/lib -lblas|-L%{_libdir}/atlas -lf77blas|" make.inc
|
sed -i "s|-L/usr/lib -lblas|-L%{_libdir}/atlas -lf77blas|" make.inc
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} superlulib
|
make %{?_smp_mflags} superlulib
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
mkdir -p %{buildroot}%{_libdir}
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
mkdir -p %{buildroot}%{_docdir}/%{name}-devel-%{version}/EXAMPLE
|
|
||||||
mkdir -p %{buildroot}%{_includedir}/%{name}
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
||||||
install -p SRC/libsuperlu.so.%{version} %{buildroot}%{_libdir}
|
install -p SRC/libsuperlu.so.%{version} %{buildroot}%{_libdir}
|
||||||
install -p SRC/*.h %{buildroot}%{_includedir}/%{name}
|
install -p SRC/*.h %{buildroot}%{_includedir}/%{name}
|
||||||
chmod -x %{buildroot}%{_includedir}/%{name}/*.h
|
chmod -x %{buildroot}%{_includedir}/%{name}/*.h
|
||||||
cp -Pp SRC/libsuperlu.so %{buildroot}%{_libdir}
|
cp -Pp SRC/libsuperlu.so %{buildroot}%{_libdir}
|
||||||
cp -p EXAMPLE/*.c EXAMPLE/*.cua EXAMPLE/Makefile EXAMPLE/README %{buildroot}%{_docdir}/%{name}-devel-%{version}/EXAMPLE
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README
|
%doc README
|
||||||
%{_libdir}/libsuperlu.so.*
|
%{_libdir}/libsuperlu.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%doc DOC EXAMPLE FORTRAN
|
||||||
%doc DOC FORTRAN
|
|
||||||
%{_includedir}/%{name}/
|
%{_includedir}/%{name}/
|
||||||
%{_libdir}/libsuperlu.so
|
%{_libdir}/libsuperlu.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 4 2013 Orion Poplawski <orion@cora.nwra.com> - 4.3-7
|
||||||
|
- Rebuild for atlas 3.10
|
||||||
|
- Handle UnversionedDocDirs change
|
||||||
|
|
||||||
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-6
|
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user