%define develname %mklibname -d -s ircclient Summary: C library to create IRC clients Name: libircclient Version: 1.5 Release: %mkrel 2 License: GPLv2 Group: System/Libraries URL: http://www.ulduzsoft.com/libircclient/ Source0: http://downloads.sourceforge.net/libircclient/%{name}-%{version}.tar.gz Patch0: libircclient-1.3-headers.patch Patch1: libircclient-1.5-include-rfc.patch BuildRequires: openssl-devel %description libircclient is a small but powerful library that implements the client-server IRC protocol. It is designed to be small, fast, portable and compatible to RFC standards, and most IRC clients. libircclient features include: * Full multi-threading support. * Single threads handles all the IRC processing. * Support for single-threaded applications, and socket-based applications, which use select() * Synchronous and asynchronous interfaces. * CTCP support with optional build-in reply code. * Flexible DCC support, including both DCC chat, and DCC file transfer. * Can both initiate and react to initiated DCC. * Can accept or decline DCC sessions asynchronously. * Plain C interface and implementation (possible to use from C++ code, obviously) * Compatible with RFC 1459 and most IRC clients. * Good documentation and examples available. %package -n %{develname} Summary: C library to create IRC clients Group: Development/C Provides: %{name}-static-devel = %{version}-%{release} %description -n %{develname} libircclient is a small but powerful library that implements the client-server IRC protocol. It is designed to be small, fast, portable and compatible to RFC standards, and most IRC clients. libircclient features include: * Full multi-threading support. * Single threads handles all the IRC processing. * Support for single-threaded applications, and socket-based applications, which use select() * Synchronous and asynchronous interfaces. * CTCP support with optional build-in reply code. * Flexible DCC support, including both DCC chat, and DCC file transfer. * Can both initiate and react to initiated DCC. * Can accept or decline DCC sessions asynchronously. * Plain C interface and implementation (possible to use from C++ code, obviously) * Compatible with RFC 1459 and most IRC clients. * Good documentation and examples available. %prep %setup -q %patch0 -p1 -b .headers %patch1 -p0 -b .rfc %build %configure2_5x --enable-openssl --enable-ipv6 %make %install %__mkdir_p %{buildroot}%{_libdir} %__cp src/%{name}.a %{buildroot}%{_libdir}/ %__mkdir_p %{buildroot}%{_includedir} %__cp include/*.h %{buildroot}%{_includedir} %files -n %{develname} %doc LICENSE README Changelog THANKS doc/html %{_libdir}/*.a %{_includedir}/*.h %changelog * Fri Jan 20 2012 fwang <fwang> 1.5-2.mga2 + Revision: 198580 - add rfc include into main header * Thu Jan 19 2012 fwang <fwang> 1.5-1.mga2 + Revision: 198431 - imported package libircclient