diff options
author | Oliver Smith <osmith@sysmocom.de> | 2020-05-14 11:46:08 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2020-05-19 17:08:28 +0200 |
commit | 102e3629436bdcaafe6fcc38a5411df7bf451cf8 (patch) | |
tree | 223d43bfab2b2a4905606ec8f3e19d1faf9d932f | |
parent | 2f7fb2e36bf00a19d5fa7fb71384ca289de836ff (diff) |
contrib: integrate RPM spec
Remove OpenSUSE bug report link, set version to @VERSION@, make it build
with CentOS 8 etc.
Related: OS#4550
Change-Id: I38f80d0f867a2bbaa09b5a42cad5028f23a8effa
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | contrib/osmo-hlr.spec.in (renamed from contrib/osmo-hlr.spec) | 15 |
3 files changed, 11 insertions, 7 deletions
@@ -67,3 +67,5 @@ doc/manuals/generated/ doc/manuals/osmomsc-usermanual.xml doc/manuals/common doc/manuals/build + +contrib/osmo-hlr.spec diff --git a/configure.ac b/configure.ac index 0e03ff0..4ed6978 100644 --- a/configure.ac +++ b/configure.ac @@ -200,6 +200,7 @@ AC_OUTPUT( contrib/Makefile contrib/systemd/Makefile contrib/dgsm/Makefile + contrib/osmo-hlr.spec tests/Makefile tests/auc/Makefile tests/auc/gen_ts_55_205_test_sets/Makefile diff --git a/contrib/osmo-hlr.spec b/contrib/osmo-hlr.spec.in index 3b5a9fa..bd1b278 100644 --- a/contrib/osmo-hlr.spec +++ b/contrib/osmo-hlr.spec.in @@ -13,24 +13,22 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - - Name: osmo-hlr -Version: 1.2.0.48 +Version: @VERSION@ Release: 0 Summary: Osmocom Home Location Register for GSUP protocol towards OsmoSGSN and OsmoCSCN License: AGPL-3.0-or-later AND GPL-2.0-or-later Group: Productivity/Telephony/Servers -URL: https://projects.osmocom.org/projects/osmo-hlr +URL: https://osmocom.org/projects/osmo-hlr Source: %{name}-%{version}.tar.xz BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: pkgconfig >= 0.20 -BuildRequires: python2 +BuildRequires: python3 +%if 0%{?suse_version} BuildRequires: systemd-rpm-macros +%endif BuildRequires: pkgconfig(libosmoabis) >= 0.6.0 BuildRequires: pkgconfig(libosmocore) >= 1.2.0 BuildRequires: pkgconfig(libosmoctrl) >= 1.2.0 @@ -40,6 +38,7 @@ BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(talloc) >= 2.0.1 # only needed for populate_hlr_db.pl Requires: libdbi-drivers-dbd-sqlite3 +%{?systemd_requires} %description The GSUP HLR is a stand-alone HLR (Home Location Register) for SIM @@ -128,6 +127,7 @@ find %{buildroot} -type f -name "*.la" -delete -print %check make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) +%if 0%{?suse_version} %preun %service_del_preun %{name}.service @@ -139,6 +139,7 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) %post %service_add_post %{name}.service +%endif %post -n libosmo-gsup-client0 -p /sbin/ldconfig %postun -n libosmo-gsup-client0 -p /sbin/ldconfig |