Browse Source

change the build options and update schema copy

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 3 months ago
parent
commit
b78b4a2a52
  1. 4
      SPECS/icingadb.spec

4
SPECS/icingadb.spec

@ -35,7 +35,7 @@ git clone https://%{provider_prefix} .
%build %build
git checkout v%{version} git checkout v%{version}
sed 's/go 1.22$/go 1.22.0/' -i go.mod 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 %install
@ -46,7 +46,7 @@ install -m 0755 icingadb %{buildroot}%{_sbindir}/
install -m 0644 config.example.yml %{buildroot}%{configdir}/config.yml install -m 0644 config.example.yml %{buildroot}%{configdir}/config.yml
install -m 0644 %{S:1} %{buildroot}%{_unitdir}/ install -m 0644 %{S:1} %{buildroot}%{_unitdir}/
install -d -m 0755 %{buildroot}%{_datadir}/%{name} install -d -m 0755 %{buildroot}%{_datadir}/%{name}
(umask 0022 && cp -rv schema %{buildroot}%{_datadir}/%{name}/) cp -rv schema/ %{buildroot}%{_datadir}/%{name}/




%pre %pre

Loading…
Cancel
Save