Change in osmo-remsim[master]: contrib/osmo-remsim.spec.in: fix build on opensuse

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Wed Jun 23 12:37:16 UTC 2021


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-remsim/+/24751 )


Change subject: contrib/osmo-remsim.spec.in: fix build on opensuse
......................................................................

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
---
M contrib/osmo-remsim.spec.in
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/51/24751/1

diff --git a/contrib/osmo-remsim.spec.in b/contrib/osmo-remsim.spec.in
index df98a1f..90ef773 100644
--- a/contrib/osmo-remsim.spec.in
+++ b/contrib/osmo-remsim.spec.in
@@ -145,6 +145,7 @@
 autoreconf -fi
 %configure \
     --disable-static \
+    --docdir=%{_docdir}/osmo-remsim \
     --with-systemdsystemunitdir=%{_unitdir}
 make V=1 %{?_smp_mflags}
 
@@ -194,7 +195,10 @@
 %{_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

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/24751
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: Ie5bbb25f8aa87edcea8b952d3c29aab29ac31b19
Gerrit-Change-Number: 24751
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210623/502b9b2c/attachment.htm>


More information about the gerrit-log mailing list