]> git.pld-linux.org Git - packages/dynamips.git/blame - dynamips.spec
- support for distro CFLAGS
[packages/dynamips.git] / dynamips.spec
CommitLineData
bb353f27 1Summary: Cisco 7200 Simulator
acae03fd 2Summary(pl.UTF-8): Symulator Cisco 7200
bb353f27 3Name: dynamips
225f7a24 4Version: 0.2.7
23f75273 5Release: 0.2
bb353f27 6License: GPL
7Group: Applications/Emulators
8Source0: http://www.ipflow.utc.fr/dynamips/%{name}-%{version}.tar.gz
225f7a24 9# Source0-md5: 0fe1875bb4e7e3624ca420dd75c85279
5ee2ba72 10Patch0: %{name}-Makefile.patch
225f7a24 11Patch1: %{name}-debian.patch
bb353f27 12URL: http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator
13BuildRequires: elfutils-devel
14BuildRequires: flex
15BuildRequires: libpcap-devel
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19Cisco 7200 Simulator.
20
c5d05096 21%description -l pl.UTF-8
912df868 22Symulator Cisco 7200.
bb353f27 23
24%prep
25%setup -q
225f7a24 26%patch0 -p1
27%patch1 -p1
bb353f27 28
29%build
30%ifarch %{x8664}
31ARCH=amd64
32%else
33%ifarch %{ix86}
34ARCH=x86
35%else
36ARCH=nojit
37%endif
38%endif
39
40%{__make} \
41 DYNAMIPS_ARCH=$ARCH \
42 CC="%{__cc}" \
23f75273 43 RPM_CFLAGS="%{rpmcflags}" \
912df868 44 LD="%{__ld}"
bb353f27 45
46%install
47rm -rf $RPM_BUILD_ROOT
48install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir}}
49
50install dynamips $RPM_BUILD_ROOT%{_bindir}
51
52%clean
53rm -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.079613 seconds and 4 git commands to generate.