superlu/get-tarball.sh
Ana Guerrero a6b0c99a2a Accepting request 846302 from home:anag:branches:science
- New version 5.2.2 (boo#1178112)
  - bugfixes, documentation and examples update.
- Update URL and Source0 and Source1, use get_tarball.sh to remove
  non distributable files.
- Install superlu_ug.pdf provided by the tarball.
- Remove patch, merged upstream
  * superlu-4.3-include.patch
  * superlu-4.3-dont-opt-away.diff
  * superlu-5.2-make.patch
- Refresh patch:
  * superlu-examples_Makefile_remove_itersol.patch
  * superlu-make.linux.patch

OBS-URL: https://build.opensuse.org/request/show/846302
OBS-URL: https://build.opensuse.org/package/show/science/superlu?expand=0&rev=26
2020-11-05 16:39:58 +00:00

30 lines
550 B
Bash

#!/bin/bash
set -e
VERSION=5.2.2
FILES="mc64ad.c sgsisx.c sldperm.c dgsisx.c dldperm.c cgsisx.c cldperm.c zgsisx.c zldperm.c"
URL="https://github.com/xiaoyeli/superlu/archive/v$VERSION/superlu-$VERSION.tar.gz"
TAR="superlu-$VERSION.tar.gz"
WORKDIR="$(mktemp -d superlu.XXXX)"
TODIR="$(pwd)"
cd "$WORKDIR"
wget $URL
tar xfz superlu-$VERSION.tar.gz
for file in $FILES; do
rm superlu-$VERSION/SRC/$file
done
if [ -e "$TODIR/$TAR" ]; then
echo "$TAR already exists."
else
tar cfz "$TODIR/$TAR" superlu-$VERSION
fi
cd "$TODIR"
rm -r "$WORKDIR"