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:
parent
ecd2fee3c4
commit
100cdf5875
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0a3848a2f910a3d5b4b294a98ec4ba00b7e67ca2a904424d2acc12d385882801
|
||||
size 36431408
|
16
gap.spec
16
gap.spec
@ -24,13 +24,11 @@ License: GPL-2.0+
|
||||
Group: Productivity/Scientific/Math
|
||||
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: gap-4.6.4.tar.xz
|
||||
Source: ftp://ftp.gap-system.org/pub/gap/gap4core/gap4r6p4_nopackages.zip
|
||||
Source2: %name-rpmlintrc
|
||||
Source3: sanitize_source.sh
|
||||
Patch1: gap-final-dir.diff
|
||||
Patch2: gap-multiarch.diff
|
||||
Patch5: gap-ttyname-null.diff
|
||||
Patch3: gap-ttyname-null.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: fdupes
|
||||
@ -39,7 +37,7 @@ BuildRequires: gmp-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: xz
|
||||
BuildRequires: unzip
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: fastjar
|
||||
%endif
|
||||
@ -303,9 +301,13 @@ This subpackage contains the database of transitive groups.
|
||||
|
||||
%prep
|
||||
%setup -qn gap4r6
|
||||
%patch -P 1 -P 2 -P 5 -p1
|
||||
%patch -P 1 -P 2 -P 3 -p1
|
||||
|
||||
%build
|
||||
rm -f bin/*.bat
|
||||
pushd extern/
|
||||
find . -type f ! -name "Makefile*" -print -delete
|
||||
popd
|
||||
pushd cnf/
|
||||
make
|
||||
popd
|
||||
@ -353,7 +355,7 @@ ln -s "%_docdir/%name" "doc";
|
||||
|
||||
# Move data into FHS
|
||||
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";
|
||||
mv $dirs "$b/%gapdatadir";
|
||||
for i in $dirs; do
|
||||
|
3
gap4r6p4_nopackages.zip
Normal file
3
gap4r6p4_nopackages.zip
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f89d10709b220e537f8937736627e32948ed98d17a91e482e1c7e6d714566c59
|
||||
size 42178117
|
@ -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;
|
Loading…
Reference in New Issue
Block a user