diff options
author | Oliver Smith <osmith@sysmocom.de> | 2020-05-14 11:53:18 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2020-05-19 16:49:33 +0200 |
commit | bd6d677179f224d2d2168f6538ff9befda22ac9d (patch) | |
tree | c01739eea64d63a9d487858f4a449ea690136415 | |
parent | 482bb073014fd5afb7ea616f38c1bf33d79092d9 (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: I824b67f2d590ac2aa9f2e4fa4387a5283cf22521
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | contrib/osmo-sgsn.spec.in (renamed from contrib/osmo-sgsn.spec) | 12 |
3 files changed, 9 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore index b3e50f55e..546d5dfbb 100644 --- a/.gitignore +++ b/.gitignore @@ -69,3 +69,5 @@ doc/manuals/generated/ doc/manuals/osmomsc-usermanual.xml doc/manuals/common doc/manuals/build + +contrib/osmo-sgsn.spec diff --git a/configure.ac b/configure.ac index 5c0beded7..9432715d6 100644 --- a/configure.ac +++ b/configure.ac @@ -273,4 +273,5 @@ AC_OUTPUT( doc/manuals/Makefile contrib/Makefile contrib/systemd/Makefile + contrib/osmo-sgsn.spec Makefile) diff --git a/contrib/osmo-sgsn.spec b/contrib/osmo-sgsn.spec.in index 3c592e759..f9fe2086d 100644 --- a/contrib/osmo-sgsn.spec +++ b/contrib/osmo-sgsn.spec.in @@ -12,28 +12,26 @@ # 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/ -# - - ## Disable LTO for now since it breaks compilation of the tests ## https://osmocom.org/issues/4116 %define _lto_cflags %{nil} %define with_iu 1 Name: osmo-sgsn -Version: 1.6.0.9 +Version: @VERSION@ Release: 0 Summary: Osmocom's SGSN for 2G and 3G packet-switched mobile networks License: AGPL-3.0-or-later AND GPL-2.0-or-later Group: Productivity/Telephony/Servers -URL: https://osmocom.org/projects/osmosgsn/wiki/OsmoSGSN +URL: https://osmocom.org/projects/osmosgsn Source: %{name}-%{version}.tar.xz BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: pkgconfig +%if 0%{?suse_version} BuildRequires: systemd-rpm-macros +%endif BuildRequires: pkgconfig(libcares) BuildRequires: pkgconfig(libcrypto) >= 0.9.5 BuildRequires: pkgconfig(libgtp) >= 1.4.0 @@ -88,6 +86,7 @@ make %{?_smp_mflags} %install %make_install +%if 0%{?suse_version} %preun %service_del_preun %{name}.service %postun %service_del_postun %{name}.service %pre %service_add_pre %{name}.service @@ -100,6 +99,7 @@ make %{?_smp_mflags} %postun -n osmo-gbproxy %service_del_postun osmo-gbproxy.service %pre -n osmo-gbproxy %service_add_pre osmo-gbproxy.service %post -n osmo-gbproxy %service_add_post osmo-gbproxy.service +%endif %check make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) |