From fdf4504838de6419d33de40856b2df8dcac97dc8 Mon Sep 17 00:00:00 2001 From: Jay W Date: Mon, 14 Feb 2022 18:07:47 +0000 Subject: [PATCH] Update ding-libs.spec to allow flatpak builds. Flatpaks are using different prefix so the `rm -f` were making it fail to build. Flatpak doc location is at `/app/share/doc/ding-libs/...` This change makes flatpak builds happy. --- ding-libs.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ding-libs.spec b/ding-libs.spec index 1cfe79e..a76d444 100644 --- a/ding-libs.spec +++ b/ding-libs.spec @@ -319,9 +319,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la # We will copy them directly from the source directory # for packaging rm -f \ - $RPM_BUILD_ROOT/usr/share/doc/ding-libs/README.* \ - $RPM_BUILD_ROOT/usr/share/doc/ding-libs/examples/dhash_example.c \ - $RPM_BUILD_ROOT/usr/share/doc/ding-libs/examples/dhash_test.c + $RPM_BUILD_ROOT%{_datadir}/doc/ding-libs/README.* \ + $RPM_BUILD_ROOT%{_datadir}/doc/ding-libs/examples/dhash_example.c \ + $RPM_BUILD_ROOT%{_datadir}/doc/ding-libs/examples/dhash_test.c # Remove document install script. RPM is handling this rm -f */doc/html/installdox