File ctrlproxy.spec of Package ctrlproxy

#
# spec file for package ctrlproxy (Version 3.0.8)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           ctrlproxy
Version:        3.0.8
Release:        1
#
License:        GPLv3
Group:          Productivity/Networking/IRC
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  docbook-xsl-stylesheets glib2-devel gnutls-devel libxml2-devel libxslt-devel openssl-devel pkgconfig popt-devel readline-devel sgml-skel sqlite-devel swig libgcrypt-devel
%if 0%{?suse_version} == 930
BuildRequires:  libopencdk-devel libgcrypt-devel libgpg-error-devel zlib-devel lzo-devel
%endif
%if 0%{?suse_version} >= 1220
BuildRequires:  autoconf automake
%endif
Conflicts:      ctrlproxy-unstable
#
Url:            http://ctrlproxy.vernstok.nl/
Source:         http://ctrlproxy.vernstok.nl/releases/ctrlproxy-%{version}.tar.bz2
Patch0:         ctrlproxy_save_nickserv.patch
Patch1:         ctrlproxy_fix_glib_linking.patch
Patch2:		replace-deprecated-gnutls.patch
#
Summary:        IRC proxy with conversation replay support

%description
CtrlProxy runs on a computer with a 24/7 internet connection and allows you to
transparently connect to IRC from anywhere on the world to your nick. It
connects to one or more IRC servers and then allows you to connect to it with
any number of clients, providing access to these servers. This is very useful
if you don't want to leave IRC but still want to be able to use it from home,
school or work.


Authors:
--------
    Jelmer Vernooij <jelmer@nl.linux.org>
    Daniel Poelzleithner <ctrlproxy@poelzi.org>


%package devel
License:        GPLv3
Group:          Development/Languages/C and C++
Requires:       ctrlproxy = %{version}
Summary:        IRC proxy with conversation replay support

%description devel
This package contains the header files from ctrlproxy

%prep
%setup
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
autoreconf -fi
export LIBS=-lgcrypt
%configure
%{__make}

%install
%makeinstall docdir=%{_docdir}/%{name}
%{__cp} -av scripts/ example/ AUTHORS COPYING HACKING NEWS README \
    %{buildroot}%{_docdir}/%{name}/

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/ctrlproxy
%{_bindir}/ctrlproxy-admin
%{_bindir}/linestack-cmd
%{_sbindir}/ctrlproxyd
%dir %{_libdir}/ctrlproxy/
%dir %{_datadir}/ctrlproxy/
%{_datadir}/ctrlproxy/help
%dir %{_sysconfdir}/ctrlproxy
%config %{_sysconfdir}/ctrlproxy/config
%config %{_sysconfdir}/ctrlproxy/motd
%doc %{_docdir}/%{name}/
%{_mandir}/man1/ctrlproxy.1*
%{_mandir}/man1/ctrlproxy-admin.1*
%{_mandir}/man5/ctrlproxy_config.5*
%{_mandir}/man5/ctrlproxy_config.5*
%{_mandir}/man8/ctrlproxyd.8*

%files devel
%defattr(-,root,root)
%{_includedir}/ctrlproxy-3.0/
%{_libdir}/pkgconfig/ctrlproxy.pc

%changelog
openSUSE Build Service is sponsored by