2 # - check if it works on 64-bit archs (amd64/alpha)
3 Summary: A Network Simulator
4 Summary(pl.UTF-8): Symulator sieci
9 Group: Development/Tools
10 Source0: http://www.csse.uwa.edu.au/cnet/%{name}-%{version}.tgz
11 # Source0-md5: 593b63c809773a284bc3d655dc609298
12 Patch0: %{name}-datadir.patch
13 Patch1: %{name}-longint.patch
14 Patch2: %{name}-amd64fix.patch
15 URL: http://www.csse.uwa.edu.au/cnet
16 BuildRequires: elfutils-devel
17 BuildRequires: tcl-devel
18 BuildRequires: tk-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The cnet network simulator enables experimentation with various
24 data-link layer, network layer, routing and transport layer networking
25 protocols in networks consisting of any combination of point-to-point
26 links and Ethernet segments. cnet has been specifically developed for,
27 and is used in, undergraduate computer networking courses taken by
28 thousands of students worldwide since 1991. At The University of
29 Western Australia, cnet is used primarily in Chris McDonald's Computer
30 Networks (IT312) undergraduate unit.
32 %description -l pl.UTF-8
33 Symulator sieci cnet umożliwia eksperymenty z różnymi rodzajami
34 protokołów sieciowych warstwy połączenia, sieci, routingu i
35 transportowej w sieciach składających się z dowolnej kombinacji
36 połączeń point-to-point i segmentów Ethernetu. cnet jest tworzony i
37 wykorzystywany w wielu kursach sieciowych pobieranych przez tysiące
38 studentów od roku 1991.
49 CNETDIR=%{_datadir}/cnet \
50 MANDIR=%{_mandir}/man1 \
51 CFLAGS="%{rpmcflags} -fPIC" \
52 XLIBDIRS="-L%{_prefix}/X11R6/%{_lib}" \
53 ANSICC="%{__cc} -ansi" \
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_libdir},%{_mandir}/man1,%{_examplesdir}}
61 BINDIR=$RPM_BUILD_ROOT%{_bindir} \
62 CNETDIR=$RPM_BUILD_ROOT%{_datadir}/cnet \
63 MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1
65 cp -r EXAMPLES $RPM_BUILD_ROOT%{_examplesdir}/%{name}
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_bindir}/cnet
75 %{_mandir}/man1/cnet.*
76 %{_examplesdir}/%{name}