add spec.in file for RPM building
Change-Id: I7942b715a367f71b3fe74805f43dc45701983de8
This commit is contained in:
parent
c4c7dd68bd
commit
e051427187
|
@ -10,7 +10,7 @@ SUBDIRS = \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
BUILT_SOURCES = $(top_srcdir)/.version
|
BUILT_SOURCES = $(top_srcdir)/.version
|
||||||
EXTRA_DIST = git-version-gen .version
|
EXTRA_DIST = git-version-gen .version contrib/osmo-uecups.spec.in
|
||||||
|
|
||||||
@RELMAKE@
|
@RELMAKE@
|
||||||
|
|
||||||
|
|
|
@ -109,4 +109,5 @@ AC_OUTPUT(
|
||||||
daemon/Makefile
|
daemon/Makefile
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
doc/examples/Makefile
|
doc/examples/Makefile
|
||||||
|
contrib/osmo-uecups.spec
|
||||||
)
|
)
|
||||||
|
|
|
@ -0,0 +1,83 @@
|
||||||
|
#
|
||||||
|
# spec file for package osmo-uecups
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020, Martin Hauke <mardnh@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-uecups
|
||||||
|
Version: @VERSION@
|
||||||
|
Release: 0
|
||||||
|
Summary: OsmoUECUPS: UE/MME/SGW side GTP user plane daemon with control plane separation
|
||||||
|
License: GPL-2.0-or-later
|
||||||
|
Group: Productivity/Telephony/Utilities
|
||||||
|
URL: https://osmocom.org/projects/osmo-uecups
|
||||||
|
Source: %{name}-%{version}.tar.xz
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: autoconf-archive
|
||||||
|
BuildRequires: automake
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: pkgconfig(libosmocore) >= 1.1.0
|
||||||
|
BuildRequires: pkgconfig(libosmovty) >= 1.1.0
|
||||||
|
BuildRequires: pkgconfig(libosmo-netif)
|
||||||
|
BuildRequires: pkgconfig(jansson)
|
||||||
|
BuildRequires: pkgconfig(libnl-route-3.0)
|
||||||
|
BuildRequires: lksctp-tools-devel
|
||||||
|
#BuildRequires: systemd-rpm-macros
|
||||||
|
|
||||||
|
%description
|
||||||
|
OsmoUECUPS: UE/MME/SGW side GTP user plane daemon with control plane
|
||||||
|
separation.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
echo "%{version}" >.tarball-version
|
||||||
|
autoreconf -fiv
|
||||||
|
%configure \
|
||||||
|
--docdir="%{_docdir}/%{name}" \
|
||||||
|
--with-systemdsystemunitdir=%{_unitdir}
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
### FIXME - no checks atm
|
||||||
|
#make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
|
||||||
|
|
||||||
|
### FIXME - no service file atm
|
||||||
|
#%%preun
|
||||||
|
#%%service_del_preun %{name}.service
|
||||||
|
#%
|
||||||
|
#%%postun
|
||||||
|
#%%service_del_postun %{name}.service
|
||||||
|
#%
|
||||||
|
#%%pre
|
||||||
|
#%%service_add_pre %{name}.service
|
||||||
|
#%
|
||||||
|
#%%post
|
||||||
|
#%%service_add_post %{name}.service
|
||||||
|
|
||||||
|
%files
|
||||||
|
### FIXME - no licence files included atm
|
||||||
|
#%%license XXX
|
||||||
|
%doc README.md
|
||||||
|
%dir %{_docdir}/%{name}
|
||||||
|
%dir %{_docdir}/%{name}/examples
|
||||||
|
%{_docdir}/%{name}/examples/osmo-uecups-daemon.cfg
|
||||||
|
%{_bindir}/osmo-uecups-daemon
|
||||||
|
%dir %{_sysconfdir}/osmocom
|
||||||
|
%config(noreplace) %{_sysconfdir}/osmocom/osmo-uecups-daemon.cfg
|
||||||
|
#%%{_unitdir}/osmo-uecups.service
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue