diff options
author | Oliver Smith <osmith@sysmocom.de> | 2020-05-14 11:51:10 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2020-05-15 12:08:37 +0200 |
commit | f234f5302f6fc31cef1787a135ef75c4c69c6355 (patch) | |
tree | cc67b950fc1d619744ef424ac99f9f2642213a99 | |
parent | 9ed8094fc6a3db95e6ca09a580aea4d25aba1d3d (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: Idfe04c2e2609763387d1309f059c390b8e7ae938
-rw-r--r-- | contrib/osmo-pcu.spec | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/osmo-pcu.spec b/contrib/osmo-pcu.spec index 0232b32..7dbdeb1 100644 --- a/contrib/osmo-pcu.spec +++ b/contrib/osmo-pcu.spec @@ -12,12 +12,8 @@ # 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-pcu -Version: 0.8.0.126 +Version: 0.0.0 Release: 0 Summary: Osmocom GPRS Packet Control Unit (PCU) License: GPL-2.0-only @@ -29,7 +25,11 @@ BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkgconfig >= 0.20 +%if 0%{?centos_ver} +BuildRequires: systemd +%else BuildRequires: systemd-rpm-macros +%endif BuildRequires: pkgconfig(libosmocore) >= 1.1.0 BuildRequires: pkgconfig(libosmogb) >= 1.1.0 BuildRequires: pkgconfig(libosmogsm) >= 1.1.0 @@ -55,6 +55,7 @@ make %{?_smp_mflags} %install %make_install +%if 0%{?suse_version} %preun %service_del_preun %{name}.service @@ -66,6 +67,7 @@ make %{?_smp_mflags} %post %service_add_post %{name}.service +%endif %check make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) |