File kio_mtp.spec of Package kio_mtp
#
# spec file for package KIO-MTP (Version VERSION)
#
# Copyright (c) 2012 tittiatcoke@gmail.com
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
%define rname kio-mtp
Name: kio_mtp
License: GPL-2.0+
Group: System/GUI/KDE
Summary: Access MTP devices in KDE
Version: 0.0.1
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
%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