2017-12-28 01:35:20 +01:00
|
|
|
#
|
|
|
|
# spec file for package osmo-ggsn
|
|
|
|
#
|
2021-03-14 22:05:40 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2017-12-28 01:35:20 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-02-05 23:19:09 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-12-28 01:35:20 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-08-15 07:00:30 +02:00
|
|
|
%define _lto_cflags %nil
|
2019-08-14 19:16:01 +02:00
|
|
|
|
2017-12-28 01:35:20 +01:00
|
|
|
Name: osmo-ggsn
|
2020-01-07 15:03:56 +01:00
|
|
|
%define lname libgtp6
|
2021-03-14 22:05:40 +01:00
|
|
|
Version: 1.7.1
|
2017-12-28 01:35:20 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: GPRS Support Node
|
2018-12-11 14:21:21 +01:00
|
|
|
License: GPL-2.0-only AND LGPL-2.1-or-later
|
2017-12-28 01:35:20 +01:00
|
|
|
Group: Productivity/Telephony/Servers
|
2018-01-05 13:04:56 +01:00
|
|
|
URL: https://osmocom.org/projects/openggsn/wiki/OsmoGGSN
|
2021-03-14 22:05:40 +01:00
|
|
|
Source: https://github.com/osmocom/osmo-ggsn/archive/%version.tar.gz
|
2019-02-05 23:19:09 +01:00
|
|
|
Patch1: build-fixes.diff
|
2017-12-28 01:35:20 +01:00
|
|
|
BuildRequires: libtool >= 2
|
2018-01-05 13:04:56 +01:00
|
|
|
BuildRequires: pkgconfig >= 0.20
|
2017-12-28 01:35:20 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: xz
|
2018-12-11 14:21:21 +01:00
|
|
|
BuildRequires: pkgconfig(libgtpnl) >= 1.2.0
|
2017-12-28 01:35:20 +01:00
|
|
|
BuildRequires: pkgconfig(libmnl) >= 1.0.3
|
2021-03-14 22:05:40 +01:00
|
|
|
BuildRequires: pkgconfig(libosmocore) >= 1.5.0
|
|
|
|
BuildRequires: pkgconfig(libosmoctrl) >= 1.5.0
|
2017-12-28 01:35:20 +01:00
|
|
|
BuildRequires: pkgconfig(libosmogsm)
|
2021-03-14 22:05:40 +01:00
|
|
|
BuildRequires: pkgconfig(libosmovty) >= 1.5.0
|
2017-12-28 01:35:20 +01:00
|
|
|
Obsoletes: openggsn
|
|
|
|
|
|
|
|
%description
|
|
|
|
Osmo-GGSN is a C-language implementation of a GGSN (Gateway GPRS
|
|
|
|
Support Node), a core network element of ETSI/3GPP cellular networks
|
|
|
|
such as GPRS, EDGE, UMTS or HSPA.
|
|
|
|
|
2018-12-11 14:21:21 +01:00
|
|
|
%package -n %lname
|
2017-12-28 01:35:20 +01:00
|
|
|
Summary: Library implementing GTP between SGSN and GGSN
|
2018-12-11 14:21:21 +01:00
|
|
|
License: GPL-2.0-only
|
2017-12-28 01:35:20 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2018-12-11 14:21:21 +01:00
|
|
|
%description -n %lname
|
2017-12-28 01:35:20 +01:00
|
|
|
libgtp implements the GPRS Tunneling Protocol between SGSN and GGSN.
|
|
|
|
|
|
|
|
%package -n libgtp-devel
|
|
|
|
Summary: Development files for the GTP library
|
2018-12-11 14:21:21 +01:00
|
|
|
License: GPL-2.0-only
|
2017-12-28 01:35:20 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-12-11 14:21:21 +01:00
|
|
|
Requires: %lname = %version
|
2017-12-28 01:35:20 +01:00
|
|
|
|
|
|
|
%description -n libgtp-devel
|
|
|
|
libgtp implements the GPRS Tunneling Protocol between SGSN and GGSN.
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of libgtp.
|
|
|
|
|
|
|
|
%prep
|
2020-09-06 15:40:28 +02:00
|
|
|
%autosetup -p1
|
2020-01-07 15:03:56 +01:00
|
|
|
sed -i 's|/usr/bin/osmo-ggsn|/usr/sbin/osmo-ggsn|g' contrib/systemd/osmo-ggsn.service
|
2017-12-28 01:35:20 +01:00
|
|
|
|
|
|
|
%build
|
2018-01-05 13:06:05 +01:00
|
|
|
echo "%version" >.tarball-version
|
2017-12-28 01:35:20 +01:00
|
|
|
autoreconf -fi
|
2020-09-06 15:40:28 +02:00
|
|
|
# bugzilla.opensuse.org/795968 for rationale
|
|
|
|
%configure --includedir="%_includedir/%name" \
|
|
|
|
--disable-static --docdir="%_docdir/%name" \
|
|
|
|
--with-systemdsystemunitdir="%_unitdir"
|
|
|
|
%make_build
|
2017-12-28 01:35:20 +01:00
|
|
|
|
|
|
|
%install
|
2018-01-05 20:01:46 +01:00
|
|
|
b="%buildroot"
|
2017-12-28 01:35:20 +01:00
|
|
|
%make_install
|
2019-08-15 07:00:30 +02:00
|
|
|
find "$b" -type f -name "*.la" -delete -print
|
2018-01-05 20:01:46 +01:00
|
|
|
install -d "$b/%_sbindir"
|
|
|
|
ln -s "%_sbindir/service" "$b/%_sbindir/rc%name"
|
|
|
|
install -d "$b/%_sysconfdir/osmocom"
|
|
|
|
install -m 0644 doc/examples/osmo-ggsn.cfg "$b/%_sysconfdir/osmocom/osmo-ggsn.cfg"
|
|
|
|
install -m 0644 doc/examples/sgsnemu.conf "$b/%_sysconfdir/osmocom/sgsnemu.conf"
|
2017-12-28 01:35:20 +01:00
|
|
|
|
|
|
|
%pre
|
2018-01-05 13:06:05 +01:00
|
|
|
%service_add_pre %name.service
|
2017-12-28 01:35:20 +01:00
|
|
|
|
|
|
|
%post
|
2018-01-05 13:06:05 +01:00
|
|
|
%service_add_post %name.service
|
2017-12-28 01:35:20 +01:00
|
|
|
|
|
|
|
%preun
|
2018-01-05 13:06:05 +01:00
|
|
|
%service_del_preun %name.service
|
2017-12-28 01:35:20 +01:00
|
|
|
|
|
|
|
%postun
|
2018-01-05 13:06:05 +01:00
|
|
|
%service_del_postun %name.service
|
2017-12-28 01:35:20 +01:00
|
|
|
|
2018-12-11 14:21:21 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2017-12-28 01:35:20 +01:00
|
|
|
|
|
|
|
%files
|
2019-02-05 22:42:33 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS README.md
|
2019-02-05 23:19:09 +01:00
|
|
|
%_sbindir/osmo-ggsn
|
|
|
|
%_sbindir/sgsnemu
|
|
|
|
%_mandir/man8/osmo-ggsn.8*
|
|
|
|
%_mandir/man8/sgsnemu.8*
|
2018-01-05 13:06:05 +01:00
|
|
|
%_unitdir/%name.service
|
|
|
|
%_sbindir/rc%name
|
|
|
|
%dir %_docdir/%name/examples
|
|
|
|
%_docdir/%name/examples/osmo-ggsn.cfg
|
|
|
|
%dir %_sysconfdir/osmocom
|
|
|
|
%config(noreplace) %_sysconfdir/osmocom/osmo-ggsn.cfg
|
|
|
|
%config(noreplace) %_sysconfdir/osmocom/sgsnemu.conf
|
2018-01-05 13:04:56 +01:00
|
|
|
|
2018-12-11 14:21:21 +01:00
|
|
|
%files -n %lname
|
2020-01-07 15:03:56 +01:00
|
|
|
%_libdir/libgtp.so.6*
|
2017-12-28 01:35:20 +01:00
|
|
|
|
|
|
|
%files -n libgtp-devel
|
2018-01-05 13:06:05 +01:00
|
|
|
%_includedir/%name/
|
|
|
|
%_libdir/libgtp.so
|
|
|
|
%_libdir/pkgconfig/libgtp.pc
|
2017-12-28 01:35:20 +01:00
|
|
|
|
|
|
|
%changelog
|