diff options
author | Oliver Smith <osmith@sysmocom.de> | 2020-05-14 11:43:21 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2020-05-15 12:02:20 +0200 |
commit | 1d17cc3908f5c2ccf872b8f0640c79dfdd9e6b5a (patch) | |
tree | e16e7ba976390e1ca6961e2c7ec6ff79b99e6627 | |
parent | 138483840c4c008682996df5e71ac72afcca0111 (diff) |
contrib: integrate RPM specosmith/rpm
Remove OpenSUSE bug report link, set version to 0.0.0, make it build with CentOS 8 etc.
Related: OS#4550
Change-Id: Iba04d5c7b9beee80baca83063f9cb2cd533a0003
-rw-r--r-- | contrib/osmo-ggsn.spec | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/osmo-ggsn.spec b/contrib/osmo-ggsn.spec index 15e4144..03bf0f0 100644 --- a/contrib/osmo-ggsn.spec +++ b/contrib/osmo-ggsn.spec @@ -12,16 +12,12 @@ # 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/4114 %define _lto_cflags %{nil} - Name: osmo-ggsn -Version: 1.5.0.31 +Version: 0.0.0 Release: 0 Summary: GPRS Support Node License: GPL-2.0-only AND LGPL-2.1-or-later @@ -30,7 +26,11 @@ URL: https://osmocom.org/projects/openggsn/wiki/OsmoGGSN Source: %{name}-%{version}.tar.xz BuildRequires: libtool >= 2 BuildRequires: pkgconfig >= 0.20 +%if 0%{?centos_ver} +BuildRequires: systemd +%else BuildRequires: systemd-rpm-macros +%endif BuildRequires: pkgconfig(libgtpnl) >= 1.0.0 BuildRequires: pkgconfig(libmnl) >= 1.0.3 BuildRequires: pkgconfig(libosmocore) >= 1.1.0 @@ -84,6 +84,7 @@ find %{buildroot} -type f -name "*.la" -delete -print %check make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) +%if 0%{?suse_version} %pre %service_add_pre %{name}.service @@ -95,6 +96,7 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) %postun %service_del_postun %{name}.service +%endif %post -n libgtp6 -p /sbin/ldconfig %postun -n libgtp6 -p /sbin/ldconfig |