# Note that this is NOT a relocatable package %define ver 2.0.7 %define libver 2.0 %define rel 1 %define prefix /usr Summary: Gnet, a network library Name: gnet2 Version: %ver Release: %rel Copyright: LGPL Group: Libraries/Network Source0: gnet-%{PACKAGE_VERSION}.tar.gz URL: http://www.gnetlibrary.org BuildRoot: /var/tmp/gnet-%{PACKAGE_VERSION}-root Docdir: %{prefix}/doc Packager: Xavier Nicolovici Requires: glib >= 1.2 %description Gnet is a simple network library. It is writen in C, object-oriented, and built upon GLib. It is intended to be small, fast, easy-to-use, and easy to port. Features: * TCP "client" and "server" sockets * UDP and IP Multicast * Internet address abstraction * Asynchronous socket IO * Asynchronous DNS lookup * Byte packing and unpacking * URLs (Experimental) * Server and Conn objects (Experimental) Comments and questions should be sent to gnet@gnetlibrary.org. The Gnet homepage is at . %package devel Summary: Header files for the Gnet library Group: Development/Libraries %description devel Gnet is a simple network library. It is writen in C, object-oriented, and built upon GLib. This package allows you to develop applications that use the Gnet library. %prep %setup -q -n gnet-%{version} %build %ifarch alpha CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure --host=alpha-redhat-linux\ --prefix=%{prefix} \ --with-html-dir=/usr/share/gtk-doc/html \ --with-gnu-ld %else CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --prefix=%{prefix} \ --with-gnu-ld \ --with-html-dir=/usr/share/gtk-doc/html %endif make %{_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %post /sbin/ldconfig %postun /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc README COPYING ChangeLog NEWS TODO AUTHORS INSTALL HACKING %{prefix}/lib/libgnet-%{libver}.so.* %files devel %defattr(-, root, root) %{prefix}/share/gtk-doc/* %{prefix}/share/aclocal/* %{prefix}/lib/pkgconfig/* %{prefix}/include/gnet-%{libver} %{prefix}/lib/gnet-%{libver} %{prefix}/lib/libgnet-%{libver}.*a %{prefix}/lib/libgnet-%{libver}.so %changelog * Sun Apr 27 2003 Bas Mevissen - Updated to coexist with gnet-1.x.x RPM's * Mon Mar 03 2003 Jeff Bonggren - Removed Docdir directive. - Updated the files section. - Changed 'prefix' to 'DESTDIR' in install to fix gtk-doc install. - Added %{_smp_mflags} for faster make on SMP machines. - Added --with-html-dir=/usr/share/gtk-doc/html to configure line. * Thu Oct 26 2000 Benjamin Kahn - Added missing file in lib/gnet * Mon Feb 28 2000 David Helder - Updated for version 1.0 * Sat Jan 15 2000 Xavier Nicolovici - Moved lib*.so and lib*a to the devel package - Creation of a gnet.spec.in for autoconf process * Wed Jan 14 2000 Xavier Nicolovici - HTML documentation has been move to /usr/doc/gnet-{version}/html * Thu Jan 13 2000 Xavier Nicolovici - First try at an RPM