Setting tag planetlab-umts-tools-0.6-5
[planetlab-umts-tools.git] / backend.spec
1 %define module_taglevel_varname release
2
3 %define name planetlab-umts-tools-backend
4 %define version 0.6
5 %define release 5
6
7 Summary: Umts-tools for PlanetLab - backend part
8 Name: %{name}
9 Version: %{version}
10 Release: %{release}
11 Source0: %{name}-%{version}.tar.gz
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
13 BuildArch: noarch
14 Vendor: Universita Federico II di Napoli for Onelab
15 Group: Utilities
16 URL: http://www.unina.it
17 License: GPL
18 Prefix: %{_prefix}
19
20 Requires: vsys
21
22 %description
23 Backend part of a program that allows users of a slice to control a PPP connection over a 3G umts/hsdpa connect card and set the route entries required to use it.
24
25 %prep
26 %setup -q
27
28 %build
29 rm -rf $RPM_BUILD_ROOT
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 mkdir -p $RPM_BUILD_ROOT
34 make clean
35 make install prefix=$RPM_BUILD_ROOT
36
37 %clean
38
39
40 %post 
41 /sbin/udevadm control reload_rules
42 sleep 1
43 /sbin/udevtrigger
44 #/bin/sleep 2
45 #/sbin/chkconfig umts on
46 /sbin/service vsys restart
47 #/etc/rc.d/init.d/umts start
48
49 %preun
50 #/sbin/chkconfig umts off
51
52 %files
53 /vsys/umtsd
54 /usr/lib/umts_functions
55 /etc/udev/rules.d/96-umts-tools.rules
56 #/etc/rc.d/init.d/umts
57
58
59 %defattr(-,root,root)
60 %doc AUTHORS TODO
61
62 %changelog
63 * Tue Jul 06 2010 Baris Metin <Talip-Baris.Metin@sophia.inria.fr> - planetlab-umts-tools-0.6-5
64 - cosmetic changes from Giovanni.
65
66 * Tue Sep 30 2008 Giovanni Di Stasi <giovanni.distasi@unina.it> -
67 - initial revision