]> git.pld-linux.org Git - packages/cnet.git/blob - cnet.spec
- tabs in preamble
[packages/cnet.git] / cnet.spec
1 # TODO:
2 # - check if it works on 64-bit archs (amd64/alpha)
3 Summary:        A Network Simulator
4 Summary(pl.UTF-8):      Symulator sieci
5 Name:           cnet
6 Version:        2.0.9
7 Release:        2
8 License:        GPL
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
19 Requires:       gcc
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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.
31
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.
39
40 %prep
41 %setup -q
42 %patch0
43 %patch1
44 %patch2
45
46 %build
47 %{__make} \
48         BINDIR=%{_bindir} \
49         CNETDIR=%{_datadir}/cnet \
50         MANDIR=%{_mandir}/man1 \
51         CFLAGS="%{rpmcflags} -fPIC" \
52         XLIBDIRS="-L%{_prefix}/X11R6/%{_lib}" \
53         ANSICC="%{__cc} -ansi" \
54         LIBELFDIR="" \
55         LIBELFINC=""
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -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
65 cp -r EXAMPLES $RPM_BUILD_ROOT%{_examplesdir}/%{name}
66
67 %clean
68 rm -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.111997 seconds and 3 git commands to generate.