contrib/osmo-remsim.spec.in: 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-0.2.2.113.f2a1.202106230026-lp151.1.1.x86_64.rpm: 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
changes/51/24751/1
Oliver Smith 1 year ago
parent 588ec1a619
commit 694e3b5782
  1. 4
      contrib/osmo-remsim.spec.in

@ -145,6 +145,7 @@ echo "%{version}" >.tarball-version
autoreconf -fi
%configure \
--disable-static \
--docdir=%{_docdir}/osmo-remsim \
--with-systemdsystemunitdir=%{_unitdir}
make V=1 %{?_smp_mflags}
@ -194,7 +195,10 @@ make %{?_smp_mflags} check || find . -name testsuite.log -exec cat {} +
%{_bindir}/osmo-remsim-bankd
%{_unitdir}/osmo-remsim-bankd.service
%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
%{_docdir}/osmo-remsim/examples/bankd_pcsc_slots.csv
%files -n osmo-remsim-client-shell

Loading…
Cancel
Save