Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37510623
en ru br
ALT Linux repositórios
S:2.0.8-alt4.1
5.0: 2.0.7-alt1
4.1: 2.0.7-alt1
4.0: 2.0.7-alt1
3.0: 2.0.5-alt1

Group :: Sistema/Bibliotecas
RPM: libgnet

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname gnet
%define ver_major 2.0
%def_disable static

Name: lib%oname
Version: %ver_major.8
Release: alt4

Summary: GNet is a simple network library
License: LGPL
Group: System/Libraries
URL: http://www.gnetlibrary.org/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: %gnome_ftp/%oname/%ver_major/%oname-%version.tar.bz2
Source1: %name-%ver_major.map
Patch1: %name-%version-alt-versioning.patch
Patch2: libgnet-fix-move_define.patch

BuildRequires: rpm-build-gnome
BuildRequires: gtk-doc libcheck-devel
BuildRequires: glib2-devel >= 2.6.0
BuildRequires: gcc-c++


%description
GNet is a simple network library.  It is written in C,
object-oriented, and built upon GLib.  It is intended to be easy to
use and port.  GNet comes with documentation and examples.  It is
licensed under the GNU Library General Public Licence.

Features:
 * TCP "client" and "server" sockets
 * UDP and IP Multicast sockets
 * High-level TCP connection and server objects
 * Asynchronous socket IO
 * Internet address abstraction
 * Asynchronous DNS lookup
 * IPv4 and IPv6 support
 * Byte packing and unpacking
 * URI parsing
 * SHA and MD5 hashes
 * Base64 encoding and decoding
 * SOCKS support
 * High-level HTTP connection object

%package devel
Summary: Header files for the Gnet library
Group: Development/C
Requires: %name = %version-%release

%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 glib2-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 %oname-%version
%patch1 -p1
%patch2 -p1
install -p -m644 %SOURCE1 src/libgnet-2.0.map

%build
%autoreconf
%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

%files
%_libdir/*.so.*

%files devel
%_libdir/*.so
%_libdir/gnet-2.0
%_pkgconfigdir/*
%_includedir/*
%_datadir/aclocal/*
%doc AUTHORS ChangeLog HACKING NEWS README TODO doc/html examples

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009