1 |
%define major 2 |
2 |
%define libname %mklibname fm-qt %major |
3 |
%define devname %mklibname fm-qt -d |
4 |
|
5 |
%define rel 1 |
6 |
|
7 |
Name: pcmanfm-qt |
8 |
Version: 1.2.1 |
9 |
Release: %mkrel %rel |
10 |
Summary: File manager for the LXQt desktop |
11 |
License: GPLv2+ |
12 |
Group: Graphical desktop/Other |
13 |
URL: https://lxqt-project.org/ |
14 |
Source0: https://github.com/lxqt/pcmanfm-qt/releases/download/%{version}/%{name}-%{version}.tar.xz |
15 |
### Upstream patches (1-499) |
16 |
|
17 |
### Mageia patches (500-) |
18 |
# mga#26670 |
19 |
Patch500: pcmanfm-qt-1.2.0-mga-customize-default-appearance.patch |
20 |
|
21 |
BuildRequires: cmake |
22 |
BuildRequires: doxygen |
23 |
BuildRequires: pkgconfig(libfm) >= 1.2.0 |
24 |
BuildRequires: pkgconfig(libmenu-cache) |
25 |
BuildRequires: pkgconfig(glib-2.0) |
26 |
BuildRequires: pkgconfig(gio-unix-2.0) |
27 |
BuildRequires: pkgconfig(lxqt) |
28 |
BuildRequires: pkgconfig(Qt5Core) |
29 |
BuildRequires: pkgconfig(Qt5Widgets) |
30 |
BuildRequires: pkgconfig(Qt5Xml) |
31 |
BuildRequires: pkgconfig(Qt5Help) |
32 |
BuildRequires: pkgconfig(Qt5Test) |
33 |
BuildRequires: pkgconfig(Qt5DBus) |
34 |
BuildRequires: pkgconfig(Qt5X11Extras) |
35 |
BuildRequires: cmake(fm-qt) |
36 |
|
37 |
Requires: lxqt-archiver |
38 |
Requires: qterminal |
39 |
|
40 |
# recommended for kwin and kdesu for "run as root" functionality (mga#15088) |
41 |
# changed to Recommends to allow parallel installation with plasma 5 |
42 |
Recommends: kde-cli-tools |
43 |
|
44 |
%description |
45 |
File manager for the LXQt desktop. |
46 |
|
47 |
%prep |
48 |
%autosetup -p1 |
49 |
|
50 |
# change desktop file generic name to distinguish it from pcmanfm |
51 |
sed -i 's/=File Manager/=QT File Manager/' pcmanfm/pcmanfm-qt.desktop.in |
52 |
|
53 |
%build |
54 |
%cmake_qt5 -DBUILD_DOCUMENTATION=ON |
55 |
%cmake_build |
56 |
|
57 |
%install |
58 |
%cmake_install |
59 |
|
60 |
desktop-file-install \ |
61 |
--add-category="System;FileTools" \ |
62 |
--dir %{buildroot}%{_datadir}/applications \ |
63 |
%{buildroot}%{_datadir}/applications/%{name}.desktop |
64 |
|
65 |
%files |
66 |
%doc %{_defaultdocdir}/%{name} |
67 |
%{_bindir}/%{name} |
68 |
%{_datadir}/applications/*.desktop |
69 |
%{_sysconfdir}/xdg/autostart/lxqt-desktop.desktop |
70 |
%dir %{_datadir}/pcmanfm-qt |
71 |
%dir %{_datadir}/pcmanfm-qt/lxqt |
72 |
%{_datadir}/pcmanfm-qt/lxqt/settings.conf |
73 |
%{_datadir}/pcmanfm-qt/translations/ |
74 |
%{_mandir}/man1/pcmanfm-qt.1.* |