]>
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 | |
08c073b2 | 5 | Release: 0.3 |
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 | |
08c073b2 | 14 | Patch0: %{name}-setup.patch |
fece4e71 | 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 | |
08c073b2 | 36 | %patch0 -p1 |
08fcbf42 | 37 | install %{SOURCE1} . |
fece4e71 | 38 | |
39 | %build | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | python ./setup.py install \ | |
45 | --root=$RPM_BUILD_ROOT | |
46 | ||
47 | # compile the scripts | |
08c073b2 | 48 | #{py_ocomp} $RPM_BUILD_ROOT%{py_sitescriptdir} |
fece4e71 | 49 | |
50 | # remove .py files, leave just compiled ones. | |
51 | %{py_postclean} | |
52 | ||
08fcbf42 | 53 | install -D %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
54 | install -D %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png | |
fece4e71 | 55 | install -D {docs/man,$RPM_BUILD_ROOT%{_mandir}/man1}/gns3.1 |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
08fcbf42 | 62 | %doc AUTHORS CHANGELOG README %{name}-%{version}_documentation.pdf |
fece4e71 | 63 | %attr(755,root,root) %{_bindir}/* |
64 | %dir %{py_sitescriptdir}/%{name} | |
65 | %dir %{py_sitescriptdir}/%{name}/Config | |
66 | %dir %{py_sitescriptdir}/%{name}/Dynagen | |
67 | %dir %{py_sitescriptdir}/%{name}/External | |
68 | %dir %{py_sitescriptdir}/%{name}/Globals | |
69 | %dir %{py_sitescriptdir}/%{name}/Langs | |
70 | %dir %{py_sitescriptdir}/%{name}/Link | |
71 | %dir %{py_sitescriptdir}/%{name}/Node | |
72 | %dir %{py_sitescriptdir}/%{name}/Ui/ConfigurationPages | |
73 | %dir %{py_sitescriptdir}/%{name}/Ui | |
74 | %{py_sitescriptdir}/%{name}/*.py[co] | |
75 | %{py_sitescriptdir}/%{name}/*/*.py[co] | |
76 | %{py_sitescriptdir}/%{name}/*/*/*.py[co] | |
08c073b2 | 77 | %{py_sitescriptdir}/%{name}/Dynagen/dynagen.ini |
78 | %{py_sitescriptdir}/%{name}/Dynagen/configspec | |
fece4e71 | 79 | %{_mandir}/man1/gns3.1* |
80 | %{_desktopdir}/%{name}.desktop | |
81 | %{_pixmapsdir}/%{name}.png | |
82 | %lang(de) %{py_sitescriptdir}/%{name}/Langs/Lang_de.qm | |
83 | %lang(en) %{py_sitescriptdir}/%{name}/Langs/Lang_en.qm | |
84 | %lang(fr) %{py_sitescriptdir}/%{name}/Langs/Lang_fr.qm |