]> git.pld-linux.org Git - packages/cnet.git/blob - cnet.spec
- small fix to amd64 (i hope...)
[packages/cnet.git] / cnet.spec
1 Summary:        A Network Simulator
2 Summary(pl):    Symulator sieci
3 Name:           cnet
4 Version:        2.0.9
5 Release:        1
6 License:        GPL
7 Group:          Development/Tools
8 Source0:        http://www.csse.uwa.edu.au/cnet/%{name}-%{version}.tgz
9 # Source0-md5:  593b63c809773a284bc3d655dc609298
10 Patch0:         %{name}-datadir.patch
11 Patch1:         %{name}-longint.patch
12 Patch2:         %{name}-amd64fix.patch
13 URL:            http://www.csse.uwa.edu.au/cnet
14 BuildRequires:  elfutils-devel
15 BuildRequires:  tcl-devel
16 BuildRequires:  tk-devel
17 Requires:       gcc
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define no_install_post_strip 1
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
33 Symulator sieci cnet umo¿liwia eksperymenty z ró¿nymi rodzajami warstw
34 fizycznych, sieciowych, routingi i transportowych protoko³ów, w ró¿nych
35 kombinacjach linków point-to-point, segmentów ethernet. cnet jest
36 tworzony i wykorzystywany w wielu kursach sieciowych pobieranych przez
37 tysi±ce studentów od roku 1991.
38
39 %prep
40 %setup -q
41 %patch0
42 %patch1
43 %patch2
44
45 %build
46 %{__make} \
47         BINDIR=%{_bindir} \
48         CNETDIR=%{_datadir}/cnet \
49         MANDIR=%{_mandir}/man1 \
50         CFLAGS="%{rpmcflags} -fPIC" \
51         ANSICC="%{__cc} -ansi" \
52         LIBELFDIR="" \
53         LIBELFINC=""
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_libdir},%{_mandir}/man1,%{_examplesdir}}
58 %{__make} install \
59         BINDIR=$RPM_BUILD_ROOT%{_bindir} \
60         CNETDIR=$RPM_BUILD_ROOT%{_datadir}/cnet \
61         MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 
62
63 cp -r EXAMPLES $RPM_BUILD_ROOT%{_examplesdir}/%{name}
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc ANNOUNCE DOC
71 %attr(755,root,root) %{_bindir}/cnet
72 %{_datadir}/cnet
73 %{_mandir}/man1/cnet.*
74 %{_examplesdir}/%{name}
This page took 0.072423 seconds and 3 git commands to generate.