File konversation.spec of Package konversation

#
# spec file for package konversation
#
# Copyright (c) 2013 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:           konversation
Version:        1.5~rc1
Release:        0
%define tar_version 1.5-rc1
Summary:        A User-Friendly IRC Client for KDE
License:        GPL-2.0+
Group:          Productivity/Networking/IRC
Url:            http://konversation.kde.org/
Source0:        http://download.kde.org/unstable/%{name}/%{tar_version}/src/%{name}-%{tar_version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libkde4-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libqca2-devel
BuildRequires:  xz
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
Requires:       kdepim4-runtime
%kde4_pimlibs_requires
%kde4_runtime_requires
Recommends:     %{name}-lang = %{version}
%if 0%{?suse_version} > 1110
Provides:       kde4-konversation = 1.1.77
Obsoletes:      kde4-konversation < 1.1.77
%endif

%description
Konversation is a user-friendly Internet Relay Chat (IRC) client built on the
KDE Platform.

Features:

 Standard IRC features
 SSL server support
 Bookmarking support
 Easy to use graphical user interface
 Multiple servers and channels in one single window
 DCC file transfer
 Multiple identities for different servers
 Text decorations and colors
 OnScreen Display for notifications
 Automatic UTF-8 detection
 Per channel encoding support
 Theme support for nick icons
 Highly configurable

%lang_package
%prep
%setup -q -n %{name}-%{tar_version}

%build
%cmake_kde4 -d build
%make_jobs

%install
pushd build
%kde4_makeinstall
popd

%if 0%{?suse_version}
%suse_update_desktop_file %{name} Qt KDE Network IRCClient
%endif

%if 0%{?suse_version} < 1120
 for i in en et it pt_BR sv uk; do mkdir %{buildroot}%{_kde4_htmldir}/$i/common;done
%endif

# Removed unneeded locales
%if 0%{?suse_version} < 1130
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavian/
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavianlatin/
%endif
#

%find_lang %{name}

%kde_post_install

%clean
rm -rf %{buildroot}

%files 
%defattr(-,root,root,-)
%doc AUTHORS COPYING COPYING-DOCS ChangeLog NEWS README TODO
%{_kde4_bindir}/konversation
%{_kde4_applicationsdir}/konversation.desktop
%doc %{_kde4_htmldir}/en/konversation/
%{_kde4_iconsdir}/hicolor/*/actions/kimproxyaway.*
%{_kde4_iconsdir}/hicolor/*/actions/kimproxyoffline.*
%{_kde4_iconsdir}/hicolor/*/actions/kimproxyonline.*
%{_kde4_iconsdir}/hicolor/*/actions/konv_message.*
%{_kde4_iconsdir}/hicolor/*/apps/konversation.*
%{_kde4_appsdir}/kconf_update/*
%{_kde4_appsdir}/konversation/
%{_kde4_servicesdir}/konvirc.protocol
%{_kde4_servicesdir}/konvirc6.protocol
%{_kde4_servicesdir}/konvircs.protocol

%files lang -f %{name}.lang
%defattr(-,root,root,-)
%exclude %{_kde4_docdir}/HTML/en/konversation

%changelog
openSUSE Build Service is sponsored by