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

75 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package dynamips
#
# 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.
# norootforbuild
%define pkg_extraver RC2
Name: dynamips
Summary: Cisco router Emulator
Group: Productivity/Networking/Other
Version: 0.2.8.RC2
Url: http://www.ipflow.utc.fr/
%define realversion 0.2.8
Release: 1
License: GPL
Packager: Andrea Florio <andrea@opensuse.org>
Vendor: openSUSE-Education
BuildRequires: libelf-devel libpcap-devel
Source: %{name}-%{realversion}-%{pkg_extraver}.tar.bz2
Patch0: dynamips-0.2.8-RC2-make.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Dynamips emulates Cisco 7200/3600/3725/3745/2600/1700 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. For a Command Line
Interface for dynamips see dynagen or gns3 package.
%prep
%setup -q -n %{name}-%{realversion}-%{pkg_extraver}
%patch0
%ifarch x86_64
%{__sed} -i -e 's@=x86@=amd64@g' Makefile
%endif
%build
CFLAGS="%{optflags} -I/usr/include/libelf -fno-strict-aliasing"
CXXFLAGS="%{optflags} -I/usr/include/libelf -fno-strict-aliasing"
%if 0%{?suse_version} > 1000
CFLAGS="$CFLAGS -fstack-protector"
CXXFLAGS="$CXXFLAGS -fstack-protector"
%endif
export CFLAGS
export CXXFLAGS
%{__make} %{?jobs:-j%{jobs}}
%install
%{makeinstall}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/dynamips
%{_bindir}/nvram_export
%{_mandir}/man?/*.?.gz
%changelog