Compare commits

..

1 commit

Author SHA1 Message Date
Troy Dawson
c5f8563f20 epel8-playground decommissioned : https://pagure.io/epel/issue/136 2022-01-31 10:01:08 -08:00
5 changed files with 1 additions and 1213 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
/gnuradio-*.tar.gz

View file

@ -1,48 +0,0 @@
#!/usr/bin/bash
#
# No patents, no problems
#
# Indicate the problems
PROBLEMS=(
'gr-dtv'
'gr-atsc'
)
# Indicate the source (including workaround for rhbz#1926687)
URL=$(spectool -S -l ./gnuradio.spec | sed -nE '/^\s*Source/ s/Source0:\s+//g p')
# Meta variables
SOURCE=$(basename $URL)
COMPRESSION=${SOURCE##*.}
TAR=${SOURCE%.*}
# check if $SOURCE exists
if [ ! -f $SOURCE ]; then
# It does not, so we download it
echo "DOWNLOADING \"$SOURCE\" FROM \"$URL\""
curl -L -O "$URL"
fi
echo "UNCOMPRESS \"$SOURCE\" TO \"$TAR\""
if [ "gz" = "$COMPRESSION" ]; then
COMPRESSION="gzip"
fi
$COMPRESSION -d $SOURCE
# Getting the base DIR inside the tar
TAR_BASE=$(tar tf $TAR | head -n1 | sed 's/\/$//')
for PROBLEM in ${PROBLEMS[@]};
do
echo "REMOVING \"$PROBLEM\" FROM \"$TAR\""
tar -vf $TAR --delete "${TAR_BASE}/${PROBLEM}"
tar -vf $TAR --strip=1 -x "${TAR_BASE}/CMakeLists.txt"
tar -vf $TAR --delete "${TAR_BASE}/CMakeLists.txt"
sed -i "/^add_subdirectory(${PROBLEM})$/ d" CMakeLists.txt
tar -vf $TAR --append CMakeLists.txt --transform="s|CMakeLists.txt|${TAR_BASE}/CMakeLists.txt|"
done
rm -f CMakeLists.txt
echo "RECOMPRESS \"$TAR\" TO \"$SOURCE\""
$COMPRESSION $TAR

1
dead.package Normal file
View file

@ -0,0 +1 @@
epel8-playground decommissioned : https://pagure.io/epel/issue/136

File diff suppressed because it is too large Load diff

View file

@ -1 +0,0 @@
SHA512 (gnuradio-3.10.12.0.tar.gz) = c69605f5df4a2a812ff88bcb26f70ae48dca996fdac0d3c4ce855a4706e751a06bcb1680ec05f6ce07f4206bc06885539f3f74f381b2302aa9e5ae068a7dc804