1 |
%define major 2 |
2 |
%define libname %mklibname fm-qt %major |
3 |
%define devname %mklibname -d fm-qt |
4 |
|
5 |
%define rel 1 |
6 |
|
7 |
Name: pcmanfm-qt |
8 |
Version: 0.14.0 |
9 |
Release: %mkrel %rel |
10 |
Summary: File manager for the LXQt desktop |
11 |
License: GPLv2+ |
12 |
Group: Graphical desktop/Other |
13 |
URL: https://lxqt.org/ |
14 |
Source0: https://github.com/lxqt/pcmanfm-qt/releases/download/%{version}/%{name}-%{version}.tar.xz |
15 |
|
16 |
BuildRequires: cmake |
17 |
BuildRequires: doxygen |
18 |
BuildRequires: pkgconfig(libfm) >= 1.2.0 |
19 |
BuildRequires: pkgconfig(libmenu-cache) |
20 |
BuildRequires: pkgconfig(glib-2.0) |
21 |
BuildRequires: pkgconfig(gio-unix-2.0) |
22 |
BuildRequires: pkgconfig(lxqt) |
23 |
BuildRequires: pkgconfig(Qt5Widgets) |
24 |
BuildRequires: pkgconfig(Qt5Xml) |
25 |
BuildRequires: pkgconfig(Qt5Help) |
26 |
BuildRequires: pkgconfig(Qt5Test) |
27 |
BuildRequires: pkgconfig(Qt5DBus) |
28 |
BuildRequires: pkgconfig(Qt5X11Extras) |
29 |
BuildRequires: cmake(fm-qt) |
30 |
Requires: lxqt-l10n |
31 |
|
32 |
# recommended for kwin and kdesu for "run as root" functionality (mga#15088) |
33 |
# changed to Recommends to allow parallel installation with plasma 5 |
34 |
Recommends: kde-cli-tools |
35 |
|
36 |
%description |
37 |
File manager for the LXQt desktop. |
38 |
|
39 |
%prep |
40 |
%setup -q %{name}-%{version} |
41 |
|
42 |
# change desktop file name and comment to distinguish it from pcmanfm |
43 |
sed -i 's/File Manager/QT File Manager/' pcmanfm/pcmanfm-qt.desktop.in |
44 |
|
45 |
# change gksu to lxqt-sudo as with gksu no icons are shown when running as root |
46 |
sed -i 's|gksu %s|%{_bindir}/lxqt-sudo -s %s|g' pcmanfm/preferences.ui |
47 |
|
48 |
%build |
49 |
%cmake_qt5 -DBUILD_DOCUMENTATION=ON -DPULL_TRANSLATIONS=NO |
50 |
%make_build |
51 |
|
52 |
%install |
53 |
%make_install -C build |
54 |
|
55 |
desktop-file-install --add-category="System;FileTools" \ |
56 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop |
57 |
|
58 |
%files |
59 |
%doc %{_defaultdocdir}/%{name} |
60 |
%{_bindir}/%{name} |
61 |
%{_datadir}/applications/*.desktop |
62 |
%{_sysconfdir}/xdg/autostart/lxqt-desktop.desktop |
63 |
%dir %{_datadir}/pcmanfm-qt/lxqt |
64 |
%{_datadir}/pcmanfm-qt/lxqt/settings.conf |
65 |
%{_mandir}/man1/pcmanfm-qt.1.* |