/[packages]/cauldron/pcmanfm-qt/current/SPECS/pcmanfm-qt.spec
ViewVC logotype

Contents of /cauldron/pcmanfm-qt/current/SPECS/pcmanfm-qt.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1667534 - (show annotations) (download)
Fri Jan 1 09:03:11 2021 UTC (3 months, 2 weeks ago) by wally
File size: 2423 byte(s)
D'oh! BS doesn't support %%autopatch -M (SILENT)
1 %define major 2
2 %define libname %mklibname fm-qt %major
3 %define devname %mklibname fm-qt -d
4
5 %define rel 3
6
7 Name: pcmanfm-qt
8 Version: 0.16.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.github.io/
14 Source0: https://github.com/lxqt/pcmanfm-qt/releases/download/%{version}/%{name}-%{version}.tar.xz
15 ### Upstream patches (1-499)
16 # https://bugs.mageia.org/show_bug.cgi?id=27992
17 # https://github.com/lxqt/pcmanfm-qt/pull/1278
18 Patch1: 0001-Added-nullity-check-for-proxy-model-when-setting-des.patch
19 ### Mageia patches (500-)
20 # mga#26670
21 Patch500: pcmanfm-qt-0.15.0-mga-customize-default-appearance.patch
22
23 BuildRequires: cmake
24 BuildRequires: doxygen
25 BuildRequires: pkgconfig(libfm) >= 1.2.0
26 BuildRequires: pkgconfig(libmenu-cache)
27 BuildRequires: pkgconfig(glib-2.0)
28 BuildRequires: pkgconfig(gio-unix-2.0)
29 BuildRequires: pkgconfig(lxqt)
30 BuildRequires: pkgconfig(Qt5Widgets)
31 BuildRequires: pkgconfig(Qt5Xml)
32 BuildRequires: pkgconfig(Qt5Help)
33 BuildRequires: pkgconfig(Qt5Test)
34 BuildRequires: pkgconfig(Qt5DBus)
35 BuildRequires: pkgconfig(Qt5X11Extras)
36 BuildRequires: cmake(fm-qt)
37
38 Requires: lxqt-archiver
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 Conflicts: lxqt-l10n < 0.13.0-4
45
46 %description
47 File manager for the LXQt desktop.
48
49 %prep
50 %autosetup -p1 -N
51 %patch1 -p1
52
53 # change desktop file generic name to distinguish it from pcmanfm
54 sed -i 's/=File Manager/=QT File Manager/' pcmanfm/pcmanfm-qt.desktop.in
55
56 # change gksu to lxqt-sudo as with gksu no icons are shown when running as root
57 sed -i 's|gksu %s|%{_bindir}/lxqt-sudo -s %s|g' pcmanfm/preferences.ui
58
59 %build
60 %cmake_qt5 -DBUILD_DOCUMENTATION=ON
61 %cmake_build
62
63 %install
64 %cmake_install
65
66 desktop-file-install \
67 --add-category="System;FileTools" \
68 --dir %{buildroot}%{_datadir}/applications \
69 %{buildroot}%{_datadir}/applications/%{name}.desktop
70
71 %files
72 %doc %{_defaultdocdir}/%{name}
73 %{_bindir}/%{name}
74 %{_datadir}/applications/*.desktop
75 %{_sysconfdir}/xdg/autostart/lxqt-desktop.desktop
76 %dir %{_datadir}/pcmanfm-qt
77 %dir %{_datadir}/pcmanfm-qt/lxqt
78 %{_datadir}/pcmanfm-qt/lxqt/settings.conf
79 %{_datadir}/pcmanfm-qt/translations/
80 %{_mandir}/man1/pcmanfm-qt.1.*

  ViewVC Help
Powered by ViewVC 1.1.28