Oliver Smith | 2f7fb2e | 2020-05-14 11:45:19 +0200 | [diff] [blame^] | 1 | # |
| 2 | # spec file for package osmo-hlr |
| 3 | # |
| 4 | # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. |
| 5 | # Copyright (c) 2016, Martin Hauke <mardnh@gmx.de> |
| 6 | # |
| 7 | # All modifications and additions to the file contributed by third parties |
| 8 | # remain the property of their copyright owners, unless otherwise agreed |
| 9 | # upon. The license for this file, and modifications and additions to the |
| 10 | # file, is the same license as for the pristine package itself (unless the |
| 11 | # license for the pristine package is not an Open Source License, in which |
| 12 | # case the license is the MIT License). An "Open Source License" is a |
| 13 | # license that conforms to the Open Source Definition (Version 1.9) |
| 14 | # published by the Open Source Initiative. |
| 15 | |
| 16 | # Please submit bugfixes or comments via http://bugs.opensuse.org/ |
| 17 | # |
| 18 | |
| 19 | |
| 20 | Name: osmo-hlr |
| 21 | Version: 1.2.0.48 |
| 22 | Release: 0 |
| 23 | Summary: Osmocom Home Location Register for GSUP protocol towards OsmoSGSN and OsmoCSCN |
| 24 | License: AGPL-3.0-or-later AND GPL-2.0-or-later |
| 25 | Group: Productivity/Telephony/Servers |
| 26 | URL: https://projects.osmocom.org/projects/osmo-hlr |
| 27 | Source: %{name}-%{version}.tar.xz |
| 28 | BuildRequires: autoconf |
| 29 | BuildRequires: automake |
| 30 | BuildRequires: libtool |
| 31 | BuildRequires: pkgconfig >= 0.20 |
| 32 | BuildRequires: python2 |
| 33 | BuildRequires: systemd-rpm-macros |
| 34 | BuildRequires: pkgconfig(libosmoabis) >= 0.6.0 |
| 35 | BuildRequires: pkgconfig(libosmocore) >= 1.2.0 |
| 36 | BuildRequires: pkgconfig(libosmoctrl) >= 1.2.0 |
| 37 | BuildRequires: pkgconfig(libosmogsm) >= 1.2.0 |
| 38 | BuildRequires: pkgconfig(libosmovty) >= 1.2.0 |
| 39 | BuildRequires: pkgconfig(sqlite3) |
| 40 | BuildRequires: pkgconfig(talloc) >= 2.0.1 |
| 41 | # only needed for populate_hlr_db.pl |
| 42 | Requires: libdbi-drivers-dbd-sqlite3 |
| 43 | |
| 44 | %description |
| 45 | The GSUP HLR is a stand-alone HLR (Home Location Register) for SIM |
| 46 | and USIM based subscribers which exposes the GSUP protocol towards |
| 47 | its users. OsmoSGSN supports this protocol. |
| 48 | |
| 49 | osmo-gsup-hlr is still very simplistic. It is a single-threaded |
| 50 | architecture and uses only sqlite3 tables as back-end. It is suitable |
| 51 | for installations of the scale that OsmoNITB was able to handle. It |
| 52 | also lacks various features like fine-grained control of subscribed |
| 53 | services (like supplementary services). |
| 54 | |
| 55 | %package -n libosmo-gsup-client0 |
| 56 | Summary: Osmocom GSUP (General Subscriber Update Protocol) client library |
| 57 | License: GPL-2.0-or-later |
| 58 | Group: System/Libraries |
| 59 | |
| 60 | %description -n libosmo-gsup-client0 |
| 61 | This is a shared library that can be used to implement client programs for |
| 62 | the GSUP protocol. The typical GSUP server is OsmoHLR, with OsmoMSC, OsmoSGSN |
| 63 | and External USSD Entities (EUSEs) using this library to implement clients. |
| 64 | |
| 65 | %package -n libosmo-gsup-client-devel |
| 66 | Summary: Development files for the Osmocom GSUP client library |
| 67 | License: GPL-2.0-or-later |
| 68 | Group: Development/Libraries/C and C++ |
| 69 | Requires: libosmo-gsup-client0 = %{version} |
| 70 | |
| 71 | %description -n libosmo-gsup-client-devel |
| 72 | This is a shared library that can be used to implement client programs for |
| 73 | the GSUP protocol. The typical GSUP server is OsmoHLR, with OsmoMSC, OsmoSGSN |
| 74 | and External USSD Entities (EUSEs) using this library to implement clients. |
| 75 | |
| 76 | This subpackage contains libraries and header files for developing |
| 77 | applications that want to make use of libosmo-gsup-client. |
| 78 | |
| 79 | %package -n libosmo-mslookup0 |
| 80 | Summary: Osmocom MS lookup library |
| 81 | License: GPL-2.0-or-later |
| 82 | Group: System/Libraries |
| 83 | |
| 84 | %description -n libosmo-mslookup0 |
| 85 | This shared library contains routines for looking up mobile subscribers. |
| 86 | |
| 87 | %package -n libosmo-mslookup-devel |
| 88 | Summary: Development files for the Osmocom MS lookup library |
| 89 | License: GPL-2.0-or-later |
| 90 | Group: Development/Libraries/C and C++ |
| 91 | Requires: libosmo-mslookup0 = %{version} |
| 92 | |
| 93 | %description -n libosmo-mslookup-devel |
| 94 | This shared library contains routines for looking up mobile subscribers. |
| 95 | |
| 96 | This subpackage contains libraries and header files for developing |
| 97 | applications that want to make use of libosmo-mslookup. |
| 98 | |
| 99 | |
| 100 | %package -n osmo-mslookup-client |
| 101 | Summary: Standalone program using libosmo-mslookup |
| 102 | License: GPL-2.0-or-later |
| 103 | Group: Development/Libraries/C and C++ |
| 104 | |
| 105 | %description -n osmo-mslookup-client |
| 106 | Standalone program using libosmo-mslookup to easily integrate with programs |
| 107 | that want to connect services (SIP, SMS,...) to the current location of a |
| 108 | subscriber. |
| 109 | |
| 110 | %prep |
| 111 | %setup -q |
| 112 | |
| 113 | %build |
| 114 | echo "%{version}" >.tarball-version |
| 115 | autoreconf -fi |
| 116 | %configure \ |
| 117 | --docdir="%{_docdir}/%{name}" \ |
| 118 | --with-systemdsystemunitdir=%{_unitdir} \ |
| 119 | --enable-shared \ |
| 120 | --disable-static |
| 121 | make V=1 %{?_smp_mflags} |
| 122 | |
| 123 | %install |
| 124 | %make_install |
| 125 | install -d "%{buildroot}/%{_localstatedir}/lib/osmocom" |
| 126 | find %{buildroot} -type f -name "*.la" -delete -print |
| 127 | |
| 128 | %check |
| 129 | make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) |
| 130 | |
| 131 | %preun |
| 132 | %service_del_preun %{name}.service |
| 133 | |
| 134 | %postun |
| 135 | %service_del_postun %{name}.service |
| 136 | |
| 137 | %pre |
| 138 | %service_add_pre %{name}.service |
| 139 | |
| 140 | %post |
| 141 | %service_add_post %{name}.service |
| 142 | |
| 143 | %post -n libosmo-gsup-client0 -p /sbin/ldconfig |
| 144 | %postun -n libosmo-gsup-client0 -p /sbin/ldconfig |
| 145 | %post -n libosmo-mslookup0 -p /sbin/ldconfig |
| 146 | %postun -n libosmo-mslookup0 -p /sbin/ldconfig |
| 147 | |
| 148 | %files |
| 149 | %license COPYING |
| 150 | %dir %{_docdir}/%{name} |
| 151 | %dir %{_docdir}/%{name}/examples |
| 152 | %{_docdir}/%{name}/examples/osmo-hlr.cfg |
| 153 | %{_docdir}/%{name}/examples/osmo-hlr-dgsm.cfg |
| 154 | %dir %{_docdir}/%{name}/sql |
| 155 | %{_docdir}/%{name}/sql/hlr.sql |
| 156 | %{_docdir}/%{name}/sql//hlr_data.sql |
| 157 | %dir %{_sysconfdir}/osmocom |
| 158 | %dir %{_localstatedir}/lib/osmocom |
| 159 | %{_bindir}/osmo-hlr |
| 160 | %{_bindir}/osmo-hlr-db-tool |
| 161 | %dir %{_sysconfdir}/osmocom |
| 162 | %config %{_sysconfdir}/osmocom/osmo-hlr.cfg |
| 163 | %{_unitdir}/osmo-hlr.service |
| 164 | |
| 165 | %files -n libosmo-gsup-client0 |
| 166 | %{_libdir}/libosmo-gsup-client.so.0* |
| 167 | |
| 168 | %files -n libosmo-gsup-client-devel |
| 169 | %{_bindir}/osmo-euse-demo |
| 170 | %dir %{_includedir}/osmocom |
| 171 | %dir %{_includedir}/osmocom/gsupclient |
| 172 | %{_includedir}/osmocom/gsupclient/*.h |
| 173 | %{_libdir}/libosmo-gsup-client.so |
| 174 | %{_libdir}/pkgconfig/libosmo-gsup-client.pc |
| 175 | |
| 176 | %files -n libosmo-mslookup0 |
| 177 | %{_libdir}/libosmo-mslookup.so.0* |
| 178 | |
| 179 | %files -n libosmo-mslookup-devel |
| 180 | %dir %{_includedir}/osmocom |
| 181 | %dir %{_includedir}/osmocom/mslookup |
| 182 | %{_includedir}/osmocom/mslookup/*.h |
| 183 | %{_libdir}/libosmo-mslookup.so |
| 184 | %{_libdir}/pkgconfig/libosmo-mslookup.pc |
| 185 | |
| 186 | %files -n osmo-mslookup-client |
| 187 | %{_bindir}/osmo-mslookup-client |
| 188 | |
| 189 | %changelog |