File kget.spec of Package kget4

# spec file for package kget
# Copyright (c) 2017 SUSE LINUX 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

Name:           kget
Version:        17.08.3
Release:        0
Summary:        Download Manager
License:        GPL-2.0+
Group:          Productivity/Networking/Other
Source0:        %{name}-%{version}.tar.xz
Patch0:         fix-hibernate-and-suspend.patch
Patch1:         properly-restore-listview-header-state.patch
%if 0%{?suse_version} > 1325
BuildRequires:  libboost_headers-devel
BuildRequires:  boost-devel
BuildRequires:  gpgme-devel
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libkonq-devel
BuildRequires:  libktorrent-devel
BuildRequires:  libmms-devel
BuildRequires:  libqca2-devel
BuildRequires:  sqlite-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

An advanced download manager for KDE

%setup -q
%patch0 -p1
%patch1 -p1

%ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
  %cmake_kde4 -d build

  cd build
  cd ..
  %suse_update_desktop_file -r kget         System   TrayIcon

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

  rm -rf %{buildroot}


openSUSE Build Service is sponsored by