2010-06-28 07:30:33 +02:00
|
|
|
#norootforbuild
|
2008-09-22 17:39:15 +02:00
|
|
|
|
2011-04-11 16:59:47 +02:00
|
|
|
%define pkg_extraver RC3
|
2010-06-28 07:30:33 +02:00
|
|
|
Name: dynamips
|
2011-04-11 16:59:47 +02:00
|
|
|
Version: 0.2.8%{pkg_extraver}
|
2008-09-22 17:39:15 +02:00
|
|
|
Release: 1
|
|
|
|
License: GPL
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-04-11 16:59:47 +02:00
|
|
|
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
|
2010-06-28 07:30:33 +02:00
|
|
|
Summary: Cisco router Emulator
|
2011-04-11 16:59:47 +02:00
|
|
|
Patch0: dynamips-0.2.8-%{pkg_extraver}-make.patch
|
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
|
|
|
|
2010-06-28 07:30:33 +02:00
|
|
|
%debug_package
|
2008-09-22 17:39:15 +02:00
|
|
|
%prep
|
2010-06-28 07:30:33 +02:00
|
|
|
|
2011-04-11 16:59:47 +02:00
|
|
|
%setup -q -n %{name}-0.2.8-%{pkg_extraver}
|
|
|
|
%patch0 -p1
|
2008-09-22 17:39:15 +02:00
|
|
|
|
|
|
|
%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
|
2010-06-28 07:30:33 +02:00
|
|
|
|
2011-04-11 16:59:47 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
%{__make} DYNAMIPS_ARCH=amd64
|
|
|
|
%else
|
2010-06-28 07:30:33 +02:00
|
|
|
%{__make}
|
2011-04-11 16:59:47 +02:00
|
|
|
%endif
|
2008-09-22 17:39:15 +02:00
|
|
|
|
|
|
|
%install
|
2010-06-28 07:30:33 +02:00
|
|
|
|
2011-04-11 16:59:47 +02:00
|
|
|
%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
|
2008-09-22 17:39:15 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-04-11 16:59:47 +02:00
|
|
|
%doc README.community COPYING README README.hypervisor TODO
|
2008-09-22 17:39:15 +02:00
|
|
|
%{_bindir}/dynamips
|
|
|
|
%{_bindir}/nvram_export
|
2011-04-11 16:59:47 +02:00
|
|
|
%{_mandir}/man*/*.gz
|