kio-extras5/kio-extras5.spec

126 lines
4.1 KiB
RPMSpec

#
# spec file for package kio-extras5
#
# Copyright (c) 2014 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/
#
Name: kio-extras5
Version: 5.1.1
Release: 0
Summary: Additional KIO-slaves for KDE applications
License: GPL-2.0+
Group: System/GUI/KDE
Url: http://www.kde.org
Source: kio-extras-%{version}.tar.xz
Source99: %{name}-rpmlintrc
# PATCH-FIX-UPSTREAM 0001-Port-comicbook-thumbnailer-to-KF5.patch
Patch0: 0001-Port-comicbook-thumbnailer-to-KF5.patch
# PATCH-FIX-UPSTREAM 0002-Port-textcreator-thumbnailer.patch
Patch1: 0002-Port-textcreator-thumbnailer.patch
# PATCH-FIX-UPSTREAM 0003-don-t-screw-up-the-filenames.patch
Patch2: 0003-don-t-screw-up-the-filenames.patch
# PATCH-FIX-UPSTREAM 0004-Added-support-for-NFSv3-major-refactoring-fixed-bugs.patch
Patch3: 0004-Added-support-for-NFSv3-major-refactoring-fixed-bugs.patch
# PATCH-FIX-UPSTREAM 0005-kio_sftp-Use-the-right-type-for-timeout_sec-and-time.patch
Patch4: 0005-kio_sftp-Use-the-right-type-for-timeout_sec-and-time.patch
BuildRequires: OpenEXR-devel
BuildRequires: karchive-devel
BuildRequires: kconfig-devel
BuildRequires: kconfigwidgets-devel
BuildRequires: kcoreaddons-devel
BuildRequires: kdbusaddons-devel
BuildRequires: kdelibs4support-devel
BuildRequires: kdnssd-framework-devel
BuildRequires: kdoctools-devel
BuildRequires: kf5-filesystem
BuildRequires: khtml-devel
BuildRequires: ki18n-devel
BuildRequires: kiconthemes-devel
BuildRequires: kio-devel
BuildRequires: kpty-devel
BuildRequires: libjpeg-devel
BuildRequires: libssh-devel
BuildRequires: openslp-devel
BuildRequires: phonon4qt5-devel
BuildRequires: solid-devel
BuildRequires: xz
BuildRequires: pkgconfig(Qt5DBus) >= 5.3.0
BuildRequires: pkgconfig(Qt5Network) >= 5.3.0
BuildRequires: pkgconfig(Qt5Svg) >= 5.3.0
BuildRequires: pkgconfig(Qt5Test) >= 5.3.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.3.0
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(exiv2)
BuildRequires: pkgconfig(smbclient)
# we want some imageformats in
Recommends: libqt5-qtimageformats
Recommends: kimageformats
Recommends: %{name}-lang
#BuildRequires: update-desktop-files
Provides: kfileaudiopreview = 4.100.0
Obsoletes: kfileaudiopreview <= 4.100.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Additional KIO-slaves for KDE applications.
%lang_package
%prep
%setup -q -n kio-extras-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
sed -i '/^add_subdirectory( doc )/d' CMakeLists.txt
%build
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5
%make_jobs
%install
%kf5_makeinstall -C build
# we don't need nor want devel symlink, and dbus interface -- kio-extras don't install any headers,
# nor are meant for development
rm -rf %{buildroot}%{_kf5_sharedir}/dbus-1/
rm -rf %{buildroot}%{_kf5_libdir}/libmolletnetwork.so
find %{buildroot} -type f -name '*trash*' -exec rm -fv {} ';'
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_kf5_libdir}/libmolletnetwork.so.*
%{_kf5_plugindir}/
%{_kf5_configkcfgdir}/
%{_kf5_servicesdir}/
%{_kf5_servicetypesdir}/
%{_kf5_sharedir}/kio_bookmarks/
%{_kf5_sharedir}/kio_desktop/
%{_kf5_sharedir}/kio_docfilter/
%{_kf5_sharedir}/kio_info/
%{_kf5_sharedir}/konqsidebartng/
%{_kf5_sharedir}/konqueror/
%{_kf5_sharedir}/remoteview/
%{_kf5_sharedir}/mime/packages/kf5_network.xml
%files lang
%defattr(-,root,root)
%{_kf5_localedir}/
%changelog