Change in osmo-pcu[master]: contrib: integrate RPM spec

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Fri May 15 11:57:34 UTC 2020


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/18305 )


Change subject: contrib: integrate RPM spec
......................................................................

contrib: integrate RPM spec

Remove OpenSUSE bug report link, set version to 0.0.0, make it build with CentOS 8 etc.

Related: OS#4550
Change-Id: Idfe04c2e2609763387d1309f059c390b8e7ae938
---
M contrib/osmo-pcu.spec
1 file changed, 7 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/05/18305/1

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:  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 @@
 %install
 %make_install
 
+%if 0%{?suse_version}
 %preun
 %service_del_preun %{name}.service
 
@@ -66,6 +67,7 @@
 
 %post
 %service_add_post %{name}.service
+%endif
 
 %check
 make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/18305
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Idfe04c2e2609763387d1309f059c390b8e7ae938
Gerrit-Change-Number: 18305
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200515/80324346/attachment.htm>


More information about the gerrit-log mailing list