Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37515913
en ru br
Репозитории ALT
S:1.3.13-alt2
5.1: 1.2-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libenet

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and 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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin