blob: 6e7a77fbe3f3c231a1cd88b6b7134eecda13e829 [file] [log] [blame]
jjakodd2aa382003-07-06 21:29:53 +00001Summary: Open Source Gateway GPRS Support Node (GGSN)
2Name: @PACKAGE@
3Version: @VERSION@
4Release: 1
5URL: http://sourceforge.net/projects/ggsn/
6Source0: http://prdownloads.sourceforge.net/ggsn/%{name}-%{version}.tar.gz
7License: GPL
8Group: System Environment/Daemons
9BuildRoot: %{_tmppath}/%{name}-root
10
11%description
12OpenGGSN is a Gateway GPRS Support Node (GGSN). It is used by mobile
13operators as the interface between the Internet and the rest of the
14mobile network infrastructure. The project also provides an SGSN
15emulator suitable for GPRS core network testing.
16
17%prep
18%setup -q
19
20%build
21
22./configure --prefix=/usr --enable-static-exec
23
24make
25
26%install
27
28make install prefix=$RPM_BUILD_ROOT/usr
29strip $RPM_BUILD_ROOT/usr/bin/ggsn
30strip $RPM_BUILD_ROOT/usr/bin/sgsnemu
31
32#Copy ggsn init script in place
33mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
34install -m755 examples/ggsn.init \
35 $RPM_BUILD_ROOT/etc/rc.d/init.d/ggsn
36
37#Copy ggsn.conf in place
38install -m755 examples/ggsn.conf \
39 $RPM_BUILD_ROOT/etc/ggsn.conf
40
41#Copy gsn_restart file in place
42mkdir -p $RPM_BUILD_ROOT/var/lib/ggsn
43echo "0" > $RPM_BUILD_ROOT/var/lib/ggsn/gsn_restart
44
45
46%clean
47rm -rf $RPM_BUILD_ROOT
48make clean
49
50%post
51/sbin/chkconfig --add ggsn
52
53%files
54%defattr(-,root,root)
55
56/usr/bin/ggsn
57/usr/bin/sgsnemu
58/etc/rc.d/init.d/ggsn
59%dir /var/lib/ggsn
60/var/lib/ggsn/gsn_restart
61
62%doc AUTHORS ChangeLog COPYING INSTALL NEWS README
63%doc examples/ggsn.conf
64%doc examples/sgsnemu.conf
65%doc examples/ggsn.init
66%doc /usr/man/man8/ggsn.8.gz
67%doc /usr/man/man8/sgsnemu.8.gz
68
69%config /etc/ggsn.conf
70
71
72#/usr/lib/libgtp.a
73#/usr/lib/libgtp.la
74#/usr/lib/libgtp.so
75#/usr/lib/libgtp.so.0
76#/usr/lib/libgtp.so.0.0.0
77
78
79
80%changelog
81* Mon Jun 30 2003 <jj@openggsn.org>
82- Initial build.