Sisyphus repository
Last update: 29 november 2020 | SRPMs: 17750 | Visits: 19714070
en ru br
ALT Linux repos
5.0: 0.5-alt1
4.1: 0.4.1-alt1

Group :: File tools
RPM: gns3

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define orig_name GNS3
Name: gns3
Version: 0.5
Release: alt1

Summary: GNS-3  is a graphical network simulator

License: GPL
Group: File tools
Url: http://www.gns3.net/

Packager: Dmitry Lebkov <dlebkov at altlinux.ru>

Source0: http://downloads.sourceforge.net/gns-3/%orig_name-%version-src.tar.bz2
Source1: GNS3-icons.tar.gz
Source2: gns3.desktop
Source3: gns3-0.4.1-documentation.pdf

BuildArch: noarch
Requires: python-module-sip dynamips

# Automatically added by buildreq on Sat Mar 22 2008

BuildRequires: python-devel


%description
GNS3 is a graphical network simulator that allows you to design complex network
topologies. You may run simulations or configure devices ranging from simple
workstations to powerful Cisco routers. It is based on Dynamips, an IOS emulator
which allows users to run IOS binary images from Cisco Systems and Pemu, an
PIX firewall emulator based on Qemu.

%prep
%setup -q -n %orig_name-%version-src

%build
%__python setup.py build

%install
%__python setup.py install --root %buildroot
%__python setup.py install -O1 --skip-build --root %buildroot
mkdir -p %buildroot/%_man1dir
install -m 0644 docs/man/gns3.1 %buildroot/%_man1dir

#desktop

install -d %buildroot/%_desktopdir
install -m 0644 %SOURCE2 %buildroot/%_desktopdir/%name.desktop

# icons

install -d %buildroot/%_miconsdir
install -d %buildroot/%_niconsdir
install -d %buildroot/%_liconsdir
tar xvzf %SOURCE1 -C %buildroot/%_iconsdir
mv %buildroot/%_iconsdir/mini/*.xpm %buildroot/%_miconsdir
rmdir %buildroot/%_iconsdir/mini
mv %buildroot/%_iconsdir/*.xpm %buildroot/%_niconsdir
mv %buildroot/%_iconsdir/large/*.xpm %buildroot/%_liconsdir
rmdir %buildroot/%_iconsdir/large

#docs

install -d %buildroot/%_docdir/%name-%version
install -m 0644 %SOURCE3 %buildroot/%_docdir/%name-%version/
for f in  AUTHORS CHANGELOG README TODO; do
install -m 0644 $f %buildroot/%_docdir/%name-%version/
done

%postun -n gns3
%clean_menus


%post -n gns3
%update_menus


%files
%dir %_docdir/%name-%version
%_docdir/%name-%version/*
%_bindir/gns3

%dir %python_sitelibdir/GNS3
%dir %python_sitelibdir/GNS3/Config
%dir %python_sitelibdir/GNS3/Defaults
%dir %python_sitelibdir/GNS3/Dynagen
%dir %python_sitelibdir/GNS3/External
%dir %python_sitelibdir/GNS3/Globals
%dir %python_sitelibdir/GNS3/Langs
%dir %python_sitelibdir/GNS3/Link
%dir %python_sitelibdir/GNS3/Node
%dir %python_sitelibdir/GNS3/Ui
%dir %python_sitelibdir/GNS3/Ui/ConfigurationPages

%python_sitelibdir/GNS3/*.py
%python_sitelibdir/GNS3/*/*.py
%python_sitelibdir/GNS3/*/*/*.py
%python_sitelibdir/GNS3/*.pyc
%python_sitelibdir/GNS3/*/*.pyc
%python_sitelibdir/GNS3/*/*/*.pyc

%python_sitelibdir/GNS3/Dynagen/configspec
%python_sitelibdir/GNS3/Langs/*.qm
%python_sitelibdir/GNS3-*.egg-info

%ghost %python_sitelibdir/GNS3/*.pyo
%ghost %python_sitelibdir/GNS3/*/*.pyo
%ghost %python_sitelibdir/GNS3/*/*/*.pyo

%_man1dir/*
%_desktopdir/%name.desktop
%_miconsdir/*.xpm
%_niconsdir/*.xpm
%_liconsdir/*.xpm

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin