Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37564300
en ru br
ALT Linux repositórios
S:1.3.13-alt2
5.0: 1.2-alt1

Group :: Sistema/Bibliotecas
RPM: libenet

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _libname enet

Name: libenet
Version: 1.2
Release: alt1
Summary: Thin, simple and robust network layer on top of UDP
Group: System/Libraries
License: MIT
Url: http://enet.bespin.org/
Source0: http://enet.bespin.org/download/%_libname-%version.tar.gz
Packager: Fr. Br. George <george at altlinux.ru>

%description
ENet is a relatively thin, simple and robust network communication
layer on top of UDP (User Datagram Protocol). The primary feature
it provides is optional reliable, in-order delivery of packets.

ENet is NOT intended to be a general purpose high level networking
library that handles authentication, lobbying, server discovery,
compression, encryption and other high level, often application
level or dependent tasks.

%package devel
Summary: Development files for enet
Group: Development/C
Requires: %name = %version

%description devel
The libenet-devel package contains libraries and header files for
developing applications that use enet.

%prep
%setup -q -n %_libname-%version

%build
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
%configure
%make

# Create a shared version

gcc -shared -Wl,-soname,lib%_libname.so.1 *.o \
 -o lib%_libname.so.1

%install
install -dm 755 %buildroot%_libdir
install -m 644 lib%_libname.so.1 \
%buildroot%_libdir
ln -s lib%_libname.so.1 \
%buildroot%_libdir/lib%_libname.so

install -dm 755 %buildroot%_includedir/%_libname
install -m 644 include/%_libname/*.h \
%buildroot%_includedir/%_libname

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%doc ChangeLog LICENSE README
%_libdir/lib%_libname.so.*

%files devel
%doc tutorial.txt design.txt
%dir %_includedir/%_libname
%_includedir/%_libname/*
%_libdir/lib%_libname.so

%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