Updates for Fedora36

This commit is contained in:
2022-06-24 19:49:18 +02:00
parent 1873aa7db2
commit b71152f498
7 changed files with 112 additions and 15 deletions

View File

@@ -13,6 +13,7 @@ Source0: %{name}-%{version}.tar.gz
Source1: %{name}.toml
Source2: navidrome.sysuser
Source3: navidrome.service
Patch0: nagidrom-wader-tag.patch
BuildRequires: nodejs >= 16
BuildRequires: npm
@@ -45,8 +46,10 @@ Features
%prep
%setup -q -n %name-%{version}
%patch0 -p0
%build
export NODE_OPTIONS='--openssl-legacy-provider'
make setup
make buildjs
export CGO_LDFLAGS="${LDFLAGS}"
@@ -54,7 +57,7 @@ export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build -ldflags="-X github.com/%{name}/%{name}/consts.gitSha=%{gitSha} -X github.com/%{name}/%{name}/consts.gitTag=v%{version}" -tags=netgo
go build -ldflags="-X github.com/%{name}/%{name}/consts.gitSha=%{gitSha} -X github.com/%{name}/%{name}/consts.gitTag=v%{version}" -tags=netgo -buildvcs=false
%install
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}