|
|
|
@ -35,7 +35,7 @@ git clone https://%{provider_prefix} .
@@ -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}/
@@ -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 |
|
|
|
|