]> git.pld-linux.org Git - packages/dynamips.git/blob - dynamips.spec
385fb9c5d7414a060a6e67b2ac94d23e2e8faaf8
[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.2
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         RPM_CFLAGS="%{rpmcflags}" \
44         LD="%{__ld}"
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir}}
49
50 install dynamips $RPM_BUILD_ROOT%{_bindir}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc README ChangeLog TODO
58 %attr(755,root,root) %{_bindir}/%{name}
This page took 0.072984 seconds and 3 git commands to generate.