File debian.rules of Package root

#!/usr/bin/make -f

export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=-all,+fortify,+stackprotector,+stackprotectorstrong,+stackclash,+relro,+bindnow optimize=-all reproducible=-all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

name = $(shell dpkg-parsechangelog | sed -n -e 's/^Source: //p')
version = $(shell dpkg-parsechangelog | sed -n -e "s/^Version:\ \+\(.*\)[-+\ ].*/\1/p")

buildroot = /usr/src/packages/BUILD/debian/$(name)

_sourcedir = /usr/src/packages/SOURCES
_bindir = /usr/bin
_docdir = /usr/share/doc
_datadir = /usr/share

os_version = $(shell grep VERSION_ID /etc/os-release | sed "s/.*\"\(.*\)\".*/\1/")

#ifeq ($(strip $(os_version)),21.04)
#   extradepend = 'python-is-python3'
#else ifeq ($(strip $(os_version)),21.10)
#   extradepend = 'python-is-python3'
#else
#   extradepend = 'python-is-python3'
#endif

inst_dir = /opt/$(name)

# Removed packages for dod
# libgraphviz-dev, libmpich-dev, libpcre2-dev, liburing-dev, libxxhash-dev, nlohmann-json3-dev

%:
	dh $@ -B$(name)_build -Scmake+ninja --parallel

override_dh_auto_clean:
	dh_auto_clean
	find . -name "*~" -exec rm -rf {} \;
	find . -size 0    -exec rm -rf {} \;

override_dh_auto_configure:
	dh_auto_configure -- \
	$(shell cat $(_sourcedir)/root_build_options) \
	-Dgviz=OFF -Dminuit2_mpi=OFF -Dmpi=OFF -Dbuiltin_pcre=ON -During=OFF -Dbuiltin_xxhash=ON -Dbuiltin_nlohmannjson=ON

override_dh_auto_test:

#override_dh_auto_install:
#	dh_auto_install -a --destdir=debian/$(name)
#	install -d -m 0755 $(buildroot)/usr/local/share/$(name)/
#	echo "source $(inst_dir)/bin/thisroot.sh" > $(buildroot)/usr/local/share/$(name)/$(name).sh

#override_dh_usrlocal:

override_dh_dwz:

#override_dh_shlibdeps:
#	dh_shlibdeps -l$(inst_dir)/lib/$(DEB_HOST_MULTIARCH)
openSUSE Build Service is sponsored by