summaryrefslogtreecommitdiffstats
path: root/dist/create-rpm
diff options
context:
space:
mode:
authorHarel Ben-Attia <harelba@gmail.com>2021-10-22 01:48:53 +0300
committerGitHub <noreply@github.com>2021-10-22 01:48:53 +0300
commitcad588265ccd81b8ae60d2bd4e4333bd50545462 (patch)
tree8ca835821d63599ad99fbb7b86f97e2f4007f91e /dist/create-rpm
parent373841af1260d773297df98162db6184f085f8f0 (diff)
q version 3.1.0-beta - automatic immutable caching and direct queries on sqlite databases (#280) + New Packaging Workflowv3.1.0-beta
Diffstat (limited to 'dist/create-rpm')
-rwxr-xr-xdist/create-rpm63
1 files changed, 0 insertions, 63 deletions
diff --git a/dist/create-rpm b/dist/create-rpm
deleted file mode 100755
index 697f112..0000000
--- a/dist/create-rpm
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/bash -x
-
-#
-# Commit tag and Version number should be provided as input in the command line
-#
-#
-
-set -o pipefail
-
-if [ $# -ne 2 ];
-then
- echo 'create-rpm <version> <based_on_tag>'
- exit 1
-fi
-
-command -v ronn &>/dev/null || { echo >&2 "ronn needs to be installed."; exit 1; }
-command -v rpmbuild &>/dev/null || { echo >&2 "rpmbuild needs to be installed."; exit 1; }
-
-set -e
-
-base_folder=`readlink -m $(dirname $0)`
-
-pushd ${base_folder} >/dev/null
-
-rpm_build_area=${base_folder}/rpm_build_area
-rm -rf ${rpm_build_area:=/non-existent-dir}
-mkdir -p ${rpm_build_area}/{SOURCES,SPECS,BUILD,RPMS,SRPMS,BUILDROOT}
-
-echo RPM build area is in ${rpm_build_area}
-
-VERSION=$1
-BASED_ON_TAG=$2
-
-REAL_PACKAGE_NAME=q
-RPM_PACKAGE_NAME=q-text-as-data
-
-FULL_NAME_FOLDER=${RPM_PACKAGE_NAME}-${VERSION}
-
-if [ ! -e ${RPM_PACKAGE_NAME}.spec.template ];
-then
- echo "spec template does not exist. can't continue"
- exit 1
-fi
-
-curl -f -o ${rpm_build_area}/SOURCES/q.tar.gz -L -R "https://github.com/harelba/q/tarball/$BASED_ON_TAG"
-mkdir -p ${rpm_build_area}/SOURCES
-pushd ${rpm_build_area}/SOURCES >/dev/null
-tar xvzf ./q.tar.gz --strip-components=1
-rm -vf ./q.tar.gz
-
-mkdir ${rpm_build_area}/packages
-cp /q/packages/q-x86_64-Linux ${rpm_build_area}/packages/q-x86_64-Linux
-
-# Expecting the binaries to exist in /packages/
-
-popd >/dev/null
-find ${rpm_build_area}/ -ls
-
-cat ${RPM_PACKAGE_NAME}.spec.template | sed "s/VERSION_PLACEHOLDER/$VERSION/g" > ${rpm_build_area}/SPECS/${RPM_PACKAGE_NAME}.spec
-
-rpmbuild -v --define "_topdir ${rpm_build_area}" -ba ${rpm_build_area}/SPECS/${RPM_PACKAGE_NAME}.spec
-
-popd >/dev/null