]>
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 | |
08fcbf42 | 5 | Release: 0.2 |
fece4e71 | 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 | |
08fcbf42 | 10 | Source1: http://pfe.epitech.net/frs/download.php/599/%{name}-%{version}_documentation.pdf |
11 | # Source1-md5: 0c9cd5c97d0f19f4c00f4e3abd316c87 | |
12 | Source2: %{name}.desktop | |
13 | Source3: %{name}.png | |
fece4e71 | 14 | Patch0: %{name}-version.patch |
15 | URL: http://www.gns3.net/ | |
16 | BuildRequires: python >= 2.4 | |
17 | BuildRequires: rpmbuild(macros) >= 1.231 | |
08fcbf42 | 18 | Requires: dynagen |
19 | Requires: dynamips >= 0.2.8 | |
fece4e71 | 20 | Requires: python-PyQt4 |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | GNS-3 is a graphical network simulator that allows you to design | |
26 | complex network topologies. You may run simulations or configure | |
27 | devices ranging from simple workstations to powerful Cisco routers. It | |
28 | is based on NS-3, a discrete-event network simulator for Internet | |
29 | systems, and Dynamips, an IOS emulator which allows users to run IOS | |
30 | binary images from Cisco Systems. | |
31 | ||
32 | #%%description -l pl.UTF-8 | |
33 | ||
34 | %prep | |
35 | %setup -q | |
08fcbf42 | 36 | install %{SOURCE1} . |
fece4e71 | 37 | |
38 | %build | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | python ./setup.py install \ | |
44 | --root=$RPM_BUILD_ROOT | |
45 | ||
46 | # compile the scripts | |
47 | %{py_ocomp} $RPM_BUILD_ROOT%{py_sitescriptdir} | |
48 | ||
49 | # remove .py files, leave just compiled ones. | |
50 | %{py_postclean} | |
51 | ||
08fcbf42 | 52 | install -D %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
53 | install -D %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png | |
fece4e71 | 54 | install -D {docs/man,$RPM_BUILD_ROOT%{_mandir}/man1}/gns3.1 |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
08fcbf42 | 61 | %doc AUTHORS CHANGELOG README %{name}-%{version}_documentation.pdf |
fece4e71 | 62 | %attr(755,root,root) %{_bindir}/* |
63 | %dir %{py_sitescriptdir}/%{name} | |
64 | %dir %{py_sitescriptdir}/%{name}/Config | |
65 | %dir %{py_sitescriptdir}/%{name}/Dynagen | |
66 | %dir %{py_sitescriptdir}/%{name}/External | |
67 | %dir %{py_sitescriptdir}/%{name}/Globals | |
68 | %dir %{py_sitescriptdir}/%{name}/Langs | |
69 | %dir %{py_sitescriptdir}/%{name}/Link | |
70 | %dir %{py_sitescriptdir}/%{name}/Node | |
71 | %dir %{py_sitescriptdir}/%{name}/Ui/ConfigurationPages | |
72 | %dir %{py_sitescriptdir}/%{name}/Ui | |
73 | %{py_sitescriptdir}/%{name}/*.py[co] | |
74 | %{py_sitescriptdir}/%{name}/*/*.py[co] | |
75 | %{py_sitescriptdir}/%{name}/*/*/*.py[co] | |
76 | %{_mandir}/man1/gns3.1* | |
77 | %{_desktopdir}/%{name}.desktop | |
78 | %{_pixmapsdir}/%{name}.png | |
79 | %lang(de) %{py_sitescriptdir}/%{name}/Langs/Lang_de.qm | |
80 | %lang(en) %{py_sitescriptdir}/%{name}/Langs/Lang_en.qm | |
81 | %lang(fr) %{py_sitescriptdir}/%{name}/Langs/Lang_fr.qm |