From b78b4a2a523bda89e4a58e599117e6764b8622fe Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Wed, 14 Aug 2024 12:07:02 +0200 Subject: [PATCH] change the build options and update schema copy Signed-off-by: Toshaan Bharvani --- SPECS/icingadb.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPECS/icingadb.spec b/SPECS/icingadb.spec index 91daf02..ea625d5 100644 --- a/SPECS/icingadb.spec +++ b/SPECS/icingadb.spec @@ -35,7 +35,7 @@ git clone https://%{provider_prefix} . %build git checkout v%{version} sed 's/go 1.22$/go 1.22.0/' -i go.mod -go build -v -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version}"" -buildvcs=false -trimpath ./cmd/icingadb +go build -v -gcflags "-m" -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version}"" -buildvcs=false -trimpath ./cmd/icingadb %install @@ -46,7 +46,7 @@ install -m 0755 icingadb %{buildroot}%{_sbindir}/ install -m 0644 config.example.yml %{buildroot}%{configdir}/config.yml install -m 0644 %{S:1} %{buildroot}%{_unitdir}/ install -d -m 0755 %{buildroot}%{_datadir}/%{name} -(umask 0022 && cp -rv schema %{buildroot}%{_datadir}/%{name}/) +cp -rv schema/ %{buildroot}%{_datadir}/%{name}/ %pre