2011-09-16 15:11:10 +02:00
|
|
|
#
|
|
|
|
# spec file for package dynamips
|
|
|
|
#
|
2014-05-11 17:08:29 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-09-16 15:11:10 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-09-22 17:39:15 +02:00
|
|
|
|
2011-09-16 15:11:10 +02:00
|
|
|
Name: dynamips
|
2016-03-25 23:10:00 +01:00
|
|
|
Version: 0.2.16
|
2012-07-26 17:27:42 +02:00
|
|
|
Release: 0
|
2008-09-22 17:39:15 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-11-30 15:15:54 +01:00
|
|
|
BuildRequires: cmake
|
2014-05-11 17:08:29 +02:00
|
|
|
BuildRequires: dos2unix
|
2014-05-11 20:16:05 +02:00
|
|
|
BuildRequires: libelf-devel
|
2012-07-26 17:27:42 +02:00
|
|
|
BuildRequires: libpcap-devel
|
2011-09-16 15:11:10 +02:00
|
|
|
Url: http://www.gns3.net
|
2011-04-11 16:59:47 +02:00
|
|
|
%ifarch x86_64
|
2014-02-19 19:16:17 +01:00
|
|
|
%if %{undefined fedora}
|
2014-02-19 19:35:22 +01:00
|
|
|
BuildRequires: glibc-32bit
|
2014-05-11 17:08:29 +02:00
|
|
|
BuildRequires: glibc-devel-32bit
|
2014-02-19 19:16:17 +01:00
|
|
|
%endif
|
2011-04-11 16:59:47 +02:00
|
|
|
%endif
|
2014-07-11 11:51:14 +02:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
2010-06-28 07:30:33 +02:00
|
|
|
Summary: Cisco router Emulator
|
2012-07-26 17:27:42 +02:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Emulators/Other
|
2008-09-22 17:39:15 +02:00
|
|
|
|
|
|
|
%description
|
2011-04-11 16:59:47 +02:00
|
|
|
Cisco Router Emulator supported by GNS3 Community
|
2008-09-22 17:39:15 +02:00
|
|
|
|
2011-04-11 17:02:09 +02:00
|
|
|
Dynamips emulates Cisco 7200/3600/3725/3745/2691 Routers on a traditional PC.
|
|
|
|
You can use dynamips to create labs. It uses IOS Images (which are not part
|
|
|
|
of this package). Of course, this emulator cannot replace a real router. It is
|
|
|
|
simply a complementary tool to real labs for administrators of Cisco networks
|
|
|
|
or people wanting to pass their CCNA/CCNP/CCIE exams.
|
|
|
|
|
2008-09-22 17:39:15 +02:00
|
|
|
%prep
|
2014-04-01 11:53:04 +02:00
|
|
|
%setup -q
|
2008-09-22 17:39:15 +02:00
|
|
|
|
|
|
|
%build
|
2014-07-11 11:48:15 +02:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
|
|
|
|
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;
|
2014-02-19 19:35:22 +01:00
|
|
|
%ifarch x86_64
|
2014-07-11 11:48:15 +02:00
|
|
|
cmake -DYNAMIPS_ARCH=amd64 -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} ..
|
|
|
|
%else
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} ..
|
2014-02-19 19:35:22 +01:00
|
|
|
%endif
|
2014-07-11 11:48:15 +02:00
|
|
|
%__make %{?_smp_mflags}
|
2008-09-22 17:39:15 +02:00
|
|
|
|
|
|
|
%install
|
2014-07-11 11:48:15 +02:00
|
|
|
cd build
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
cd ..
|
2016-03-25 23:10:00 +01:00
|
|
|
dos2unix COPYING README.md README.hypervisor TODO
|
2008-09-22 17:39:15 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-07-11 11:48:15 +02:00
|
|
|
%{_bindir}/%{name}
|
2008-09-22 17:39:15 +02:00
|
|
|
%{_bindir}/nvram_export
|
2013-11-12 03:13:05 +01:00
|
|
|
%{_mandir}/man*/*
|
2014-07-11 11:48:15 +02:00
|
|
|
%{_datadir}/doc/%{name}
|
2011-09-16 15:11:10 +02:00
|
|
|
|
|
|
|
%changelog
|