Change in osmo-sgsn[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:37 UTC 2020


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


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: I824b67f2d590ac2aa9f2e4fa4387a5283cf22521
---
M contrib/osmo-sgsn.spec
1 file changed, 7 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/09/18309/1

diff --git a/contrib/osmo-sgsn.spec b/contrib/osmo-sgsn.spec
index 3c592e7..c579c9b 100644
--- a/contrib/osmo-sgsn.spec
+++ b/contrib/osmo-sgsn.spec
@@ -12,17 +12,13 @@
 # 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:        0.0.0
 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
@@ -33,7 +29,11 @@
 BuildRequires:  automake
 BuildRequires:  libtool
 BuildRequires:  pkgconfig
+%if 0%{?centos_ver}
+BuildRequires:  systemd
+%else
 BuildRequires:  systemd-rpm-macros
+%endif
 BuildRequires:  pkgconfig(libcares)
 BuildRequires:  pkgconfig(libcrypto) >= 0.9.5
 BuildRequires:  pkgconfig(libgtp) >= 1.4.0
@@ -88,6 +88,7 @@
 %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 +101,7 @@
 %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 {} +)

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

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I824b67f2d590ac2aa9f2e4fa4387a5283cf22521
Gerrit-Change-Number: 18309
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/210d7ca7/attachment.htm>


More information about the gerrit-log mailing list