File libircclient.spec of Package libircclient
# Copyright (c) 2011 Edgar Aichinger <edogawa@aon.at>
#
# norootforbuild
%define prefix /usr
%define soname 1
BuildRequires: gcc-c++
Summary: A IRC library to create IRC clients
Name: libircclient
Version: 1.7
Release: 0.1
License: LGPL-2.0+
Group: Productivity/Multimedia/Sound/Utilities
Source: libircclient-%{version}.tar.gz
URL: http://libircclient.sourceforge.net
BuildRoot: %{_tmppath}/%{name}%{soname}-%{version}-buildroot
%description
libircclient is a small but powerful library, which implements 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.
- Free, licensed under LGPL license.
- Good documentation and examples available.
Author:
-------
Georgy Yunaev<gyunaev@ulduzsoft.com>
%package -n libircclient%{soname}
Summary: Shared library files for libircclient
Group: System/Libraries
%description -n libircclient%{soname}
libircclient is a small but powerful library, which implements 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.
- Free, licensed under LGPL license.
- Good documentation and examples available.
This package contains the shared library files for using libircclient
%package -n libircclient-devel
Summary: Development libraries and include files for libircclient
Group: Development/Libraries/C and C++
Requires: libircclient1 = %{version}
%description -n libircclient-devel
Include files and static library needed for development with libircclient.
%package -n libircclient-doc
Summary: Documentation and example sources for libircclient
Group: Productivity/Multimedia/Sound/Utilities
Requires: libircclient1 = %{version}
%description -n libircclient-doc
Documentation and example source code for libircclient.
%if %{defined fedora}
%global debug_package %{nil}
%endif
%prep
%autosetup -n libircclient-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
%configure --prefix=%{prefix} --enable-shared
%__make %{?_smp_mflags}
%install
[ %{buildroot} != "/" ] && %{__rm} -rf %{buildroot}
cd src
make DESTDIR=%{buildroot} LIBDIR=%{_libdir} install
mkdir %{buildroot}%{_includedir}/libircclient
mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/libircclient/
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc Changelog README THANKS
%license LICENSE
%files -n libircclient%{soname}
%{_libdir}/*.so.*
%files -n libircclient-devel
%defattr(-,root,root)
%dir %{_includedir}/libircclient
%{_includedir}/libircclient/*
%{_libdir}/*.so
%files -n libircclient-doc
%defattr(-,root,root)
%doc doc/*
%doc examples/*.c*