]> git.pld-linux.org Git - packages/cnet.git/commitdiff
- initital pld version
authorundefine <undefine@pld-linux.org>
Tue, 21 Sep 2004 15:00:59 +0000 (15:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cnet.spec -> 1.1

cnet.spec [new file with mode: 0644]

diff --git a/cnet.spec b/cnet.spec
new file mode 100644 (file)
index 0000000..73167aa
--- /dev/null
+++ b/cnet.spec
@@ -0,0 +1,71 @@
+Summary:       A Network Simulator
+Summary(pl):   Symulator sieci
+Name:          cnet
+Version:       2.0.9
+Release:       1
+License:       GPL
+Group:         Development/Tools
+Source0:       http://www.csse.uwa.edu.au/cnet/%{name}-%{version}.tgz
+Patch0:                %{name}-datadir.patch
+Patch1:                %{name}-longint.patch
+URL:           http://www.csse.uwa.edu.au/cnet
+BuildRequires: elfutils-devel
+BuildRequires: tcl-devel
+BuildRequires: tk-devel
+Requires:      gcc
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define no_install_post_strip 1
+
+%description
+The cnet network simulator enables experimentation with various
+data-link layer, network layer, routing and transport layer networking
+protocols in networks consisting of any combination of point-to-point
+links and Ethernet segments. cnet has been specifically developed for,
+and is used in, undergraduate computer networking courses taken by
+thousands of students worldwide since 1991. At The University of
+Western Australia, cnet is used primarily in Chris McDonald's Computer
+Networks (IT312) undergraduate unit.
+
+%description
+Symulator sieci cnet umo¿liwia eksperymenty z ró¿nymi rodzajami warstw
+fizycznych, sieciowych, routingi i transportowych protoko³ów, w ró¿nych
+kombinacjach linków point-to-point, segmentów ethernet. cnet jest
+tworzony i wykorzystywany w wielu kursach sieciowych pobieranych przez
+tysi±ce studentów od roku 1991.
+
+%prep
+%setup -q
+%patch0
+%patch1
+
+%build
+%{__make} \
+       BINDIR=%{_bindir} \
+       CNETDIR=%{_datadir}/cnet \
+       MANDIR=%{_mandir}/man1 \
+       CFLAGS="%{rpmcflags} -fPIC" \
+       ANSICC="%{__cc} -ansi" \
+       LIBELFDIR="" \
+       LIBELFINC=""
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/{%{_bindir},%{_libdir},%{_mandir}/man1,%{_examplesdir}}
+%{__make} install \
+       BINDIR=$RPM_BUILD_ROOT%{_bindir} \
+       CNETDIR=$RPM_BUILD_ROOT%{_datadir}/cnet \
+       MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 
+
+cp -r EXAMPLES $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ANNOUNCE DOC
+%attr(755,root,root) %{_bindir}/cnet
+%{_datadir}/cnet
+%{_mandir}/man1/cnet.*
+%{_examplesdir}/%{name}
This page took 0.099117 seconds and 4 git commands to generate.