Group :: System/Libraries
RPM: libgnet
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%def_disable static
Name: libgnet
Version: 2.0.7
Release: alt1
Summary: Libgnet, a network library
License: LGPL
Group: System/Libraries
URL: http://www.gnetlibrary.org/
Source: http://www.gnetlibrary.org/src/gnet-%version.tar.gz
BuildRequires: gcc-c++ glib2-devel
%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. The interface is similar to the interface for
Java's network library. Major features are:
+ tcp 'client' sockets;
+ tcp 'server' sockets;
+ non-blocking tcp sockets;
+ udp;
+ ip multicast;
+ internet address abstraction.
%package devel
Summary: Header files for the Gnet library
Group: Development/C
Requires: %name = %version-%release, glib-devel
%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.
%if_enabled static
%package devel-static
Summary: Static Gnet library
Group: Development/C
Requires: %name-devel = %version-%release, glib-devel-static
%description devel-static
Gnet is a simple network library. It is writen in C, object-oriented,
and built upon glib.
This package allows you to develop statically linked applications that
use the Gnet library.
%endif
%prep
%setup -q -n gnet-%version
%build
%configure \
%{subst_enable static} \
--with-html-dir=%_docdir
%make_build
%install
%make_install DESTDIR=%buildroot install
%make -C examples clean
%__rm -f examples/Makefile*
%__rm -Rf examples/.deps/
%__rm -Rf %buildroot%_docdir
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%_libdir/*.so.*
%files devel
%_libdir/*.so
%_libdir/gnet-2.0/
%_libdir/pkgconfig/*.pc
%_includedir/*
%_datadir/aclocal/*
%doc AUTHORS ChangeLog HACKING NEWS README TODO doc/html examples
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%changelog
…
Full changelog you can see here
Name: libgnet
Version: 2.0.7
Release: alt1
Summary: Libgnet, a network library
License: LGPL
Group: System/Libraries
URL: http://www.gnetlibrary.org/
Source: http://www.gnetlibrary.org/src/gnet-%version.tar.gz
BuildRequires: gcc-c++ glib2-devel
%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. The interface is similar to the interface for
Java's network library. Major features are:
+ tcp 'client' sockets;
+ tcp 'server' sockets;
+ non-blocking tcp sockets;
+ udp;
+ ip multicast;
+ internet address abstraction.
%package devel
Summary: Header files for the Gnet library
Group: Development/C
Requires: %name = %version-%release, glib-devel
%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.
%if_enabled static
%package devel-static
Summary: Static Gnet library
Group: Development/C
Requires: %name-devel = %version-%release, glib-devel-static
%description devel-static
Gnet is a simple network library. It is writen in C, object-oriented,
and built upon glib.
This package allows you to develop statically linked applications that
use the Gnet library.
%endif
%prep
%setup -q -n gnet-%version
%build
%configure \
%{subst_enable static} \
--with-html-dir=%_docdir
%make_build
%install
%make_install DESTDIR=%buildroot install
%make -C examples clean
%__rm -f examples/Makefile*
%__rm -Rf examples/.deps/
%__rm -Rf %buildroot%_docdir
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%_libdir/*.so.*
%files devel
%_libdir/*.so
%_libdir/gnet-2.0/
%_libdir/pkgconfig/*.pc
%_includedir/*
%_datadir/aclocal/*
%doc AUTHORS ChangeLog HACKING NEWS README TODO doc/html examples
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%changelog
…
Full changelog you can see here