]> git.pld-linux.org Git - packages/cnet.git/blame - cnet.spec
- tabs in preamble
[packages/cnet.git] / cnet.spec
CommitLineData
d11c8833 1# TODO:
2# - check if it works on 64-bit archs (amd64/alpha)
6d5c6604 3Summary: A Network Simulator
bd7327e0 4Summary(pl.UTF-8): Symulator sieci
6d5c6604 5Name: cnet
6Version: 2.0.9
d11c8833 7Release: 2
6d5c6604 8License: GPL
9Group: Development/Tools
10Source0: http://www.csse.uwa.edu.au/cnet/%{name}-%{version}.tgz
b8202963 11# Source0-md5: 593b63c809773a284bc3d655dc609298
6d5c6604 12Patch0: %{name}-datadir.patch
13Patch1: %{name}-longint.patch
ed4b7ea2 14Patch2: %{name}-amd64fix.patch
6d5c6604 15URL: http://www.csse.uwa.edu.au/cnet
16BuildRequires: elfutils-devel
17BuildRequires: tcl-devel
18BuildRequires: tk-devel
19Requires: gcc
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
6d5c6604 22%description
23The cnet network simulator enables experimentation with various
24data-link layer, network layer, routing and transport layer networking
25protocols in networks consisting of any combination of point-to-point
26links and Ethernet segments. cnet has been specifically developed for,
27and is used in, undergraduate computer networking courses taken by
28thousands of students worldwide since 1991. At The University of
29Western Australia, cnet is used primarily in Chris McDonald's Computer
30Networks (IT312) undergraduate unit.
31
91a61843
JR
32%description -l pl.UTF-8
33Symulator sieci cnet umożliwia eksperymenty z różnymi rodzajami
34protokołów sieciowych warstwy połączenia, sieci, routingu i
35transportowej w sieciach składających się z dowolnej kombinacji
36połączeń point-to-point i segmentów Ethernetu. cnet jest tworzony i
37wykorzystywany w wielu kursach sieciowych pobieranych przez tysiące
38studentów od roku 1991.
6d5c6604 39
40%prep
41%setup -q
42%patch0
43%patch1
ed4b7ea2 44%patch2
6d5c6604 45
46%build
47%{__make} \
48 BINDIR=%{_bindir} \
49 CNETDIR=%{_datadir}/cnet \
50 MANDIR=%{_mandir}/man1 \
51 CFLAGS="%{rpmcflags} -fPIC" \
d61a1a57 52 XLIBDIRS="-L%{_prefix}/X11R6/%{_lib}" \
6d5c6604 53 ANSICC="%{__cc} -ansi" \
54 LIBELFDIR="" \
55 LIBELFINC=""
56
57%install
58rm -rf $RPM_BUILD_ROOT
59install -d $RPM_BUILD_ROOT/{%{_bindir},%{_libdir},%{_mandir}/man1,%{_examplesdir}}
60%{__make} install \
61 BINDIR=$RPM_BUILD_ROOT%{_bindir} \
62 CNETDIR=$RPM_BUILD_ROOT%{_datadir}/cnet \
63 MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1
64
65cp -r EXAMPLES $RPM_BUILD_ROOT%{_examplesdir}/%{name}
66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(644,root,root,755)
72%doc ANNOUNCE DOC
73%attr(755,root,root) %{_bindir}/cnet
74%{_datadir}/cnet
75%{_mandir}/man1/cnet.*
76%{_examplesdir}/%{name}
This page took 0.121906 seconds and 4 git commands to generate.