contrib/ fix build on opensuse

It was not enough to verify that the rpm builds on centos.

Set --docdir to install examples to /usr/share/doc/packages instead of
/usr/share/doc in opensuse. Fix for:
  File not found: .../usr/share/doc/packages/osmo-remsim/examples/bankd_pcsc_slots.csv

Add missing %dir statements to fix:
  osmo-remsim-bankd- directories not owned by a package:
   - /etc/osmocom
   - /usr/share/doc/packages/osmo-remsim
   - /usr/share/doc/packages/osmo-remsim/examples

Fixes: 905bc4d2 ("doc/examples: install bankd_pcsc_slots.csv")
Change-Id: Ie5bbb25f8aa87edcea8b952d3c29aab29ac31b19
This commit is contained in:
Oliver Smith 2021-06-23 12:26:18 +02:00
parent 588ec1a619
commit 694e3b5782
1 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,7 @@ echo "%{version}" >.tarball-version
autoreconf -fi
%configure \
--disable-static \
--docdir=%{_docdir}/osmo-remsim \
make V=1 %{?_smp_mflags}
@ -194,7 +195,10 @@ make %{?_smp_mflags} check || find . -name testsuite.log -exec cat {} +
%config(noreplace) %{_sysconfdir}/default/osmo-remsim-bankd
%dir %{_sysconfdir}/osmocom
%config(noreplace) %{_sysconfdir}/osmocom/bankd_pcsc_slots.csv
%dir %{_docdir}/osmo-remsim
%dir %{_docdir}/osmo-remsim/examples
%files -n osmo-remsim-client-shell