]>
Commit | Line | Data |
---|---|---|
2b0b88cc | 1 | %define subver RC2 |
6e281dde | 2 | %define rel 4 |
bb353f27 | 3 | Summary: Cisco 7200 Simulator |
acae03fd | 4 | Summary(pl.UTF-8): Symulator Cisco 7200 |
bb353f27 | 5 | Name: dynamips |
05389f41 | 6 | Version: 0.2.8 |
2b0b88cc | 7 | Release: 0.%{subver}.%{rel} |
bb353f27 | 8 | License: GPL |
9 | Group: Applications/Emulators | |
2b0b88cc | 10 | Source0: http://www.ipflow.utc.fr/dynamips/%{name}-%{version}-%{subver}.tar.gz |
05389f41 | 11 | # Source0-md5: 8d12d28684d164fe3312a3fe43c84d2e |
5ee2ba72 | 12 | Patch0: %{name}-Makefile.patch |
225f7a24 | 13 | Patch1: %{name}-debian.patch |
6e281dde | 14 | Patch2: x32.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 | |
2b0b88cc | 28 | %setup -q -n %{name}-%{version}-%{subver} |
225f7a24 | 29 | %patch0 -p1 |
30 | %patch1 -p1 | |
6e281dde JR |
31 | %ifarch x32 |
32 | %patch2 -p1 | |
33 | %endif | |
bb353f27 | 34 | |
35 | %build | |
36 | %ifarch %{x8664} | |
37 | ARCH=amd64 | |
38 | %else | |
6e281dde | 39 | %ifarch %{ix86} x32 |
bb353f27 | 40 | ARCH=x86 |
41 | %else | |
42 | ARCH=nojit | |
43 | %endif | |
44 | %endif | |
45 | ||
46 | %{__make} \ | |
47 | DYNAMIPS_ARCH=$ARCH \ | |
48 | CC="%{__cc}" \ | |
23f75273 | 49 | RPM_CFLAGS="%{rpmcflags}" \ |
912df868 | 50 | LD="%{__ld}" |
bb353f27 | 51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
946c8449 | 54 | %{__make} install \ |
55 | DESTDIR=$RPM_BUILD_ROOT \ | |
56 | PREFIX="%{_prefix}" | |
bb353f27 | 57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
2b0b88cc | 63 | %doc README README.hypervisor ChangeLog TODO |
946c8449 | 64 | %attr(755,root,root) %{_bindir}/* |
65 | %{_mandir}/man1/*.1* | |
66 | %{_mandir}/man7/*.7* |