Change in osmo-bts[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:21 UTC 2020


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


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



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/88/18288/1

diff --git a/contrib/osmo-bts.spec b/contrib/osmo-bts.spec
index 2a423b2..968efc9 100644
--- a/contrib/osmo-bts.spec
+++ b/contrib/osmo-bts.spec
@@ -12,11 +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-bts
-Version:        1.2.0.49
+Version:        0.0.0
 Release:        0
 Summary:        Osmocom BTS-Side code (Abis, scheduling)
 License:        AGPL-3.0-or-later AND GPL-2.0-only
@@ -27,7 +24,11 @@
 BuildRequires:  automake
 BuildRequires:  libtool
 BuildRequires:  pkgconfig >= 0.20
+%if 0%{?centos_ver}
+BuildRequires:  systemd
+%else
 BuildRequires:  systemd-rpm-macros
+%endif
 BuildRequires:  pkgconfig(libosmoabis) >= 0.6.0
 BuildRequires:  pkgconfig(libosmocodec) >= 1.2.0
 BuildRequires:  pkgconfig(libosmocoding) >= 1.2.0
@@ -76,6 +77,7 @@
 %install
 %make_install
 
+%if 0%{?suse_version}
 %pre    %service_add_pre    osmo-bts-trx.service
 %post   %service_add_post   osmo-bts-trx.service
 %preun  %service_del_preun  osmo-bts-trx.service
@@ -84,6 +86,7 @@
 %post   virtual %service_add_post   osmo-bts-virtual.service
 %preun  virtual %service_del_preun  osmo-bts-virtual.service
 %postun virtual %service_del_postun osmo-bts-virtual.service
+%endif
 
 %check
 make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ia160d1a04b95e9efeb6c26eabd28c3697968d177
Gerrit-Change-Number: 18288
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/be955d51/attachment.htm>


More information about the gerrit-log mailing list