1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
%define prefix /usr
Summary: Simplify TCP/IP socket operations
Name: vanessa_socket
Version: 0.0.3
Release: 1
Copyright: GNU Lesser General Public Licence (examples released under the GNU General Public Licence)
URL: http://vanessa.sourceforge.net/
Packager: Horms <horms@vergenet.net>
Group: Development/Libraries
Source0: ftp://vergenet.net/pub/vanessa_socket/vanessa_socket/%{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-root
Docdir: %{prefix}/doc
Provides: %{name}-%{version}
BuildRequires: vanessa_logger-devel
Requires: vanessa_logger
%description
Library to simplify TCP/IP socket operations. Includes code to
open a socket to a server as a client, to listen on socket for
clients as a server and to pipe information between sockets.
%package devel
Summary: Headers and static libraries for development
Group: Development/Libraries
Requires: %{name}-%{version} vanessa_logger-devel
Provides: %{name}-devel-%{version}
%description devel
Headers and static libraries required to develop against libvanessa_socket.
%package pipe
Summary: Trivial TCP/IP pipe build using libvanessa_adt
Group: Applications/System
Copyright: GNU General Public Licence
Requires: %{name}-%{version}
Provides: %{name}-pipe-%{version}
BuildRequires: popt
%description pipe
A TCP/IP pipe is a user space programme that listens for TCP/IP connections on
port on the local host and when a client connects makes a connection to a
TCP/IP port, possibly on another host. Once both connections are established
data sent on one connection is relayed to the other, hence forming a
bi-directional pipe.
Uses include enabling connections to specific ports on hosts behind a
packet filter.
This code is intended primarily as an example of how many of the
features of libvanessa_socket work.
%prep
%setup
%build
%configure
CFLAGS="${RPM_OPT_FLAGS}" make
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}/{etc,%{prefix}/{lib,bin,doc}}
make prefix=$RPM_BUILD_ROOT%{prefix} install
%clean
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
rm -rf $RPM_BUILD_ROOT
%post
%postun
%preun
%files
%defattr(-, root, root)
%{prefix}/lib/*.so*
%files devel
%defattr(-, root, root)
%{prefix}/lib/*.*a
%{prefix}/include/*.h
%doc README COPYING ChangeLog
%files pipe
%defattr(-, root, root)
%{prefix}/bin/vanessa_socket_pipe
%{prefix}/man/man1/vanessa_socket_pipe.1
%doc vanessa_socket_pipe/COPYING
%changelog
* Mon Feb 12 2001 Horms <horms@vergenet.net>
- Added manual page for vanessa_socket_pipe
* Sat Sep 2 2000 Horms <horms@vergenet.net>
- created for version 0.0.0
|