File choqok.spec of Package choqok

#
# spec file for package choqok
#
# Copyright (c) 2012 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:           choqok
Version:        1.3
Release:        0
Summary:        Micro-Blogging Client for KDE
License:        GPL-3.0
Group:          Productivity/Networking/Other
Url:            http://choqok.gnufolks.org
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  libkde4-devel
BuildRequires:  libqca2-devel
BuildRequires:  libqjson-devel
BuildRequires:  qoauth-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
A Free/Open Source micro-blogging client for the K Desktop Environment.
The name comes from an ancient Persian word which means Sparrow.
It currently supports twitter.com and identi.ca services.

%package devel
Summary:        Micro-Blogging Client for KDE
Group:          Development/Libraries/KDE
Requires:       choqok = %{version}

%description devel
A Free/Open Source micro-blogging client for the K Desktop Environment.
The name comes from an ancient Persian word which means Sparrow.
It currently supports twitter.com and identi.ca services.

%prep
%setup -q

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  pushd build
  %kde4_makeinstall
  %fdupes
  popd
  %suse_update_desktop_file %{name} InstantMessaging
  %kde_post_install
  %find_lang choqok

%post   -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS changelog COPYING README TODO
%{_kde4_applicationsdir}/choqok.desktop
%{_kde4_appsdir}/choqok/
%{_kde4_appsdir}/choqok_filter/
%{_kde4_appsdir}/choqok_nowlistening/
%{_kde4_appsdir}/choqok_searchaction/
%{_kde4_appsdir}/choqok_quickfilter/
%{_kde4_appsdir}/dbus-1
%{_kde4_appsdir}/khtml/kpartplugins/konqchoqok*
%{_kde4_bindir}/choqok
%config %{_kde4_configkcfgdir}/bit_ly_settings.kcfg
%config %{_kde4_configkcfgdir}/choqokappearancesettings.kcfg
%config %{_kde4_configkcfgdir}/choqokbehaviorsettings.kcfg
%config %{_kde4_configkcfgdir}/flickrsettings.kcfg
%config %{_kde4_configkcfgdir}/imstatussettings.kcfg
%config %{_kde4_configkcfgdir}/is_gd_settings.kcfg
%config %{_kde4_configkcfgdir}/mobypicturesettings.kcfg
%config %{_kde4_configkcfgdir}/nowlisteningsettings.kcfg
%config %{_kde4_configkcfgdir}/posteroussettings.kcfg
%config %{_kde4_configkcfgdir}/tinyarro_ws_settings.kcfg
%config %{_kde4_configkcfgdir}/twitgoosettings.kcfg
%config %{_kde4_configkcfgdir}/twitpicsettings.kcfg
%config %{_kde4_configkcfgdir}/untinysettings.kcfg
%config %{_kde4_configkcfgdir}/yourlssettings.kcfg
%{_kde4_htmldir}/*
%{_kde4_iconsdir}/hicolor/*/apps/*
%{_kde4_iconsdir}/hicolor/*/actions/retweet.*
%{_kde4_libdir}/libchoqok.so.*
%{_kde4_libdir}/libtwitterapihelper.so.*
%{_kde4_modulesdir}/choqok*
%{_kde4_modulesdir}/kcm_choqok*
%{_kde4_modulesdir}/konqchoqokplugin.so
%{_kde4_servicesdir}/ServiceMenus/choqok*
%{_kde4_servicesdir}/choqok*
%{_kde4_servicetypesdir}/choqok*

%files devel
%defattr(-,root,root)
%{_kde4_appsdir}/cmake/modules/*
%{_kde4_includedir}/choqok/
%{_kde4_libdir}/libchoqok.so
%{_kde4_libdir}/libtwitterapihelper.so

%changelog