]>
Commit | Line | Data |
---|---|---|
bb353f27 | 1 | Summary: Cisco 7200 Simulator |
acae03fd | 2 | Summary(pl.UTF-8): Symulator Cisco 7200 |
bb353f27 | 3 | Name: dynamips |
5ee2ba72 | 4 | Version: 0.2.5 |
bb353f27 | 5 | Release: 0.1 |
6 | License: GPL | |
7 | Group: Applications/Emulators | |
8 | Source0: http://www.ipflow.utc.fr/dynamips/%{name}-%{version}.tar.gz | |
5ee2ba72 | 9 | # Source0-md5: b87ef442f7537373ccbe69c3f6dca301 |
10 | Patch0: %{name}-Makefile.patch | |
bb353f27 | 11 | URL: http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator |
12 | BuildRequires: elfutils-devel | |
13 | BuildRequires: flex | |
14 | BuildRequires: libpcap-devel | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | Cisco 7200 Simulator. | |
19 | ||
c5d05096 | 20 | %description -l pl.UTF-8 |
912df868 | 21 | Symulator Cisco 7200. |
bb353f27 | 22 | |
23 | %prep | |
24 | %setup -q | |
5ee2ba72 | 25 | %patch0 -p0 |
bb353f27 | 26 | |
27 | %build | |
28 | %ifarch %{x8664} | |
29 | ARCH=amd64 | |
30 | %else | |
31 | %ifarch %{ix86} | |
32 | ARCH=x86 | |
33 | %else | |
34 | ARCH=nojit | |
35 | %endif | |
36 | %endif | |
37 | ||
38 | %{__make} \ | |
39 | DYNAMIPS_ARCH=$ARCH \ | |
40 | CC="%{__cc}" \ | |
912df868 | 41 | LD="%{__ld}" |
bb353f27 | 42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir}} | |
46 | ||
47 | install dynamips $RPM_BUILD_ROOT%{_bindir} | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc README ChangeLog TODO | |
55 | %attr(755,root,root) %{_bindir}/%{name} |