File kpackagekit.spec of Package kpackagekit

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


Summary:        KDE interface for PackageKit

Name:           kpackagekit
Version:        0.6.3.3
Release:        6.<RELEASE3>
License:        GPLv3
Group:          System/Packages
#http://websvn.kde.org/trunk/playground/sysadmin/kpackagekit/
# http://kde-apps.org/CONTENT/content-files/84745-kpackagekit-%{version}.7z
Source0:        kpackagekit-%{version}.tar.bz2
Url:            http://www.kde-apps.org/content/show.php/KPackageKit?content=84745
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libkde4-devel libpackagekit-qt-devel xz
Requires:       PackageKit
Recommends:     %{name}-lang = %{version}
Patch:          smolt.diff  
# last used in 11.3
Provides:       kupdateapplet = 0.9.18
Obsoletes:      kupdateapplet <= 0.9.17
# last used in 11.0
Provides:       kde4-opensuse-updater < 0.8
Obsoletes:      kde4-opensuse-updater < 0.8

Obsoletes:      kupjk
%kde4_runtime_requires

%description
KDE interface for PackageKit package management.



Authors:
--------
    Adrien BUSTANY <madcat@mymadcat.com>
    Daniel Nicoletti <dantti85-pk@yahoo.com.br>

#--------------------------------------------------------------------


%lang_package
%prep
%setup  -q
%patch -p1  
%if 0
# Original tarball does not contain the entries to compile the translations
echo "find_package(Msgfmt REQUIRED)" >> CMakeLists.txt
echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt
echo "add_subdirectory( po )" >> CMakeLists.txt
%endif

%build
%cmake_kde4 -d build -- -DEDIT_ORIGNS_DESKTOP_NAME="yast inst_source"
%make_jobs

%install
cd build
%makeinstall
cd ..
%suse_update_desktop_file kpackagekit
%kde_post_install
%find_lang kpackagekit kpackagekit.lang

%files
%defattr(-,root,root)
%_kde4_modulesdir/*.so
%{_libdir}/libkpackagekitlib.so
%_kde4_appsdir/kpackagekit
%_kde4_appsdir/KPackageKitSmartIcon
%_kde4_bindir/kpackagekit
%_kde4_applicationsdir/kpackagekit.desktop
%_kde4_servicesdir
%_kde4_libexecdir/kpackagekitsmarticon
/usr/share/dbus-1/services/org.kde.KPackageKitSmartIcon.service
/usr/share/dbus-1/services/org.freedesktop.PackageKit.service

%files lang -f %{name}.lang

%clean

%changelog
openSUSE Build Service is sponsored by