blob: c8bdea29796f2ddeda568d2e17eb07f9c7dc6cf9 [file] [log] [blame]
Oliver Smith0e3a0272020-05-14 11:46:12 +02001#
2# spec file for package osmo-iuh
3#
4# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
5#
6# All modifications and additions to the file contributed by third parties
7# remain the property of their copyright owners, unless otherwise agreed
8# upon. The license for this file, and modifications and additions to the
9# file, is the same license as for the pristine package itself (unless the
10# license for the pristine package is not an Open Source License, in which
11# case the license is the MIT License). An "Open Source License" is a
12# license that conforms to the Open Source Definition (Version 1.9)
13# published by the Open Source Initiative.
14
Oliver Smith0e3a0272020-05-14 11:46:12 +020015Name: osmo-iuh
Oliver Smith70abda02020-05-14 11:47:33 +020016Version: @VERSION@
Oliver Smith0e3a0272020-05-14 11:46:12 +020017Release: 0
18Summary: Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
19License: AGPL-3.0-or-later AND GPL-2.0-or-later
20Group: Hardware/Mobile
Oliver Smith70abda02020-05-14 11:47:33 +020021URL: https://osmocom.org/projects/osmohnbgw
Oliver Smith0e3a0272020-05-14 11:46:12 +020022Source: %{name}-%{version}.tar.xz
23BuildRequires: automake >= 1.9
24BuildRequires: libtool >= 2
25BuildRequires: lksctp-tools-devel
26BuildRequires: pkgconfig >= 0.20
27# python3 for asn1tostruct.py
28BuildRequires: python3
Oliver Smith70abda02020-05-14 11:47:33 +020029%if 0%{?suse_version}
30BuildRequires: systemd-rpm-macros
31%endif
Oliver Smith0e3a0272020-05-14 11:46:12 +020032BuildRequires: pkgconfig(libasn1c) >= 0.9.30
Pau Espin Pedrolc1385f22021-02-23 20:11:59 +010033BuildRequires: pkgconfig(libosmo-netif) >= 1.1.0
34BuildRequires: pkgconfig(libosmo-sigtran) >= 1.4.0
35BuildRequires: pkgconfig(libosmocore) >= 1.5.0
36BuildRequires: pkgconfig(libosmoctrl) >= 1.5.0
37BuildRequires: pkgconfig(libosmogb) >= 1.5.0
38BuildRequires: pkgconfig(libosmogsm) >= 1.5.0
39BuildRequires: pkgconfig(libosmovty) >= 1.5.0
Oliver Smith70abda02020-05-14 11:47:33 +020040%{?systemd_requires}
Oliver Smith0e3a0272020-05-14 11:46:12 +020041
42%description
43Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
44
45%package -n libosmo-ranap3
46Summary: Shared Library part of libosmo-ranap
47Group: System/Libraries
48
49%description -n libosmo-ranap3
50Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
51
52%package -n libosmo-ranap-devel
53Summary: Development files for Osmocom RANAP library
54Group: Development/Libraries/C and C++
55Requires: libosmo-ranap3 = %{version}
56
57%description -n libosmo-ranap-devel
58Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
59
60This subpackage contains libraries and header files for developing
61applications that want to make use of libosmoranap.
62
63
64%package -n libosmo-sabp0
65Summary: Shared Library part of libosmo-sabp
66Group: System/Libraries
67
68%description -n libosmo-sabp0
69Osmocom code for the SABP (service area broadcast protocol) interface
70
71%package -n libosmo-sabp-devel
72Summary: Development files for Osmocom SABP library
73Group: Development/Libraries/C and C++
74Requires: libosmo-sabp0 = %{version}
75
76%description -n libosmo-sabp-devel
77Osmocom code for the SABP (service area broadcast protocol) interface
78
79This subpackage contains libraries and header files for developing
80applications that want to make use of libosmo-sabp.
81
82
83%prep
84%setup -q
85
86%build
87echo "%{version}" >.tarball-version
88autoreconf -fi
89%configure \
90 --disable-static \
91 --docdir="%{_docdir}/%{name}" \
92 --with-systemdsystemunitdir=%{_unitdir}
93make %{?_smp_mflags}
94
95%install
96%make_install
97find %{buildroot} -type f -name "*.la" -delete -print
98
99%check
100make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
101
102%post -n libosmo-ranap3 -p /sbin/ldconfig
103%postun -n libosmo-ranap3 -p /sbin/ldconfig
104%post -n libosmo-sabp0 -p /sbin/ldconfig
105%postun -n libosmo-sabp0 -p /sbin/ldconfig
Oliver Smith70abda02020-05-14 11:47:33 +0200106
107%if 0%{?suse_version}
Oliver Smith0e3a0272020-05-14 11:46:12 +0200108%pre %service_add_pre osmo-hnbgw.service
109%post %service_add_post osmo-hnbgw.service
110%preun %service_del_preun osmo-hnbgw.service
111%postun %service_del_postun osmo-hnbgw.service
Oliver Smith70abda02020-05-14 11:47:33 +0200112%endif
Oliver Smith0e3a0272020-05-14 11:46:12 +0200113
114%files
115%license COPYING
116%doc README.md
117%dir %{_docdir}/%{name}/examples
118%{_docdir}/%{name}/examples/osmo-hnbgw.cfg
119%{_bindir}/osmo-hnbgw
120%dir %{_sysconfdir}/osmocom
121%config %{_sysconfdir}/osmocom/osmo-hnbgw.cfg
122%{_unitdir}/osmo-hnbgw.service
123
124%files -n libosmo-ranap3
125%{_libdir}/libosmo-ranap.so.3*
126
127%files -n libosmo-ranap-devel
128%{_includedir}/*
129%{_libdir}/libosmo-ranap.so
130%{_libdir}/pkgconfig/libosmo-ranap.pc
131
132%files -n libosmo-sabp0
133%{_libdir}/libosmo-sabp.so.0*
134
135%files -n libosmo-sabp-devel
136%{_libdir}/libosmo-sabp.so
137%{_libdir}/pkgconfig/libosmo-sabp.pc
138
139%changelog