# $Id: gnet.spec 171 2004-03-28 01:43:07Z dag $ # Authority: newrpms # Upstream: David Helder Summary: Gnet, a network library Name: gnet Version: 1.1.9 Release: 0 License: LGPL Group: System Environment/Libraries URL: http://www.gnetlibrary.org/ Packager: Dag Wieers Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Source: http://www.gnetlibrary.org/src/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: glib >= 1.2.10 %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) %package devel Summary: Header files, libraries and development documentation for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %prep %setup %build %configure \ --program-prefix="%{?_program_prefix}" \ --with-html-dir="%{buildroot}%{_docdir}/libgnet1.1-dev/" %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %makeinstall ### Clean up buildroot %{__rm} -f %{buildroot}%{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc AUTHORS BUGS ChangeLog NEWS README TODO %{_libdir}/*.so.* %files devel %defattr(-, root, root, 0755) %doc HACKING %doc %{_mandir}/man?/* %doc %{_docdir}/libgnet1.1-dev/ %{_bindir}/* %{_libdir}/*.a %{_libdir}/*.so %{_libdir}/gnet/ %{_libdir}/pkgconfig/*.pc %{_datadir}/aclocal/*.m4 %{_includedir}/gnet/ #exclude %{_libdir}/*.la %changelog * Sun Sep 07 2003 Dag Wieers - 1.1.9-0 - Updated to release 1.1.9. * Sun Jun 22 2003 Dag Wieers - 1.1.8-2 - Minor cleanup. * Fri Feb 21 2003 Dag Wieers - 1.1.8-1 - Fixed the --program-prefix problem. * Mon Jan 06 2003 Dag Wieers - 1.1.8-0 - Updated to release 1.1.8. (using DAR) * Sat Dec 28 2002 Dag Wieers - 1.1.7-0 - Updated to release 1.1.7. - Cleaned up SPEC file. * 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