LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File apper.spec of Package apper.102 (Project openSUSE:12.1:Update)

#
# spec file for package apper
#
# 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:           apper
Version:        0.7.0
Release:        1
License:        GPL-2.0+
Group:          System/Packages
Source0:        %{name}-%{version}.tar.bz2
Patch0:         revert-upstream.diff
Patch1:         apper-accept-eula.diff
Patch2:         apper-ui-fixes.diff
Patch3:         apper-c33ab740-file-install-crash.diff
Patch4:         apper-no-dbus-service.diff
Patch5:         apper-no-user-proxy.diff
Url:            http://kde-apps.org/content/show.php/Apper?content=84745
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libkde4-devel
BuildRequires:  libpackagekit-qt2-devel
Requires:       PackageKit
Recommends:     %{name}-lang = %{version}
# last used in 11.4
Obsoletes:      kpackagekit <= 0.6.3.3
Provides:       kpackagekit = 0.7
# last used in 11.3
Provides:       kupdateapplet = 0.9.18
Obsoletes:      kupdateapplet <= 0.9.17
%kde4_runtime_requires

%description
KDE interface for PackageKit package management.


%lang_package
%prep
%setup -q -n %{name}-%{version}
# For now revert this specific commit to make libapper.so in a private library. INSTALL_RPATH seems not to function
%patch0 -p1
%patch1 -p1
#%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

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

%install
cd build
%makeinstall
cd ..
%suse_update_desktop_file apper
%kde_post_install
%find_lang %{name}

%files
%defattr(-,root,root)
%_kde4_modulesdir/*.so
%_kde4_modulesdir/libexec/apper-sentinel
%_kde4_appsdir/apper/
%_kde4_appsdir/ApperSentinel/
%_kde4_bindir/apper
#_kde4_libdir/apper/libapper.so
%_kde4_libdir/libapper.so
%_kde4_applicationsdir/apper.desktop
%_kde4_servicesdir/kcm_apper.desktop
%_kde4_servicesdir/kded/apperd.desktop
/usr/share/dbus-1/services/org.freedesktop.PackageKit.service
/usr/share/dbus-1/services/org.kde.ApperSentinel.service

%files lang -f %{name}.lang

%changelog