2010-06-28 07:30:33 +02:00
|
|
|
#norootforbuild
|
2008-09-22 17:39:15 +02:00
|
|
|
|
|
|
|
%define pkg_extraver RC2
|
2010-06-28 07:30:33 +02:00
|
|
|
Name: dynamips
|
|
|
|
Version: 0.2.8
|
2008-09-22 17:39:15 +02:00
|
|
|
Release: 1
|
|
|
|
License: GPL
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-06-28 07:30:33 +02:00
|
|
|
BuildRequires: libelf-devel libpcap-devel
|
|
|
|
Source: %{name}-%{version}-%{pkg_extraver}.tar.bz2
|
|
|
|
Group: Emulators
|
|
|
|
Summary: Cisco router Emulator
|
|
|
|
Patch0: dynamips-0.2.8-RC2-make.patch
|
2008-09-22 17:39:15 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
|
2010-06-28 07:30:33 +02:00
|
|
|
Cisco Router Emulator
|
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
|
|
|
|
|
|
|
%setup -q -n %{name}-%{version}-%{pkg_extraver}
|
2008-09-22 17:39:15 +02:00
|
|
|
%patch0
|
2010-06-28 07:30:33 +02:00
|
|
|
|
2008-09-22 17:39:15 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
%{__sed} -i -e 's@=x86@=amd64@g' Makefile
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
2010-06-28 07:30:33 +02:00
|
|
|
|
2008-09-22 17:39:15 +02:00
|
|
|
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
|
2010-06-28 07:30:33 +02:00
|
|
|
|
2008-09-22 17:39:15 +02:00
|
|
|
export CFLAGS
|
|
|
|
export CXXFLAGS
|
2010-06-28 07:30:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
%{__make}
|
2008-09-22 17:39:15 +02:00
|
|
|
|
|
|
|
%install
|
2010-06-28 07:30:33 +02:00
|
|
|
|
|
|
|
%{__make} install DESTDIR=%{buildroot} mandir=%{_mandir} bindir=%{_bindir}
|
2008-09-22 17:39:15 +02:00
|
|
|
|
|
|
|
%clean
|
2010-06-28 07:30:33 +02:00
|
|
|
|
2008-09-22 17:39:15 +02:00
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/dynamips
|
|
|
|
%{_bindir}/nvram_export
|
|
|
|
%{_mandir}/man?/*.?.gz
|