File kvirc.spec of Package kvirc

#
# spec file for package kvirc (Version 3.4.2)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           kvirc
%define       _prefix /opt/kde3
%define       _mandir /usr/share/man
%define       _realversion 3.4
BuildRequires:  dos2unix kdebase3-devel update-desktop-files
Url:            http://www.kvirc.net/
License:        GPL v2 or later
Group:          Productivity/Networking/IRC
Summary:        Graphical Front-End for IRC
Version:        3.4.2
Release:        2.<RELEASE26>
Source:         kvirc-%{version}.tar.bz2
Patch:          kvirc-browser.patch
Patch1:         kvirc-dcc_vul.diff
Patch2:         kvirc-ctcp_vul.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
IRC (Internet Relay Chat) client with an MDI interface; scripting,
pop-up, alias, and event editor; DCC (SEND CHAT VOICE and RESUME);
SOCKSV4 & V5 support; and more. See documentation in
/opt/kde/share/doc/HTML/de/kvirc/index.html.



Authors:
--------
    Szymon Stefanek <kvirc@tin.it>

%package -n kvirc-devel
License:        GPL v2 or later
Summary:        Graphical Front-End for IRC
Group:          Productivity/Networking/IRC
Requires:       kvirc = %{version}

%description devel
IRC (Internet Relay Chat) client with an MDI interface; scripting,
pop-up, alias, and event editor; DCC (SEND CHAT VOICE and RESUME);
SOCKSV4 & V5 support; and more. See documentation in
/opt/kde/share/doc/HTML/de/kvirc/index.html.



Authors:
--------
    Szymon Stefanek <kvirc@tin.it>

%prep
%setup -q
%patch
%patch1
%patch2
for dosfile in `find -type f | xargs file | grep "CRLF" | sed -e "s@:.*@@" ` ; do
    dos2unix -o $dosfile
done

%build
. /etc/opt/kde3/common_options
> admin/libtool.m4.in
./autogen.sh
./configure $configkde \
	--with-qt-library-dir=/usr/lib/qt3/%{_lib} \
	--libdir=/opt/kde3/%{_lib} \
	--with-kde-library-dir=/opt/kde3/%{_lib} \
	--disable-final
make -C src/kvilib/build symlinks
make -C src/kvirc/build symlinks
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%__install -d %{buildroot}%{_datadir}/applnk/Internet
%__install -d %{buildroot}%{_datadir}/mimelnk/text
%suse_update_desktop_file kvirc Network IRCClient
# conflicts with kopete
%__rm -f %{buildroot}%{_datadir}/services/irc.protocol
%__rm -f %{buildroot}%{_datadir}/kvirc/%{_realversion}/modules/lib*.la
%__rm -f %{buildroot}%{_libdir}/lib*.la

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%clean
# clean up the hard disc after build
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc TODO README INSTALL ChangeLog
%{_bindir}/kvirc
%{_bindir}/kvi_run_netscape
%{_bindir}/kvi_search_help
%{_libdir}/libkvilib.so.*
%{_datadir}/appl*/*/*
%{_datadir}/icons/*
%{_datadir}/mimelnk/text/*
%{_datadir}/services/*
%dir %{_datadir}/kvirc
%dir %{_datadir}/kvirc/%{_realversion}
%config(noreplace) %{_datadir}/kvirc/%{_realversion}/config
%{_datadir}/kvirc/%{_realversion}/defscript
%{_datadir}/kvirc/%{_realversion}/help
%{_datadir}/kvirc/%{_realversion}/license
%{_datadir}/kvirc/%{_realversion}/locale
%{_datadir}/kvirc/%{_realversion}/modules
%{_datadir}/kvirc/%{_realversion}/pics
%{_datadir}/kvirc/%{_realversion}/msgcolors
%{_datadir}/kvirc/%{_realversion}/themes
%{_mandir}/man?/kvirc.1.gz

%files devel
%defattr(-,root,root)
%{_bindir}/kvirc-config
%{_includedir}/kvirc
%{_libdir}/libkvilib.so

%changelog
openSUSE Build Service is sponsored by