SHA256
1
0
forked from pool/dynamips
dynamips/dynamips.spec
andrea florio 97ae306d03 Accepting request 71837 from home:babelworx:ldig:branches:Education
license update: GPL-2.0+
Always state version of license in spec file. Use syntax from spdx.org/licenses

OBS-URL: https://build.opensuse.org/request/show/71837
OBS-URL: https://build.opensuse.org/package/show/Education/dynamips?expand=0&rev=6
2011-06-02 09:48:27 +00:00

65 lines
1.7 KiB
RPMSpec

#norootforbuild
%define pkg_extraver RC3
Name: dynamips
Version: 0.2.8%{pkg_extraver}
Release: 1
License: GPL-2.0+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libuuid-devel libelf-devel libpcap-devel
URL: http://www.gns3.net
%ifarch x86_64
BuildRequires: glibc-devel-32bit
%endif
Source: %{name}-0.2.8-%{pkg_extraver}.tar.bz2
Group: System/Emulators/Other
Summary: Cisco router Emulator
Patch0: dynamips-0.2.8-%{pkg_extraver}-make.patch
%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}-0.2.8-%{pkg_extraver}
%patch0 -p1
%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} mandir=%{_mandir} bindir=%{_bindir}
%else
%{__make} install DESTDIR=%{buildroot} mandir=%{_mandir} bindir=%{_bindir}
%endif
chmod -x README.community
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README.community COPYING README README.hypervisor TODO
%{_bindir}/dynamips
%{_bindir}/nvram_export
%{_mandir}/man*/*.gz