Change in osmo-bsc[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:22 UTC 2020


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


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



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/90/18290/1

diff --git a/contrib/osmo-bsc.spec b/contrib/osmo-bsc.spec
index 1aa4baf..fcde3a1 100644
--- a/contrib/osmo-bsc.spec
+++ b/contrib/osmo-bsc.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/4113
 %define _lto_cflags %{nil}
 
-
 Name:           osmo-bsc
-Version:        1.6.0.78
+Version:        0.0.0
 Release:        0
 Summary:        OsmoBSC: Osmocom's Base Station Controller for 2G CS mobile networks
 License:        AGPL-3.0-or-later AND GPL-2.0-or-later
@@ -31,7 +27,11 @@
 BuildRequires:  automake >= 1.9
 BuildRequires:  libtool >= 2
 BuildRequires:  pkgconfig >= 0.20
+%if 0%{?centos_ver}
+BuildRequires:  systemd
+%else
 BuildRequires:  systemd-rpm-macros
+%endif
 BuildRequires:  pkgconfig(libcrypto) >= 0.9.5
 BuildRequires:  pkgconfig(libosmo-mgcp-client) >= 1.5.0
 BuildRequires:  pkgconfig(libosmo-netif) >= 0.6.0
@@ -100,6 +100,7 @@
 %install
 %make_install
 
+%if 0%{?suse_version}
 %preun
 %service_del_preun %{name}.service
 
@@ -111,6 +112,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-bsc/+/18290
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I4b87cb0d80bda7bbfda600310aee24a814f97f3f
Gerrit-Change-Number: 18290
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200515/d43b65ae/attachment.htm>


More information about the gerrit-log mailing list