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