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.
This commit is contained in:
Jay W 2022-02-14 18:07:47 +00:00
parent 80353c1fc8
commit fdf4504838

View File

@ -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