]> git.pld-linux.org Git - packages/dynamips.git/blob - dynamips.spec
- up to 0.2.7
[packages/dynamips.git] / dynamips.spec
1 Summary:        Cisco 7200 Simulator
2 Summary(pl.UTF-8):      Symulator Cisco 7200
3 Name:           dynamips
4 Version:        0.2.7
5 Release:        0.1
6 License:        GPL
7 Group:          Applications/Emulators
8 Source0:        http://www.ipflow.utc.fr/dynamips/%{name}-%{version}.tar.gz
9 # Source0-md5:  0fe1875bb4e7e3624ca420dd75c85279
10 Patch0:         %{name}-Makefile.patch
11 Patch1:         %{name}-debian.patch
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
21 %description -l pl.UTF-8
22 Symulator Cisco 7200.
23
24 %prep
25 %setup -q
26 %patch0 -p1
27 %patch1 -p1
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}" \
43         LD="%{__ld}"
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}
This page took 0.715859 seconds and 4 git commands to generate.