From 2230b1985fc0d9bb11e8c00f8ee7b749986ba093 Mon Sep 17 00:00:00 2001 From: hse-devops Date: Fri, 3 Sep 2021 11:45:40 -0500 Subject: [PATCH] Remove rpm/deb packaging --- Makefile | 176 ------------------------------------------------- debian/control | 8 --- hse-ycsb.spec | 90 ------------------------- 3 files changed, 274 deletions(-) delete mode 100644 Makefile delete mode 100644 debian/control delete mode 100644 hse-ycsb.spec diff --git a/Makefile b/Makefile deleted file mode 100644 index 774a1dda04..0000000000 --- a/Makefile +++ /dev/null @@ -1,176 +0,0 @@ -# -# SPDX-License-Identifier: Apache-2.0 -# -# Copyright (C) 2015-2020 Micron Technology, Inc. -# - -define HELP_TEXT - -Makefile Help ----------------------------------- - -Primary Targets: - - all -- clean, build RPMs - check-hse -- verify hse RPM is installed - cleansrcs -- clean out rpmbuild/SOURCES - dist -- build YCSB distribution tarball - help -- print this message - rpm -- build RPM - srcs -- prepare rpmbuild/SOURCES - - The easiest thing is to type "make" on the command line. - -Configuration Variables: - - These get set on the command line. - - NOTMP -- set to anything to place rpmbuild in homedir instead - of in /tmp/ - -Products: - hse-ycsb RPM in rpmbuild/RPMS/noarch. - hse-ycsb RPM in rpmbuild/SRPMS. - - RPMs currently use the following format for their release string: - - RELEASENUM.HSESHA.noarch -endef - -ifdef NOTMP - TOPDIR:="$(HOME)/rpmbuild" - DEB_TOPDIR:="$(HOME)/debbuild" -else - TOPDIR:="/tmp/$(shell id -u -n)/rpmbuild" - DEB_TOPDIR:="/tmp/$(shell id -u -n)/debbuild" -endif - -DISTRO_ID_LIKE := $(shell . /etc/os-release && echo $$ID_LIKE) -ifeq ($(DISTRO_ID_LIKE),debian) - PACKAGE_TARGET = deb -else - PACKAGE_TARGET = rpm -endif - -JENKINS_BUILDNO?=0 -REL_CANDIDATE?=FALSE - -# -# IMPORTANT NOTES FOR BUILD -# -# RHEL 7 needs to use SCL as follows - -# -# scl enable rh-maven33 devtoolset-7 "make rpm" -# -# Fedora 25 needs to use the toolchain from /shared as follows - -# -# LD_LIBRARY_PATH="/shared/toolchains/rh/devtoolset-7/root/usr/lib64:/shared/toolchains/rh/devtoolset-7/root/usr/lib:/shared/toolchains/rh/devtoolset-7/root/usr/lib64/dyninst:/shared/toolchains/rh/devtoolset-7/root/usr/lib/dyninst:/shared/toolchains/rh/devtoolset-7/root/usr/lib64:/shared/toolchains/rh/devtoolset-7/root/usr/lib" PATH="/shared/toolchains/rh/devtoolset-7/root/usr/bin:$PATH" make rpm -# - -RPMSRCDIR:=$(TOPDIR)/SOURCES -TOOLSDIR:=/shared/tools - -# -# variables for prebuilt jars/binaries -# -HSE_JAR?="/opt/hse/lib64/hsejni.jar" - -RPM_QUERY:=$(shell rpm -q hse >/dev/null; echo $$?) - -HSESHA:=.$(shell hse -Vv | grep '^sha' | awk '{print $$2}' | cut -c1-7) -ifeq ($(HSESHA),.) - HSESHA:=.nogit -endif -YCSBSHA:=.$(shell git rev-parse --short=7 HEAD) -ifeq ($(YCSBSHA),.) - YCSBSHA:=.nogit -endif -TSTAMP:=.$(shell date +"%Y%m%d.%H%M%S") - - -YCSB_VERSION_SUP=$(shell source hse/VERSION;echo $${YCSB_VERSION_SUP}) -HSE_BINDING_VERSION=$(shell source hse/VERSION;echo $${HSE_BINDING_VERSION}) -HSE_MIN_VERSION_SUP=$(shell source hse/VERSION;echo $${HSE_MIN_VERSION_SUP}) - -HSE_YCSB_VERSION:=$(YCSB_VERSION_SUP).$(HSE_BINDING_VERSION) - -ifeq ($(REL_CANDIDATE), FALSE) - RPM_RELEASE:=$(HSE_MIN_VERSION_SUP).${JENKINS_BUILDNO}$(HSESHA)$(YCSBSHA) - DEB_VERSION:=$(HSE_YCSB_VERSION)-$(HSE_MIN_VERSION_SUP).${JENKINS_BUILDNO}$(HSESHA)$(YCSBSHA) -else - RPM_RELEASE:=$(HSE_MIN_VERSION_SUP).${JENKINS_BUILDNO} - DEB_VERSION:=$(HSE_YCSB_VERSION)-$(HSE_MIN_VERSION_SUP).${JENKINS_BUILDNO} -endif - -# -# variables for debian -# -DEB_PKGNAME:=hse-ycsb_$(DEB_VERSION)_amd64 -DEB_PKGDIR:=$(DEB_TOPDIR)/$(DEB_PKGNAME) -DEB_ROOTDIR:=$(DEB_TOPDIR)/$(DEB_PKGNAME)/opt/hse-ycsb - -.PHONY: all check-hse cleansrcs dist help srcs rpm deb -all: package - -check-hse: - # - # User or Jenkins must install hse before executing this makefile. - # - @if [ ! -f $(HSE_JAR) ]; \ - then \ - echo "Missing hse package! Cannot build!"; \ - exit 1; \ - fi - -cleansrcs: - rm -rf $(RPMSRCDIR)/* - -cleanbuilds: - rm -rf $(TOPDIR)/{BUILD,RPMS,SRPMS} - -dist: check-hse - mvn versions:set-property -DnewVersion=$(HSE_BINDING_VERSION) -Dproperty=hse.version - mvn install:install-file -Dfile=$(HSE_JAR) -DgroupId=test.org.hse\ - -DartifactId=hse -Dversion=$(HSE_BINDING_VERSION) -Dpackaging=jar - mvn clean package - -help: - @echo - $(info $(HELP_TEXT)) - -rpm: dist srcs - cp hse-ycsb.spec $(RPMSRCDIR) - cp distribution/target/ycsb-0.17.0.tar.gz $(RPMSRCDIR)/ - QA_RPATHS=0x0002 rpmbuild -vv -ba \ - --define="tstamp $(TSTAMP)" \ - --define="_topdir $(TOPDIR)" \ - --define="pkgrelease $(RPM_RELEASE)" \ - --define="buildno $(JENKINS_BUILDNO)" \ - --define="hseycsbversion $(HSE_YCSB_VERSION)" \ - $(RPMSRCDIR)/hse-ycsb.spec - -deb: dist - rm -rf $(DEB_TOPDIR) - mkdir -p $(DEB_TOPDIR) - mkdir -p $(DEB_PKGDIR) - mkdir -p $(DEB_ROOTDIR) - cp distribution/target/ycsb-0.17.0.tar.gz $(DEB_TOPDIR) - cd $(DEB_TOPDIR) && tar xf ycsb-0.17.0.tar.gz - cp -a $(DEB_TOPDIR)/ycsb-0.17.0/bin $(DEB_ROOTDIR) - cp -a $(DEB_TOPDIR)/ycsb-0.17.0/hse-binding $(DEB_ROOTDIR) - cp -a $(DEB_TOPDIR)/ycsb-0.17.0/lib $(DEB_ROOTDIR) - cp -a $(DEB_TOPDIR)/ycsb-0.17.0/mongodb-binding $(DEB_ROOTDIR) - cp -a $(DEB_TOPDIR)/ycsb-0.17.0/rocksdb-binding $(DEB_ROOTDIR) - cp -a $(DEB_TOPDIR)/ycsb-0.17.0/workloads $(DEB_ROOTDIR) - cp -a $(DEB_TOPDIR)/ycsb-0.17.0/LICENSE.txt $(DEB_ROOTDIR) - cp -a $(DEB_TOPDIR)/ycsb-0.17.0/NOTICE.txt $(DEB_ROOTDIR) - mkdir $(DEB_PKGDIR)/DEBIAN - cp debian/control $(DEB_PKGDIR)/DEBIAN - sed -i 's/@VERSION@/$(DEB_VERSION)/' $(DEB_PKGDIR)/DEBIAN/control - cd $(DEB_TOPDIR) && dpkg-deb -b $(DEB_PKGNAME) - -package: $(PACKAGE_TARGET) - -srcs: cleansrcs - mkdir -p $(TOPDIR)/{BUILD,RPMS,SOURCES,SPECS,SRPMS} - diff --git a/debian/control b/debian/control deleted file mode 100644 index 48f99f0ad1..0000000000 --- a/debian/control +++ /dev/null @@ -1,8 +0,0 @@ -Package: hse-ycsb -Version: @VERSION@ -Section: database -Priority: optional -Architecture: amd64 -Maintainer: Micron Technology, Inc. -Description: YCSB with bindings for Heterogeneous-memory Storage Engine (HSE) -Depends: default-jre diff --git a/hse-ycsb.spec b/hse-ycsb.spec deleted file mode 100644 index d40de80c1b..0000000000 --- a/hse-ycsb.spec +++ /dev/null @@ -1,90 +0,0 @@ -# -# SPDX-License-Identifier: Apache-2.0 -# -# Copyright (C) 2015-2020 Micron Technology, Inc. -# - -Summary: Yahoo! Cloud Serving Benchmark -Name: hse-ycsb -Version: %{hseycsbversion} -Release: %{pkgrelease}%{?dist} -License: ASL 2.0 -Group: Unspecified -Vendor: Micron Technology, Inc. -Url: https://github.com/hse-project/hse-ycsb - -Requires: java-headless javapackages-tools python2 - -Source0: ycsb-0.17.0.tar.gz - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -BuildArch: x86_64 - -# Do NOT scan jar files for dependencies -AutoReq: no -AutoProv: no - -# Do NOT compress jar files -# http://www.makewhatis.com/2011/15/15/remove-unwanted-commpression-in-during-rpmbuild-for-jar-files/ -%define __os_install_post %{nil} - -%define __mypkg %{name}-%{version}-%{release} -%define __ycsb /opt/%{name} - -%if 0%{?fedora} >= 25 || 0%{?rhel} >= 8 -# don't try to generate debuginfo RPM -%global debug_package %{nil} - -# https://gnu.wildebeest.org/blog/mjw/2017/06/30/fedora-rpm-debuginfo-improvements-for-rawhidef27/ -%global _build_id_links none -%endif - -%description -YCSB with bindings for Heterogeneous-memory Storage Engine (HSE) - -%prep -%setup -c -T -%{__tar} xf %{SOURCE0} - -%build - -%install -mkdir -p %{buildroot}%{__ycsb} -mkdir -p %{buildroot}%{_bindir} -mkdir -p %{buildroot}%{_libdir} -mv -v ycsb-0.17.0/bin %{buildroot}%{__ycsb} -mv -v ycsb-0.17.0/lib %{buildroot}%{__ycsb} -mv -v ycsb-0.17.0/mongodb-binding %{buildroot}%{__ycsb} -mv -v ycsb-0.17.0/hse-binding %{buildroot}%{__ycsb} -mv -v ycsb-0.17.0/rocksdb-binding %{buildroot}%{__ycsb} -mv -v ycsb-0.17.0/workloads %{buildroot}%{__ycsb} -mv -v ycsb-0.17.0/LICENSE.txt %{buildroot}%{__ycsb} -mv -v ycsb-0.17.0/NOTICE.txt %{buildroot}%{__ycsb} - -%clean -%{__rm} -rf %{buildroot} - -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - -%files -%defattr(0644, root, root, 0755) -%{__ycsb}/bin/bindings.properties -%{__ycsb}/bin/ycsb.bat -%{__ycsb}/lib -%{__ycsb}/mongodb-binding -%{__ycsb}/hse-binding -%{__ycsb}/rocksdb-binding -%{__ycsb}/workloads -%{__ycsb}/LICENSE.txt -%{__ycsb}/NOTICE.txt -%defattr(0755, root, root, 0755) -%{__ycsb}/bin/ycsb -%{__ycsb}/bin/ycsb.sh - -%changelog -* Wed Apr 08 2020 Jacob M Jacob - 0.17.0.1 -- Spec file updates