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/.

laforge gerrit-no-reply at lists.osmocom.org
Wed May 20 08:07:45 UTC 2020


laforge has submitted this change. ( 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 @VERSION@, make it build
with CentOS 8 etc.

Related: OS#4550
Change-Id: Idfe04c2e2609763387d1309f059c390b8e7ae938
---
M .gitignore
M configure.ac
R contrib/osmo-pcu.spec.in
3 files changed, 9 insertions(+), 6 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/.gitignore b/.gitignore
index c309e96..58be63b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -64,3 +64,5 @@
 doc/manuals/osmomsc-usermanual.xml
 doc/manuals/common
 doc/manuals/build
+
+contrib/osmo-pcu.spec
diff --git a/configure.ac b/configure.ac
index d693c67..3d126ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -256,4 +256,5 @@
     doc/manuals/Makefile
     contrib/Makefile
     contrib/systemd/Makefile
+    contrib/osmo-pcu.spec
     Makefile)
diff --git a/contrib/osmo-pcu.spec b/contrib/osmo-pcu.spec.in
similarity index 92%
rename from contrib/osmo-pcu.spec
rename to contrib/osmo-pcu.spec.in
index 0232b32..e197cb7 100644
--- a/contrib/osmo-pcu.spec
+++ b/contrib/osmo-pcu.spec.in
@@ -12,24 +12,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-pcu
-Version:        0.8.0.126
+Version:        @VERSION@
 Release:        0
 Summary:        Osmocom GPRS Packet Control Unit (PCU)
 License:        GPL-2.0-only
 Group:          Productivity/Telephony/Servers
-URL:            https://osmocom.org/projects/osmopcu/wiki/OsmoPCU
+URL:            https://osmocom.org/projects/osmopcu
 Source:         %{name}-%{version}.tar.xz
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  gcc-c++
 BuildRequires:  libtool
 BuildRequires:  pkgconfig >= 0.20
+%if 0%{?suse_version}
 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 +53,7 @@
 %install
 %make_install
 
+%if 0%{?suse_version}
 %preun
 %service_del_preun %{name}.service
 
@@ -66,6 +65,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: 2
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200520/180968af/attachment.htm>


More information about the gerrit-log mailing list