File kde3-kvirc.spec of Package kde3-kvirc
#
# spec file for package kde3-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: kde3-kvirc
%define _prefix /opt/kde3
%define _mandir /opt/kde3/share/man
%define _realversion 3.4
BuildRequires: dos2unix kdebase3-devel update-desktop-files libtool
%if 0%{?suse_version} >= 1500
BuildRequires: libopenssl-1_0_0-devel -libopenssl-devel -openssl-1_1
%endif
Url: http://www.kvirc.net/
License: GPL-2.0-or-later
Group: Productivity/Networking/IRC
Summary: Graphical Front-End for IRC
Version: 3.4.2
Release: 5
Source: kvirc-%{version}.tar.bz2
# These files are taken from kvirc SVN
Source1: kvi_dock_win32-0.png
Source2: kvi_dock_win32-1.png
Source3: kvi_dock_win32-2.png
Patch0: kvirc-browser.patch
Patch1: kvirc.diff
Patch2: kvirc-iconsize-fix.patch
Requires: perl = %{perl_version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: kvirc = 3.4.2
Obsoletes: kvirc <= 3.4.2
%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 kde3-kvirc-devel
License: GPL-2.0-or-later
Summary: Graphical Front-End for IRC
Group: Productivity/Networking/IRC
Requires: kde3-kvirc = %{version}
Provides: kvirc-devel = 3.4.2
Obsoletes: kvirc-devel <= 3.4.2
%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 -n kvirc-%{version}
%patch -P 0
%patch -P 1
%patch -P 2 -p1
sed -i 's|return false|return 0|g' `find ./src/ -type f`
sed -i 's|if(len > 0)|if(len != 0)|g' src/modules/rijndael/libkvirijndael.cpp
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
export CXXFLAGS="$RPM_OPT_FLAGS"
./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
install -d %{buildroot}%{_datadir}/icons/hicolor/16x16/apps
install -d %{buildroot}%{_datadir}/icons/hicolor/22x22/apps
cp -f %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/kvi_dock_part-0.png
cp -f %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/kvi_dock_part-1.png
cp -f %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/kvi_dock_part-2.png
cp -f src/modules/dockwidget/kvi_dock_part-0.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/kvi_dock_part-0.png
cp -f src/modules/dockwidget/kvi_dock_part-1.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/kvi_dock_part-1.png
cp -f src/modules/dockwidget/kvi_dock_part-2.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/kvi_dock_part-2.png
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%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
%files devel
%defattr(-,root,root)
%{_bindir}/kvirc-config
%{_includedir}/kvirc
%{_libdir}/libkvilib.so
%changelog