File kio_mtp.spec of Package kio_mtp

#
# spec file for package kio_mtp
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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 rname kio-mtp
Name:           kio_mtp
License:        GPL-2.0+
Group:          System/GUI/KDE
Summary:        Access MTP devices in KDE
Version:        0.75
Release:        0
URL:            https://projects.kde.org/projects/playground/base/kio-mtp
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{rname}-%version.tar.xz
BuildRequires:  libmtp-devel
BuildRequires:  libkde4-devel
Obsoletes:      kio-mtp <= %{version}
Recommends:     android-tools
%kde4_runtime_requires

%description
Provides access to media players and phones (including many Android devices) using the MTP protocol.


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

%build  
  %cmake_kde4 -d build
  %make_jobs  

%install
  cd build  
  %makeinstall  

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%{_kde4_modulesdir}/kio_mtp.so
%dir %{_kde4_appsdir}/konqueror/
%dir %{_kde4_appsdir}/konqueror/dirtree/
%dir %{_kde4_appsdir}/konqueror/dirtree/remote/
%{_kde4_appsdir}/konqueror/dirtree/remote/mtp-network.desktop
%dir %{_kde4_appsdir}/remoteview/
%{_kde4_appsdir}/remoteview/mtp-network.desktop
%dir %{_kde4_appsdir}/solid/
%dir %{_kde4_appsdir}/solid/actions/
%{_kde4_appsdir}/solid/actions/solid_mtp.desktop
%{_kde4_servicesdir}/mtp.protocol

%changelog
openSUSE Build Service is sponsored by