laforge has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-sysmon/+/30039 )
Change subject: Support RPM building via contrib/osmo-sysmon.spec.in
......................................................................
Support RPM building via contrib/osmo-sysmon.spec.in
Change-Id: I223bd1f20ad1710d4ce6ea5f170245ee8c1da46b
---
M Makefile.am
M configure.ac
A contrib/osmo-sysmon.spec.in
3 files changed, 66 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sysmon refs/changes/39/30039/1
diff --git a/Makefile.am b/Makefile.am
index 59ac423..ab57cc6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,7 @@
SUBDIRS = doc src
+EXTRA_DIST = contrib/osmo-sysmon.spec.in
+
ACLOCAL_AMFLAGS = -I m4
@RELMAKE@
diff --git a/configure.ac b/configure.ac
index 2546b61..20b4279 100644
--- a/configure.ac
+++ b/configure.ac
@@ -124,4 +124,5 @@
doc/Makefile
doc/examples/Makefile
src/Makefile
+ contrib/osmo-sysmon.spec
Makefile)
diff --git a/contrib/osmo-sysmon.spec.in b/contrib/osmo-sysmon.spec.in
new file mode 100644
index 0000000..e1e7d32
--- /dev/null
+++ b/contrib/osmo-sysmon.spec.in
@@ -0,0 +1,63 @@
+#
+# spec file for package osmo-sysmon
+#
+# Copyright (c) 2018, Martin Hauke <mardnh(a)gmx.de>
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+Name: osmo-sysmon
+Version: @VERSION@
+Release: 0
+Summary: Osmocom System Monitor
+License: GPL-2.0-or-later
+Group: Productivity/Telephony/Utilities
+URL:
https://gitea.osmocom.org/osmocom/osmo-sysmon
+Source: %{name}-%{version}.tar.xz
+BuildRequires: autoconf-archive
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: pkgconfig
+BuildRequires: pkgconfig(libmnl)
+BuildRequires: pkgconfig(libosmocore) >= 0.11.0
+BuildRequires: pkgconfig(libosmoctrl) >= 0.11.0
+BuildRequires: pkgconfig(libosmogsm) >= 0.11.0
+BuildRequires: pkgconfig(libosmovty) >= 0.11.0
+BuildRequires: pkgconfig(libosmo-netif) >= 0.4.0
+BuildRequires: pkgconfig(liboping) >= 1.9.0.
+
+%description
+Osmocom System Monitor.
+
+%prep
+%setup -q
+
+%build
+echo "%{version}" >.tarball-version
+autoreconf -fiv
+%configure \
+ --docdir=%{_docdir}/%{name} \
+ --with-systemdsystemunitdir=%{_unitdir}
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%files
+%license COPYING
+%dir %{_docdir}/%{name}
+%dir %{_docdir}/%{name}/examples
+%dir %{_docdir}/%{name}/examples/%{name}
+%{_docdir}/%{name}/examples/%{name}/osmo-sysmon.cfg
+%{_bindir}/osmo-ctrl-client
+%{_bindir}/osmo-sysmon
+%dir %{_sysconfdir}/osmocom
+%config(noreplace) %{_sysconfdir}/osmocom/osmo-sysmon.cfg
+
+%changelog
--
To view, visit
https://gerrit.osmocom.org/c/osmo-sysmon/+/30039
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-sysmon
Gerrit-Branch: master
Gerrit-Change-Id: I223bd1f20ad1710d4ce6ea5f170245ee8c1da46b
Gerrit-Change-Number: 30039
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange