# # spec file for package osmo-ggsn # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: osmo-ggsn Version: 1.0.0.30 Release: 0 Summary: GPRS Support Node License: GPL-2.0 and LGPL-2.1+ Group: Productivity/Telephony/Servers Url: http://sourceforge.net/projects/ggsn/ Source: %name-%version.tar.xz Source2: osmo-ggsn.service Patch1: build-fixes.diff BuildRequires: libtool >= 2 BuildRequires: pkg-config >= 0.20 BuildRequires: systemd-rpm-macros BuildRequires: xz BuildRequires: pkgconfig(libgtpnl) >= 1.0.0 BuildRequires: pkgconfig(libmnl) >= 1.0.3 BuildRequires: pkgconfig(libosmocore) >= 0.6.4 BuildRequires: pkgconfig(libosmoctrl) BuildRequires: pkgconfig(libosmogsm) BuildRequires: pkgconfig(libosmovty) >= 0.3.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build Obsoletes: openggsn %{?systemd_requires} %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. %package -n libgtp1 Summary: Library implementing GTP between SGSN and GGSN License: GPL-2.0 Group: System/Libraries %description -n libgtp1 libgtp implements the GPRS Tunneling Protocol between SGSN and GGSN. %package -n libgtp-devel Summary: Development files for the GTP library License: GPL-2.0 Group: Development/Libraries/C and C++ Requires: libgtp1 = %version %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 %setup -q %patch -P 1 -p1 %build autoreconf -fi %configure --disable-static --includedir="%_includedir/%name" \ --enable-gtp-linux make %{?_smp_mflags} V=1 %install b="%buildroot" %make_install rm -f "$b/%_libdir"/*.la mkdir -p "$b/%_localstatedir/lib/ggsn" echo 0 >"$b/%_localstatedir/lib/ggsn/gsn_restart" install -Dm0644 "%{S:2}" "$b/%_unitdir/ggsn.service" %pre %service_add_pre ggsn.service %post %service_add_post ggsn.service %preun %service_del_preun ggsn.service %postun %service_del_postun ggsn.service %post -n libgtp1 -p /sbin/ldconfig %postun -n libgtp1 -p /sbin/ldconfig %files %defattr(-,root,root) %doc COPYING NEWS README.md examples/ggsn.conf examples/sgsnemu.conf %_sbindir/ggsn %_sbindir/sgsnemu %_mandir/man8/*.8* %_localstatedir/lib/ggsn/ %_unitdir/ggsn.service %files -n libgtp1 %defattr(-,root,root) %_libdir/libgtp.so.1* %files -n libgtp-devel %defattr(-,root,root) %_includedir/%name/ %_libdir/libgtp.so %_libdir/pkgconfig/*.pc %changelog