File kvirc.spec of Package kvirc
#
# spec file for package kvirc (Version 4.0.2)
#
# Copyright (c) 2011 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/
#
# norootforbuild
Name: kvirc
%define _realversion 4.0
BuildRequires: audiofile-devel cmake fdupes libkde4-devel libqt4-devel
BuildRequires: libQtWebKit-devel libopenssl-devel update-desktop-files
BuildRequires: libsamplerate-devel phonon-devel python-devel
Url: http://www.kvirc.net/
License: KVIrc Irc Client license
Group: Productivity/Networking/IRC
Summary: Graphical Front-End for IRC
Version: 4.0.2
Release: 1
Source: ftp://ftp.kvirc.de/pub/kvirc/%{version}/source/kvirc-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%requires_eq perl
%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.
Authors:
--------
Szymon Stefanek <kvirc@tin.it>
%package devel
License: KVIrc Irc Client license
Summary: Graphical Front-End for IRC
Group: Development/Libraries/C and C++
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 -n kvirc-%{version}
%build
mkdir -p build
pushd build
cmake \
-DCMAKE_C_FLAGS="%{optflags}" \
-DCMAKE_CXX_FLAGS="%{optflags}" \
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DWANT_KDE4=ON \
-DWANT_COEXISTENCE=OFF \
%if %{_lib} == lib64
-DLIB_SUFFIX=64 \
%endif
%{_builddir}/kvirc-%{version}
%__make %{_smp_mflags} VERBOSE=1
popd
%install
pushd build
%makeinstall
%suse_update_desktop_file kvirc Network IRCClient
popd
%fdupes %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
%__rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README INSTALL ChangeLog
%{_bindir}/kvirc*
%{_libdir}/libkvilib*.so.*
%dir %{_libdir}/kvirc
%dir %{_libdir}/kvirc/%{_realversion}
%{_libdir}/kvirc/%{_realversion}/modules
%dir %{_datadir}/kvirc
%dir %{_datadir}/kvirc/%{_realversion}
%{_datadir}/kvirc/%{_realversion}/audio
%{_datadir}/kvirc/%{_realversion}/doc
%{_datadir}/kvirc/%{_realversion}/help
%{_datadir}/kvirc/%{_realversion}/pics
%{_datadir}/kvirc/%{_realversion}/license
%{_datadir}/kvirc/%{_realversion}/msgcolors
%{_datadir}/kvirc/%{_realversion}/modules
%{_datadir}/kvirc/%{_realversion}/config
%{_datadir}/kvirc/%{_realversion}/defscript
%{_datadir}/kvirc/%{_realversion}/locale
%{_datadir}/kvirc/%{_realversion}/themes
%{_datadir}/mime/packages/kvirc.xml
#%dir %{_datadir}/mimelnk
#%dir %{_datadir}/mimelnk/text
#%dir %{_datadir}/mimelnk/applications
#%{_datadir}/mimelnk/text/x-kvc.desktop
#%{_datadir}/mimelnk/text/x-kvs.desktop
#%{_datadir}/mimelnk/applications/x-kvt.desktop
#%{_datadir}/mimelnk/applications/x-kva.desktop
%{_datadir}/applications/kvirc*.desktop
%{_datadir}/icons/hicolor
%{_datadir}/pixmaps/kvirc.png
%{_mandir}/man?/kvirc.*
%{_mandir}/de/man?/kvirc.*
%{_mandir}/it/man?/kvirc.*
%files devel
%defattr(-,root,root)
%{_bindir}/kvirc*-config
%{_libdir}/libkvilib*.so
%changelog