2014-02-07 22:43:14 +01:00
#
# spec file for package kio
#
2017-01-09 00:41:57 +01:00
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
2014-02-07 22:43:14 +01:00
#
# 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/
#
2015-04-10 18:28:21 +02:00
%bcond_without lang
2017-03-19 15:04:43 +01:00
%define _tar_path 5.32
2014-02-07 22:43:14 +01:00
Name : kio
2017-04-15 10:22:57 +02:00
Version : 5.33.0
2014-02-07 22:43:14 +01:00
Release : 0
2014-07-11 11:58:09 +02:00
%define kf5_version %{version}
2017-01-09 00:41:57 +01:00
BuildRequires : cmake >= 3.0
2015-04-10 18:28:21 +02:00
BuildRequires : extra-cmake-modules >= %{_tar_path}
2014-02-07 22:43:14 +01:00
BuildRequires : fdupes
2015-04-10 18:28:21 +02:00
BuildRequires : karchive-devel >= %{_tar_path}
BuildRequires : kbookmarks-devel >= %{_tar_path}
BuildRequires : kcompletion-devel >= %{_tar_path}
BuildRequires : kconfigwidgets-devel >= %{_tar_path}
BuildRequires : kcoreaddons-devel >= %{_tar_path}
BuildRequires : kdbusaddons-devel >= %{_tar_path}
BuildRequires : kdoctools-devel >= %{_tar_path}
2014-02-07 22:43:14 +01:00
BuildRequires : kf5-filesystem
2015-04-10 18:28:21 +02:00
BuildRequires : kguiaddons-devel >= %{_tar_path}
BuildRequires : ki18n-devel >= %{_tar_path}
BuildRequires : kiconthemes-devel >= %{_tar_path}
BuildRequires : kitemviews-devel >= %{_tar_path}
BuildRequires : kjobwidgets-devel >= %{_tar_path}
BuildRequires : knotifications-devel >= %{_tar_path}
2014-02-07 22:43:14 +01:00
BuildRequires : krb5-devel
2015-04-10 18:28:21 +02:00
BuildRequires : kservice-devel >= %{_tar_path}
BuildRequires : ktextwidgets-devel >= %{_tar_path}
BuildRequires : kwallet-devel >= %{_tar_path}
BuildRequires : kwidgetsaddons-devel >= %{_tar_path}
BuildRequires : kwindowsystem-devel >= %{_tar_path}
BuildRequires : kxmlgui-devel >= %{_tar_path}
2014-02-07 22:43:14 +01:00
BuildRequires : libacl-devel
BuildRequires : libattr-devel
2015-04-10 18:28:21 +02:00
BuildRequires : solid-devel >= %{_tar_path}
2017-02-09 10:30:42 +01:00
BuildRequires : cmake(Qt5Concurrent) >= 5.6.0
BuildRequires : cmake(Qt5Core) >= 5.6.0
BuildRequires : cmake(Qt5DBus) >= 5.6.0
BuildRequires : cmake(Qt5Network) >= 5.6.0
BuildRequires : cmake(Qt5Script) >= 5.6.0
BuildRequires : cmake(Qt5Test) >= 5.6.0
BuildRequires : cmake(Qt5Widgets) >= 5.6.0
BuildRequires : cmake(Qt5X11Extras) >= 5.6.0
BuildRequires : cmake(Qt5Xml) >= 5.6.0
2014-02-07 22:43:14 +01:00
BuildRequires : pkgconfig(openssl)
BuildRequires : pkgconfig(x11)
2015-04-05 13:47:37 +02:00
Requires : %{name} -core = %{version}
2015-04-10 18:28:21 +02:00
%if %{with lang}
2014-06-01 21:54:34 +02:00
Recommends: %{name} -lang = %{version}
2015-04-10 18:28:21 +02:00
%endif
2014-06-03 23:44:27 +02:00
Recommends: kio-extras5
2014-11-02 19:35:39 +01:00
# KIO/FileDialog uses klauncher directly, but we can't add Requires, as that would introduce dep cycle
Recommends: kinit
2014-02-11 03:39:35 +01:00
Summary : Network transparent access to files and data
2014-02-07 22:43:14 +01:00
License : LGPL-2.1+
Group : System/GUI/KDE
Url : http://www.kde.org
2015-02-11 20:54:35 +01:00
Source : http://download.kde.org/stable/frameworks/%{_tar_path} /%{name} -%{version} .tar.xz
2014-06-03 23:42:58 +02:00
Source1 : baselibs.conf
2015-04-12 11:53:55 +02:00
# PATCH-FIX-OPENSUSE kio_help-fallback-to-kde4-docs.patch -- allow kio_help to see into kde4 documentation, needed especially for khelpcenter5
Patch0 : kio_help-fallback-to-kde4-docs.patch
2017-04-12 15:54:30 +02:00
# PATCH-FIX-UPSTREAM enable-natural-sorting-in-KDirSortFilterProxyModel.patch wbauer@tmo.at boo#1033668, kde#343452 -- use natural sorting by default in the KDE file dialog and gwenview
Patch1 : enable-natural-sorting-in-KDirSortFilterProxyModel.patch
2014-02-07 22:43:14 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%description
2014-02-11 03:39:35 +01:00
This framework implements almost all the file management functions you
will ever need. In fact, the KDE file manager (Dolphin) and the KDE
file dialog also uses this to provide its network-enabled file management.
2014-02-07 22:43:14 +01:00
2015-04-05 13:47:37 +02:00
%package core
Summary : Network transparent access to files and data
2017-04-12 15:54:30 +02:00
# core subpackage created with 5.9.0
2017-04-15 10:22:57 +02:00
Group : System/GUI/KDE
2015-04-05 13:47:37 +02:00
Conflicts : kio <= 5.8.0
%description core
This framework implements almost all the file management functions you
will ever need. In fact, the KDE file manager (Dolphin) and the KDE
file dialog also uses this to provide its network-enabled file management.
KIO core libraries, ioslave and daemons.
2014-02-07 22:43:14 +01:00
%package devel
2014-02-11 03:39:35 +01:00
Summary : Network transparent access to files and data
2014-02-07 22:43:14 +01:00
Group : Development/Libraries/KDE
Requires : %{name} = %{version}
2015-04-05 13:47:37 +02:00
Requires : %{name} -core = %{version}
2014-02-07 22:43:14 +01:00
Requires : extra-cmake-modules
2015-04-10 18:28:21 +02:00
Requires : kbookmarks-devel >= %{_tar_path}
Requires : kcompletion-devel >= %{_tar_path}
Requires : kconfig-devel >= %{_tar_path}
Requires : kcoreaddons-devel >= %{_tar_path}
Requires : kitemviews-devel >= %{_tar_path}
Requires : kjobwidgets-devel >= %{_tar_path}
Requires : kservice-devel >= %{_tar_path}
Requires : kxmlgui-devel >= %{_tar_path}
Requires : solid-devel >= %{_tar_path}
2017-02-09 10:30:42 +01:00
Requires : cmake(Qt5Network) >= 5.6.0
2014-02-07 22:43:14 +01:00
%description devel
2014-02-11 03:39:35 +01:00
This framework implements almost all the file management functions you
will ever need. In fact, the KDE file manager (Dolphin) and the KDE
file dialog also uses this to provide its network-enabled file management.
Development files.
2014-02-07 22:43:14 +01:00
2014-06-01 21:57:12 +02:00
%lang_package
2014-02-07 22:43:14 +01:00
%prep
%setup -q
2015-04-12 11:53:55 +02:00
%patch0 -p1
2017-04-12 15:54:30 +02:00
%patch1 -p1
2014-02-07 22:43:14 +01:00
%build
2014-10-04 23:50:53 +02:00
%cmake_kf5 -d build
2014-02-07 22:43:14 +01:00
%make_jobs
%install
%kf5_makeinstall -C build
2015-04-10 18:48:26 +02:00
%fdupes %{buildroot}
2014-02-07 22:43:14 +01:00
2015-04-10 18:28:21 +02:00
%if %{with lang}
2015-04-05 13:47:37 +02:00
%find_lang %{name} 5 %{name} 5.lang
2015-05-03 22:19:26 +02:00
echo " % d o c % l a n g ( c a ) % { _ k f 5 _ m a n d i r } / c a " >>%{name} 5.lang
2015-08-05 11:48:04 +02:00
echo " % d o c % l a n g ( d e ) % { _ k f 5 _ m a n d i r } / d e " >>%{name} 5.lang
2016-11-06 12:10:19 +01:00
echo " % d o c % l a n g ( e s ) % { _ k f 5 _ m a n d i r } / e s " >>%{name} 5.lang
2015-04-10 12:38:09 +02:00
echo " % d o c % l a n g ( i t ) % { _ k f 5 _ m a n d i r } / i t " >>%{name} 5.lang
echo " % d o c % l a n g ( n l ) % { _ k f 5 _ m a n d i r } / n l " >>%{name} 5.lang
echo " % d o c % l a n g ( p t _ B R ) % { _ k f 5 _ m a n d i r } / p t _ B R " >>%{name} 5.lang
echo " % d o c % l a n g ( s v ) % { _ k f 5 _ m a n d i r } / s v " >>%{name} 5.lang
echo " % d o c % l a n g ( u k ) % { _ k f 5 _ m a n d i r } / u k " >>%{name} 5.lang
2015-04-10 18:28:21 +02:00
%endif
2015-04-05 13:47:37 +02:00
%post core -p /sbin/ldconfig
%postun core -p /sbin/ldconfig
2014-10-04 23:50:53 +02:00
2014-02-07 22:43:14 +01:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
2015-04-10 18:28:21 +02:00
%if %{with lang}
2014-10-04 23:50:53 +02:00
%files lang -f %{name}5.lang
2016-07-06 22:32:02 +02:00
%dir %{_kf5_htmldir}
2016-08-08 00:17:37 +02:00
%doc %lang(ca) %{_kf5_htmldir}/ca
%doc %lang(de) %{_kf5_htmldir}/de
2016-11-06 12:10:19 +01:00
%doc %lang(es) %{_kf5_htmldir}/es
2016-08-08 00:17:37 +02:00
%doc %lang(et) %{_kf5_htmldir}/et
%doc %lang(it) %{_kf5_htmldir}/it
2016-12-04 12:11:52 +01:00
%doc %lang(nb) %{_kf5_htmldir}/nb
2016-08-08 00:17:37 +02:00
%doc %lang(nl) %{_kf5_htmldir}/nl
%doc %lang(pt_BR) %{_kf5_htmldir}/pt_BR
%doc %lang(ru) %{_kf5_htmldir}/ru
%doc %lang(sr) %{_kf5_htmldir}/sr
%doc %lang(sr@latin) %{_kf5_htmldir}/sr@latin
%doc %lang(sv) %{_kf5_htmldir}/sv
%doc %lang(uk) %{_kf5_htmldir}/uk
2016-07-06 22:32:02 +02:00
%exclude %dir %{_kf5_htmldir}/en
%exclude %{_kf5_htmldir}/en/*/
2015-04-10 18:28:21 +02:00
%endif
2014-06-01 21:54:34 +02:00
2015-04-05 13:47:37 +02:00
%files core
%doc COPYING* README*
%{_kf5_libdir}/libKF5KIOCore.so.*
%{_kf5_configdir}/accept-languages.codes
%{_kf5_libdir}/libKF5KIONTLM.so.*
%dir %{_kf5_plugindir}/kf5
%dir %{_kf5_plugindir}/kf5/kio
%{_kf5_plugindir}/kf5/kio/file.so
%{_kf5_plugindir}/kf5/kio/ftp.so
%{_kf5_plugindir}/kf5/kio/help.so
%{_kf5_plugindir}/kf5/kio/ghelp.so
%{_kf5_libexecdir}/kio_http_cache_cleaner
%{_kf5_plugindir}/kf5/kio/http.so
%{_kf5_servicesdir}/http_cache_cleaner.desktop
%{_kf5_servicesdir}/data.protocol
%{_kf5_servicesdir}/rtsp.protocol
%{_kf5_servicesdir}/mms.protocol
%{_kf5_servicesdir}/mmst.protocol
%{_kf5_servicesdir}/mmsu.protocol
%{_kf5_servicesdir}/pnm.protocol
%{_kf5_servicesdir}/rtspt.protocol
%{_kf5_servicesdir}/rtspu.protocol
%{_kf5_bindir}/ktelnetservice5
%{_kf5_applicationsdir}/ktelnetservice5.desktop
%{_kf5_plugindir}/kf5/kio/trash.so
%{_kf5_bindir}/ktrash5
%{_kf5_plugindir}/kcm_trash.so
%{_kf5_servicesdir}/kcmtrash.desktop
%{_kf5_libexecdir}/kiod5
%{_kf5_sharedir}/dbus-1/services/org.kde.kiod5.service
%dir %{_kf5_plugindir}/kf5/kiod
%{_kf5_plugindir}/kf5/kiod/kssld.so
2016-02-06 19:04:27 +01:00
%{_kf5_sharedir}/dbus-1/services/org.kde.kssld5.service
2015-04-05 13:47:37 +02:00
2014-02-07 22:43:14 +01:00
%files
%defattr (-,root,root)
%doc COPYING* README*
2016-02-06 19:04:27 +01:00
%{_kf5_libdir}/libKF5KIOGui.so.*
2014-02-07 22:43:14 +01:00
%{_kf5_libdir}/libKF5KIOWidgets.so.*
%{_kf5_libdir}/libKF5KIOFileWidgets.so.*
2014-06-01 21:54:34 +02:00
%{_kf5_configdir}/kshorturifilterrc
%{_kf5_servicetypesdir}/
2014-02-07 22:43:14 +01:00
%{_kf5_bindir}/kcookiejar5
2014-05-04 03:36:11 +02:00
%{_kf5_datadir}/kcookiejar/
2014-02-07 22:43:14 +01:00
%{_kf5_libexecdir}/kpac_dhcp_helper
%{_kf5_libexecdir}/kioslave
2014-03-29 13:40:01 +01:00
%{_kf5_libexecdir}/kioexec
2014-05-04 03:36:11 +02:00
%{_kf5_notifydir}/proxyscout.notifyrc
2015-04-05 13:47:37 +02:00
%{_kf5_plugindir}/kcm_kio.so
%{_kf5_plugindir}/kcm_webshortcuts.so
%dir %{_kf5_plugindir}/kf5/kded
%{_kf5_plugindir}/kf5/kded/kcookiejar.so
%{_kf5_plugindir}/kf5/kded/proxyscout.so
2017-03-20 16:53:51 +01:00
%{_kf5_plugindir}/kf5/kded/remotenotifier.so
2015-09-08 19:24:40 +02:00
%{_kf5_plugindir}/kf5/kiod/kpasswdserver.so
2015-04-05 13:47:37 +02:00
%{_kf5_plugindir}/kf5/urifilters/
2017-03-20 17:24:13 +01:00
%{_kf5_plugindir}/kf5/kio/remote.so
2015-04-05 13:47:37 +02:00
%{_kf5_servicesdir}/cache.desktop
%{_kf5_servicesdir}/cookies.desktop
%{_kf5_servicesdir}/fixhosturifilter.desktop
%{_kf5_servicesdir}/kshorturifilter.desktop
%{_kf5_servicesdir}/kuriikwsfilter.desktop
%{_kf5_servicesdir}/kurisearchfilter.desktop
%{_kf5_servicesdir}/localdomainurifilter.desktop
%{_kf5_servicesdir}/netpref.desktop
%{_kf5_servicesdir}/proxy.desktop
%{_kf5_servicesdir}/searchproviders/
%{_kf5_servicesdir}/smb.desktop
%{_kf5_servicesdir}/useragent.desktop
%{_kf5_servicesdir}/useragentstrings/
%{_kf5_servicesdir}/webshortcuts.desktop
2016-02-06 19:04:27 +01:00
%{_kf5_sharedir}/dbus-1/services/org.kde.kpasswdserver.service
%{_kf5_sharedir}/dbus-1/services/org.kde.kcookiejar5.service
2014-11-02 23:34:35 +01:00
%doc %lang(en) %{_kf5_mandir}/*/kcookiejar5.*
2014-11-03 01:05:40 +01:00
%dir %{_kf5_htmldir}/en
%dir %{_kf5_htmldir}
%doc %lang(en) %{_kf5_htmldir}/en/*/
2014-02-07 22:43:14 +01:00
%files devel
%defattr (-,root,root)
2015-11-08 18:02:06 +01:00
%{_kf5_bindir}/protocoltojson
2014-02-07 22:43:14 +01:00
%{_kf5_libdir}/libKF5KIOCore.so
2016-02-06 19:04:27 +01:00
%{_kf5_libdir}/libKF5KIOGui.so
2014-02-07 22:43:14 +01:00
%{_kf5_libdir}/libKF5KIOWidgets.so
%{_kf5_libdir}/libKF5KIOFileWidgets.so
%{_kf5_libdir}/libKF5KIONTLM.so
%{_kf5_libdir}/cmake/KF5KIO/
2014-11-02 23:34:35 +01:00
%{_kf5_includedir}/
2014-02-07 22:43:14 +01:00
%{_kf5_dbusinterfacesdir}/kf5_org.kde.KDirNotify.xml
%{_kf5_dbusinterfacesdir}/kf5_org.kde.KPasswdServer.xml
%{_kf5_dbusinterfacesdir}/kf5_org.kde.KSlaveLauncher.xml
%{_kf5_dbusinterfacesdir}/kf5_org.kde.kio.FileUndoManager.xml
%{_kf5_dbusinterfacesdir}/kf5_org.kde.KCookieServer.xml
%{_kf5_mkspecsdir}/qt_KIOCore.pri
2016-02-06 19:04:27 +01:00
%{_kf5_mkspecsdir}/qt_KIOGui.pri
2014-02-07 22:43:14 +01:00
%{_kf5_mkspecsdir}/qt_KIOFileWidgets.pri
%{_kf5_mkspecsdir}/qt_KNTLM.pri
%{_kf5_mkspecsdir}/qt_KIOWidgets.pri
%changelog