krusader/krusader.spec

126 lines
3.8 KiB
RPMSpec

#
# spec file for package krusader
#
# Copyright (c) 2016 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 http://bugs.opensuse.org/
#
Name: krusader
Version: 2.5.0
Release: 0
Summary: A File Manager
License: GPL-2.0+
Group: Productivity/File utilities
Url: http://krusader.sourceforge.net/
Source: http://download.kde.org/stable/krusader/%{version}/%{name}-%{version}.tar.xz
Source1: krusader_browse_iso.desktop
# PATCH-FIX-OPENSUSE krusader-2.4.0-beta2-generate-manpage.patch -- generate manpage
Patch0: krusader-2.4.0-beta2-generate-manpage.patch
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: fdupes
BuildRequires: gettext-devel
BuildRequires: karchive-devel
BuildRequires: kconfig-devel
BuildRequires: kdelibs4support-devel
BuildRequires: kdoctools-devel
BuildRequires: kf5-filesystem
BuildRequires: khtml-devel
BuildRequires: kio-devel
BuildRequires: kparts-devel
BuildRequires: kwallet-devel
BuildRequires: python-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Script)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
Requires: kio_iso = %{version}
Suggests: %{name}-doc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
An advanced twin panel (commander style) file manager for KDE.
%package -n kio_iso
Summary: KIO slave to access ISO images
Group: System/GUI/KDE
Provides: kde4-kio_iso = 1.80.99
Obsoletes: kde4-kio_iso < 1.80.99
%description -n kio_iso
KIO slave to access ISO images like zip- or tar.gz-archives in your
file-browser.
%package doc
Summary: A File Manager
Group: Productivity/File utilities
%description doc
An advanced twin panel (commander style) file manager for KDE.
%prep
%setup -q -n %{name}-%{version}
#patch0 -p1
%build
export RPM_OPT_FLAGS="%{optflags} -fpermissive"
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
mkdir -p %{buildroot}%{_kf5_servicesdir}/ServiceMenus/
cp %{SOURCE1} %{buildroot}%{_kf5_servicesdir}/ServiceMenus/
%suse_update_desktop_file org.kde.krusader.root-mode FileManager Utility
%find_lang %{name}
%fdupes %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc README AUTHORS COPYING ChangeLog TODO SVNNEWS
%{_kf5_applicationsdir}/krusader*.desktop
%{_kf5_appsdir}/krusader
%{_kf5_bindir}/krusader
%{_kf5_iconsdir}/??color/*/apps/krusader*.png
%{_kf5_plugindir}/kio_krarc.so
%{_kf5_servicesdir}/krarc.protocol
%{_kf5_mandir}/man1/krusader.1.gz
%exclude %{_kf5_htmldir}/*/krusader
%files -n kio_iso
%defattr(-,root,root)
%config %{_kf5_configdir}/kio_isorc
%{_kf5_plugindir}/kio_iso.so*
%{_kf5_servicesdir}/iso.protocol
%{_kf5_servicesdir}/ServiceMenus/krusader_browse_iso.desktop
%files doc
%defattr(-,root,root)
%doc %lang(en) %{_kf5_htmldir}/en/krusader
%doc %lang(uk) %{_kf5_htmldir}/uk/krusader
%doc %lang(sv) %{_kf5_htmldir}/sv/krusader
%doc %lang(pt) %{_kf5_htmldir}/pt/krusader
%doc %lang(pt_BR) %{_kf5_htmldir}/pt_BR/krusader
%changelog