File polkit-kde-1.spec of Package polkit-kde-1

#
# spec file for package polkit-kde-1 (Version 0.95.1.svn1074649)
#
# 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/
#

# norootforbuild

%define debug_package_requires libpolkit-kde-1-0 = %{version}-%{release}

Name:           polkit-kde-1
BuildRequires:  automoc4 cmake kde4-filesystem libqt4-devel
BuildRequires:  libkde4-devel libpolkit-qt-1-devel
License:        GPLv2 ; LGPLv2.1+
Group:          Development/Libraries/KDE
Summary:        PolicyKit authentication agent for KDE
%define rversion svn1074649
Version:        0.95.1.%{rversion}
Release:        2
Url:            http://api.kde.org/kdesupport-api/kdesupport-apidocs/polkit-qt/html/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/
Source0:        %{name}-%{rversion}.tar.bz2
Patch1:         proper_autostart_location.diff
Patch2:         no-session.diff
Patch3:         fix-focus.diff

%description
Provides Policy Kit Authentication Agent that nicely fits to KDE.


Authors:
--------
    Daniel Nicoletti <dantti85-pk@yahoo.com.br>
    Dario Freddi <drf54321@gmail.com>

%prep
%setup -n %{name}-%{rversion}
%patch1
%patch2

%build
  %cmake_kde4 -d build 
  %make_jobs

%install
  cd build
  %makeinstall
  cd ..
  rm -rf $RPM_BUILD_ROOT/usr/share/locale/sr@ijekavian
  %find_lang polkit-kde-authentication-agent-1 %{name}.lang
  %find_lang desktop_extragear-base_polkit-kde-1 %{name}.lang
  %find_lang kcm_polkitactions %{name}.lang

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root)
/usr/share/autostart/polkit-kde-authentication-agent-1.desktop
%{_libdir}/kde4/libexec/polkit-kde-authentication-agent-1
/etc/dbus-1/system.d/org.kde.polkitkde1.helper.conf
%{_libdir}/kde4/kcm_polkitactions.so
%{_libdir}/kde4/kcm_polkitconfig.so
%{_libdir}/kde4/libexec/polkitkde1helper
%_kde_share_dir/services/kcm_polkitactions.desktop
%_kde_share_dir/services/kcm_polkitconfig.desktop
%_kde_share_dir/services/settings-system-policies.desktop
/usr/share/dbus-1/system-services/org.kde.polkitkde1.helper.service
/usr/share/polkit-1/actions/org.kde.polkitkde1.policy

%changelog
openSUSE Build Service is sponsored by