SHA256
1
0
forked from pool/dynamips
dynamips/dynamips.spec

81 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package dynamips
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: dynamips
Version: 0.2.10
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libelf-devel
BuildRequires: libpcap-devel
BuildRequires: libuuid-devel
BuildRequires: unzip
Url: http://www.gns3.net
%ifarch x86_64
BuildRequires: glibc-devel-32bit
%endif
Source: %{name}-%{version}-source.zip
Summary: Cisco router Emulator
License: GPL-2.0+
Group: System/Emulators/Other
%description
Cisco Router Emulator supported by GNS3 Community
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.
%prep
%setup -q -n %{name}-%{version}-source
%build
CFLAGS="%{optflags} -I/usr/include/libelf -fno-strict-aliasing"
CXXFLAGS="%{optflags} -I/usr/include/libelf -fno-strict-aliasing"
CFLAGS="$CFLAGS -fstack-protector"
CXXFLAGS="$CXXFLAGS -fstack-protector"
export CFLAGS
export CXXFLAGS
%ifarch x86_64
%{__make} DYNAMIPS_ARCH=amd64
%else
%{__make}
%endif
%install
%ifarch x86_64
%{__make} DYNAMIPS_ARCH=amd64 install DESTDIR=%{buildroot}/usr mandir=%{_mandir} bindir=%{_bindir} prefix=/usr
%else
%{__make} install DESTDIR=%{buildroot}/usr mandir=%{_mandir} bindir=%{_bindir}
%endif
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING README README.hypervisor TODO
%{_bindir}/dynamips
%{_bindir}/nvram_export
%{_mandir}/man*/*
%changelog