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