From 61caff7bab4f3a809b1d0e0f8c327b177e62a2df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Gro=C3=9F?= Date: Sat, 8 Jun 2024 11:56:28 +0200 Subject: [PATCH] Fix newer versions of rpmbuild not finding the LICENSE file. --- pkg-scripts/overte-server.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg-scripts/overte-server.spec b/pkg-scripts/overte-server.spec index 2857526295..6d89d547a9 100644 --- a/pkg-scripts/overte-server.spec +++ b/pkg-scripts/overte-server.spec @@ -1,5 +1,5 @@ # Copyright 2020-2021 Vircadia contributors. -# Copyright 2022 Overte e.V. +# Copyright 2022-2024 Overte e.V. # SPDX-License-Identifier: Apache-2.0 #OVERTE=~/Overte rpmbuild --target x86_64 -bb overte-server.spec @@ -75,11 +75,12 @@ chrpath -d $RPM_BUILD_ROOT/opt/overte/plugins/*.so chrpath -d $RPM_BUILD_ROOT/opt/overte/plugins/*/*.so strip --strip-all $RPM_BUILD_ROOT/opt/overte/plugins/*.so strip --strip-all $RPM_BUILD_ROOT/opt/overte/plugins/*/*.so +cp $OVERTE/LICENSE $RPM_BUILD_ROOT/usr/share/licenses/overte-server/LICENSE find $RPM_BUILD_ROOT/opt/overte/resources -name ".gitignore" -delete %files -%license $OVERTE/LICENSE +%license /usr/share/licenses/overte-server/LICENSE /opt/overte /usr/lib/systemd/system