File choqok.spec of Package choqok

#
# spec file for package choqok
#
# 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/
#



Name:           choqok
BuildRequires:  kde4-filesystem libkde4-devel libqca2-devel libqjson-devel qoauth-devel
BuildRequires:  fdupes licenses update-desktop-files
License:        GPLv3
Group:          Productivity/Networking/Other
Summary:        Micro-Blogging Client for KDE
Version:        1.0
Release:        1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %{name}-%{version}.tar.bz2
Url:            http://choqok.gnufolks.org
%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.



Authors:
--------
    Mehrdad Momeny <mehrdad.momeny@gmail.com>

%package devel
Summary:        Micro-Blogging Client for KDE
Group:          Development/Libraries/KDE
License:        GPLv3
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.



Authors:
--------
    Mehrdad Momeny <mehrdad.momeny@gmail.com>


%prep
%setup -q -n %{name}-%{version} 

%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
%if %suse_version < 1120
  mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/sv/common
  mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/pt/common
  mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/pt_BR/common
  mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/uk/common
%endif

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS changelog COPYING README TODO
/usr/bin/choqok
%{_libdir}/libchoqok.so.*
%{_libdir}/libtwitterapihelper.so.*
/usr/share/applications/kde4/choqok.desktop
%_kde4_servicetypesdir/choqok*
%_kde4_servicesdir/ServiceMenus/choqok*
%_kde4_servicesdir/choqok*
%_kde4_appsdir/choqok/
%_kde4_appsdir/choqok_filter/
%_kde4_appsdir/choqok_nowlistening/
%_kde4_appsdir/choqok_searchaction/
%_kde4_appsdir/khtml/kpartplugins/konqchoqok*
%_kde4_htmldir/*
%_kde4_modulesdir/choqok*
%_kde4_modulesdir/kcm_choqok*
%_kde4_modulesdir/konqchoqokplugin.so
%_kde4_sharedir/config.kcfg/choqokappearancesettings.kcfg
%_kde4_sharedir/config.kcfg/choqokbehaviorsettings.kcfg
%_kde4_sharedir/config.kcfg/nowlisteningsettings.kcfg
%_kde4_sharedir/config.kcfg/tinyarro_ws_settings.kcfg
%_kde4_sharedir/config.kcfg/twitpicsettings.kcfg
%_kde4_sharedir/config.kcfg/untinysettings.kcfg
#%_kde4_sharedir/config.kcfg/yfrogsettings.kcfg
%_kde4_sharedir/config.kcfg/yourlssettings.kcfg
%_kde4_sharedir/config.kcfg/bit_ly_settings.kcfg
%_kde4_sharedir/config.kcfg/flickrsettings.kcfg
%_kde4_sharedir/config.kcfg/imstatussettings.kcfg
%_kde4_sharedir/config.kcfg/mobypicturesettings.kcfg
%_kde4_sharedir/config.kcfg/posteroussettings.kcfg
%_kde4_sharedir/config.kcfg/twitgoosettings.kcfg

/usr/share/icons/hicolor/*/apps/*
/usr/share/icons/hicolor/*/actions/retweet.*
%dir %_kde4_appsdir/dbus-1
%dir %_kde4_appsdir/dbus-1/services
%_kde4_appsdir/dbus-1/services/org.kde.choqok.service

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

%changelog
openSUSE Build Service is sponsored by