contrib/osmo-iuh.spec.in: fix header packaging

Fix the conflict from having %{_includedir}/* in multiple packages by
replacing it with the correct subdir path.

Fix for:
  found conflict of libosmo-hnbap-devel-0.7.0.11.b110.202110260026-1.1.armv7hl with libosmo-ranap-devel-0.7.0.11.b110.202110260026-1.1.armv7hl:
    - /usr/include/osmocom/hnbap/Access-stratum-release-indicator.h
    - /usr/include/osmocom/hnbap/AccessResult.h
    - /usr/include/osmocom/hnbap/AdditionalNeighbourInfoList.h
  ...

I've verified that it builds again in my own OBS namespace.

Related: SYS#5516
Fixes: 35f2bd ("Provide libosmo-hnbap as a public shared library")
Fixes: dba8b0 ("Provide libosmo-rua as a public shared library")
Change-Id: Ia401caf01fa9ea351f811d7c22a04ccff556d6bc
This commit is contained in:
Oliver Smith 2021-10-26 08:29:40 +02:00
parent b1103fc8e3
commit 6a77d1ffa5
1 changed files with 13 additions and 3 deletions

View File

@ -2,6 +2,7 @@
# spec file for package osmo-iuh
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 sysmocom - s.f.m.c GmbH
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -154,7 +155,9 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%{_libdir}/libosmo-hnbap.so.0*
%files -n libosmo-hnbap-devel
%{_includedir}/*
%dir %{_includedir}/osmocom/
%dir %{_includedir}/osmocom/hnbap/
%{_includedir}/osmocom/hnbap/*
%{_libdir}/libosmo-hnbap.so
%{_libdir}/pkgconfig/libosmo-hnbap.pc
@ -162,7 +165,9 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%{_libdir}/libosmo-ranap.so.3*
%files -n libosmo-ranap-devel
%{_includedir}/*
%dir %{_includedir}/osmocom/
%dir %{_includedir}/osmocom/ranap/
%{_includedir}/osmocom/ranap/*
%{_libdir}/libosmo-ranap.so
%{_libdir}/pkgconfig/libosmo-ranap.pc
@ -170,7 +175,9 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%{_libdir}/libosmo-rua.so.0*
%files -n libosmo-rua-devel
%{_includedir}/*
%dir %{_includedir}/osmocom/
%dir %{_includedir}/osmocom/rua/
%{_includedir}/osmocom/rua/*
%{_libdir}/libosmo-rua.so
%{_libdir}/pkgconfig/libosmo-rua.pc
@ -178,6 +185,9 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%{_libdir}/libosmo-sabp.so.0*
%files -n libosmo-sabp-devel
%dir %{_includedir}/osmocom/
%dir %{_includedir}/osmocom/sabp/
%{_includedir}/osmocom/sabp/*
%{_libdir}/libosmo-sabp.so
%{_libdir}/pkgconfig/libosmo-sabp.pc