]>
Commit | Line | Data |
---|---|---|
fece4e71 | 1 | Summary: A graphical frontend for dynamips Cisco 7200 Simulator |
2 | #Summary(pl.UTF-8): - | |
3 | Name: GNS3 | |
4 | Version: 0.3.2 | |
5 | Release: 0.1 | |
6 | License: GPL v2 | |
7 | Group: X11/Applications/Networking | |
8 | Source0: http://dl.sourceforge.net/gns-3/%{name}-%{version}-src.tar.bz2 | |
9 | # Source0-md5: 795d6082beaab80755f54890630e96a1 | |
10 | Source1: %{name}.desktop | |
11 | Source2: %{name}.png | |
12 | Patch0: %{name}-version.patch | |
13 | URL: http://www.gns3.net/ | |
14 | BuildRequires: python >= 2.4 | |
15 | BuildRequires: rpmbuild(macros) >= 1.231 | |
16 | Requires: python-PyQt4 | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | GNS-3 is a graphical network simulator that allows you to design | |
22 | complex network topologies. You may run simulations or configure | |
23 | devices ranging from simple workstations to powerful Cisco routers. It | |
24 | is based on NS-3, a discrete-event network simulator for Internet | |
25 | systems, and Dynamips, an IOS emulator which allows users to run IOS | |
26 | binary images from Cisco Systems. | |
27 | ||
28 | #%%description -l pl.UTF-8 | |
29 | ||
30 | %prep | |
31 | %setup -q | |
32 | ||
33 | %build | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | python ./setup.py install \ | |
39 | --root=$RPM_BUILD_ROOT | |
40 | ||
41 | # compile the scripts | |
42 | %{py_ocomp} $RPM_BUILD_ROOT%{py_sitescriptdir} | |
43 | ||
44 | # remove .py files, leave just compiled ones. | |
45 | %{py_postclean} | |
46 | ||
47 | install -D %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
48 | install -D %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png | |
49 | install -D {docs/man,$RPM_BUILD_ROOT%{_mandir}/man1}/gns3.1 | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc AUTHORS CHANGELOG README | |
57 | %attr(755,root,root) %{_bindir}/* | |
58 | %dir %{py_sitescriptdir}/%{name} | |
59 | %dir %{py_sitescriptdir}/%{name}/Config | |
60 | %dir %{py_sitescriptdir}/%{name}/Dynagen | |
61 | %dir %{py_sitescriptdir}/%{name}/External | |
62 | %dir %{py_sitescriptdir}/%{name}/Globals | |
63 | %dir %{py_sitescriptdir}/%{name}/Langs | |
64 | %dir %{py_sitescriptdir}/%{name}/Link | |
65 | %dir %{py_sitescriptdir}/%{name}/Node | |
66 | %dir %{py_sitescriptdir}/%{name}/Ui/ConfigurationPages | |
67 | %dir %{py_sitescriptdir}/%{name}/Ui | |
68 | %{py_sitescriptdir}/%{name}/*.py[co] | |
69 | %{py_sitescriptdir}/%{name}/*/*.py[co] | |
70 | %{py_sitescriptdir}/%{name}/*/*/*.py[co] | |
71 | %{_mandir}/man1/gns3.1* | |
72 | %{_desktopdir}/%{name}.desktop | |
73 | %{_pixmapsdir}/%{name}.png | |
74 | %lang(de) %{py_sitescriptdir}/%{name}/Langs/Lang_de.qm | |
75 | %lang(en) %{py_sitescriptdir}/%{name}/Langs/Lang_en.qm | |
76 | %lang(fr) %{py_sitescriptdir}/%{name}/Langs/Lang_fr.qm |