SHA256
1
0
forked from pool/gap

Use upstream's stripped archive instead of doing it ourselves

OBS-URL: https://build.opensuse.org/package/show/science/gap?expand=0&rev=9
This commit is contained in:
Jan Engelhardt 2013-05-24 12:50:15 +00:00 committed by Git OBS Bridge
parent ecd2fee3c4
commit 100cdf5875
4 changed files with 12 additions and 40 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0a3848a2f910a3d5b4b294a98ec4ba00b7e67ca2a904424d2acc12d385882801
size 36431408

View File

@ -24,13 +24,11 @@ License: GPL-2.0+
Group: Productivity/Scientific/Math Group: Productivity/Scientific/Math
Url: http://gap-system.org/ Url: http://gap-system.org/
#DL-URL: ftp://ftp.gap-system.org/pub/gap/gap4/tar.gz/gap4r6p4_2013_05_04-16_36.tar.gz Source: ftp://ftp.gap-system.org/pub/gap/gap4core/gap4r6p4_nopackages.zip
Source: gap-4.6.4.tar.xz
Source2: %name-rpmlintrc Source2: %name-rpmlintrc
Source3: sanitize_source.sh
Patch1: gap-final-dir.diff Patch1: gap-final-dir.diff
Patch2: gap-multiarch.diff Patch2: gap-multiarch.diff
Patch5: gap-ttyname-null.diff Patch3: gap-ttyname-null.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} %if 0%{?suse_version}
BuildRequires: fdupes BuildRequires: fdupes
@ -39,7 +37,7 @@ BuildRequires: gmp-devel
BuildRequires: libtool BuildRequires: libtool
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: readline-devel BuildRequires: readline-devel
BuildRequires: xz BuildRequires: unzip
%if 0%{?suse_version} %if 0%{?suse_version}
BuildRequires: fastjar BuildRequires: fastjar
%endif %endif
@ -303,9 +301,13 @@ This subpackage contains the database of transitive groups.
%prep %prep
%setup -qn gap4r6 %setup -qn gap4r6
%patch -P 1 -P 2 -P 5 -p1 %patch -P 1 -P 2 -P 3 -p1
%build %build
rm -f bin/*.bat
pushd extern/
find . -type f ! -name "Makefile*" -print -delete
popd
pushd cnf/ pushd cnf/
make make
popd popd
@ -353,7 +355,7 @@ ln -s "%_docdir/%name" "doc";
# Move data into FHS # Move data into FHS
rm -f tst/remake.sh doc/test/re; rm -f tst/remake.sh doc/test/re;
mkdir -p "$b/%gapdatadir/pkg"; mkdir -p "$b/%gapdatadir/pkg" "$b/%gapdir/pkg";
dirs="grp lib prim small trans tst"; dirs="grp lib prim small trans tst";
mv $dirs "$b/%gapdatadir"; mv $dirs "$b/%gapdatadir";
for i in $dirs; do for i in $dirs; do

3
gap4r6p4_nopackages.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f89d10709b220e537f8937736627e32948ed98d17a91e482e1c7e6d714566c59
size 42178117

View File

@ -1,30 +0,0 @@
#!/bin/sh -ex
set -ex;
dir="gap4r6";
dl=$(pcregrep -o "(?<=^#DL-URL:).*" gap.spec | head -n1 | perl -pe 's{^\s+}{}');
dlbase="${dl##*/}";
if [ ! -e "$dlbase" ]; then
wget -c "$dl";
fi;
rm -Rf "$dir";
tar -xf "$dlbase";
pushd "$dir/pkg/";
rm -Rf *;
popd;
pushd "$dir/bin/";
rm -f *.bat;
popd;
pushd "$dir/extern/";
find . -type f ! -name "Makefile*" -print -delete;
popd;
if false; then
# no longer necessary?
find "$dir" -type f "(" \
-name "*~" -o -name "*.bak" -name .arch-ids \
")" -print -delete;
fi;
qtar gap-4.6.4.tar "$dir";
xz -8fv gap-4.6.4.tar;