4840a44
Summary:		Simplify TCP/IP socket operations
4840a44
Name:		vanessa_socket
4840a44
Version:		0.0.12
3bf9b76
Release:		2%{?dist}
4840a44
License:		LGPLv2+
4840a44
URL:			http://www.vergenet.net/linux/vanessa/
4840a44
Group:		System Environment/Libraries
4840a44
Source0:		http://www.vergenet.net/linux/vanessa/download/%{name}/%{version}/%{name}-%{version}.tar.bz2
4840a44
Requires:		vanessa_logger >= 0.0.8
4840a44
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
4840a44
BuildRequires:	automake autoconf libtool vanessa_logger-devel >= 0.0.8
4840a44
4840a44
%description
4840a44
Library to simplify TCP/IP socket operations. Includes code to
4840a44
open a socket to a server as a client, to listen on socket for
4840a44
clients as a server and to pipe information between sockets.
4840a44
4840a44
%package		devel
4840a44
Summary:		Headers and static libraries for development
4840a44
Group:		Development/Libraries
4840a44
Requires:		%{name} = %{version}-%{release}
4840a44
Requires:		vanessa_logger-devel >= 0.0.8
4840a44
4840a44
%description devel
4840a44
Headers and static libraries required to develop against libvanessa_socket.
4840a44
4840a44
%package		pipe
4840a44
Summary:		Trivial TCP/IP pipe build using libvanessa_adt
4840a44
Group:		Applications/System
4840a44
License:		GPLv2+
4840a44
Requires:		%{name} = %{version}-%{release}
4840a44
# Epel5 have not popt-devel package
4840a44
%if 0%{?fedora}%{?rhel} > 5
4840a44
BuildRequires:	popt-devel
4840a44
%endif
4840a44
4840a44
%description pipe
4840a44
A TCP/IP pipe is a user space programme that listens for TCP/IP connections on
4840a44
port on the local host and when a client connects makes a connection to a
4840a44
TCP/IP port, possibly on another host. Once both connections are established
4840a44
data sent on one connection is relayed to the other, hence forming a
4840a44
bi-directional pipe.
4840a44
4840a44
Uses include enabling connections to specific ports on hosts behind a
4840a44
packet filter.
4840a44
4840a44
This code is intended primarily as an example of how many of the
4840a44
features of libvanessa_socket work.
4840a44
4840a44
%prep
4840a44
%setup -q
4840a44
4840a44
%build
4840a44
%configure --disable-static
4840a44
4840a44
# Disable Rpath for x86_64
4840a44
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
4840a44
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
4840a44
4840a44
make %{?_smp_mflags}
4840a44
4840a44
%install
4840a44
rm -rf %{buildroot}
4840a44
make DESTDIR=%{buildroot} install
4840a44
4840a44
rm -f %{buildroot}%{_libdir}/*.*a
4840a44
4840a44
4840a44
%clean
4840a44
rm -rf %{buildroot}
4840a44
4840a44
%post -p /sbin/ldconfig
4840a44
4840a44
%postun -p /sbin/ldconfig
4840a44
4840a44
%files
4840a44
%defattr(-,root,root,-)
4840a44
%{_libdir}/*.so.*
4840a44
%doc README COPYING ChangeLog
4840a44
4840a44
%files devel
4840a44
%defattr(-,root,root,-)
4840a44
%{_includedir}/*.h
4840a44
%{_libdir}/*.so
4840a44
%{_libdir}/pkgconfig/*
4840a44
4840a44
%files pipe
4840a44
%defattr(-,root,root,-)
4840a44
%{_bindir}/vanessa_socket_pipe
4840a44
%{_mandir}/man1/vanessa_socket_pipe.*
4840a44
%doc README vanessa_socket_pipe/COPYING
4840a44
4840a44
%changelog
3bf9b76
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.12-2
3bf9b76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3bf9b76
4840a44
* Thu Mar 1 2012 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.12-1
4840a44
- Update to 0.0.12 version.
4840a44
4840a44
* Mon Jan 25 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.10-8
4840a44
- Change License back to LGPLv2+, as clarified by Simon Horman - http://hg.vergenet.net/vanessa/vanessa_socket/rev/1e82bd57c239
4840a44
4840a44
* Mon Jan 25 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.10-7
4840a44
- libvanessa_socket/vanessa_socket_daemon.c is GPLv2+, so all package License change to GPLv2+ from LGPLv2+ (Garrett Holmstrom)
4840a44
- Cut off strange issue vith rpath appeared only in x86_64 (thanks to Garrett Holmstrom, Joshua Roys)
4840a44
- Fix forgot version of vanessa_logger-devel >= 0.0.8 (thanks Michael Schwendt).
4840a44
4840a44
* Tue Jan 5 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.10-6
4840a44
- Add %%{?_smp_mflags} for parallel build.
4840a44
- Remove hand  invoking autotuls, build with existing configure (thanks to Joshua Roys).
4840a44
- Requires: vanessa_logger updated to version 0.0.8
4840a44
4840a44
* Sun Dec 20 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.10-5
4840a44
- Update to 0.0.10 version.
4840a44
- BR up to vanessa_logger-devel >= 0.0.8
4840a44
- Add new files %%{_mandir}/man1/vanessa_gethostbyname.1.gz, %%{_bindir}/vanessa_gethostbyname
4840a44
4840a44
* Mon Aug 24 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-4
4840a44
- Historical ./configure with huge amount parameters replaced by %%configure macro.
4840a44
- Removed unnecessary requires /sbin/ldconfig
4840a44
- Removed the files README,COPYING from the devel package
4840a44
4840a44
* Sun Aug 23 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-3
4840a44
- Fix typo in condition (confgure.in instead of configure.in) (thanks to Andrew Colin Kissa)
4840a44
- In -pipe sabpackage Requires: %%{name}-%%{version} replaced by more precise: %%{name} = %%{version}-%%{release}
4840a44
- Add --add-missing flag to automake command and put it before autoheader.
4840a44
4840a44
* Tue Aug 18 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-2
4840a44
- Ressurect old http://hubbitus.net.ru/rpm/Fedora9/vanessa_socket/vanessa_socket-0.0.7-1.fc8.Hu.1.src.rpm.
4840a44
- Rename spec to classic %%{name}.spec.
4840a44
- Remove Hu part from release.
4840a44
- Strip some old comments and unneded commands/macroses.
4840a44
- Replace $RPM_BUILD_ROOT by %%{buildroot}.
4840a44
- Move %%doc README COPYING ChangeLog from devel to main package.
4840a44
- Old BuildPrereq tag replaced by BuildRequires.
4840a44
- Make setup quiet.
4840a44
- Remove *.*a files in %%install.
4840a44
- Move %%{_libdir}/*.so into -devel.
4840a44
- Add Requires(postun):	/sbin/ldconfig, Requires(post):	/sbin/ldconfig, and %%post/%%postun ldconfig invoke.
4840a44
- Add COPYING also in %%doc of -devel, README in all packages.
4840a44
- Add --disable-static in configure options (with it .la file not produced).
4840a44
- License changed to LGPLv2+ for main package and to GPLv2+.
4840a44
4840a44
* Mon Dec 31 2007 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] info> - 0.0.7-1
4840a44
- Replace Tag Copyright by License
4840a44
- Change BuildRoot:	to correct (intead of hardcoded path): %%{_tmppath}/%%{name}-%%{version}-%%{release}-%%(%%{__id_u} -n)
4840a44
- Reformat all with tabs
4840a44
- Delete (Comment out) %%define prefix	/usr
4840a44
- Change from Release:	1 to Release:	%%{rel}%%{?dist}.Hu.0
4840a44
- For package pipe Change BuildRequires: popt to BuildRequires: popt-devel
4840a44
4840a44
* Fri Dec 14 2001 Horms <horms@verge.net.au>
4840a44
  Revamped configure to use %%{_libdir} and friends. This should be more
4840a44
  distribution indepentant. With thanks to Scot W. Hetzel <scot@genroco.com>
4840a44
* Fri Dec 14 2001 Horms <horms@verge.net.au>
4840a44
  Use %%configure and %%{_libdir} and friends. This should be more
4840a44
  distribution indepentant. With thanks to Scot W. Hetzel <scot@genroco.com>
4840a44
* Mon Feb 12 2001 Horms <horms@verge.net.au>
4840a44
  Added manual page for vanessa_socket_pipe
4840a44
* Sat Sep 2 2000 Horms <horms@verge.net.au>
4840a44
  created for version 0.0.0