/[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 1066063 - (show annotations) (download)
Wed Nov 9 10:38:52 2016 UTC (7 years, 4 months ago) by neoclust
File size: 2426 byte(s)
New version 0.11.1
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.11.1
9 Release: %mkrel %rel
10 Source0: http://downloads.lxqt.org/lxqt/%{version}/%{name}-%{version}.tar.xz
11 Patch0: pcmanfm-qt-0.10.0-grep-2.23.patch
12 Summary: File manager for the LXQt desktop
13 URL: http://lxqt.org/
14 License: GPLv2+
15 Group: Graphical desktop/KDE
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 # recommended for kwin and kdesu for "run as root" functionality (mga#15088)
30 # changed to Recommends to allow parallel installation with plasma 5
31 Recommends: kdebase4-runtime
32
33 %description
34 File manager for the LXQt desktop
35
36 %package -n %{libname}
37 Summary: PCManFM Qt backend library
38 Group: System/Libraries
39
40 %description -n %{libname}
41 PCManFM Qt backend library
42
43 %package -n %{devname}
44 Summary: Development files for PCManFM
45 Group: Development/C
46 Requires: %libname = %version
47 Provides: %name-devel = %version-%release
48 Provides: lib%name-devel = %version-%release
49
50 %description -n %{devname}
51 Development files for PCManFM
52
53 %prep
54 %setup -q %{name}-%{version}
55 %patch0 -p1
56
57 # change desktop file name and comment to distinguish it from pcmanfm
58 sed -i 's/File Manager/QT File Manager/' pcmanfm/pcmanfm-qt.desktop.in
59
60 # change gksu to kdesu as with gksu no icons are shown when running as root
61 sed -i 's|gksu %s|%_libdir/kde4/libexec/kdesu %s|g' pcmanfm/preferences.ui pcmanfm/settings.cpp pcmanfm/translations/pcmanfm-qt*.ts
62
63 %cmake_qt5 -DBUILD_DOCUMENTATION=ON
64
65
66 %build
67 %make -C build
68
69 %install
70 %makeinstall_std -C build
71
72 desktop-file-install --add-category="System;FileTools" \
73 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop
74
75 %files
76 %doc %{_defaultdocdir}/%{name}
77 %{_bindir}/%{name}
78 %{_datadir}/applications/*.desktop
79 %{_datadir}/libfm-qt/translations
80 %_mandir/man1/pcmanfm-qt.1.*
81
82 %files -n %{libname}
83 %{_libdir}/libfm-qt5.so.%{major}{,.*}
84
85 %files -n %{devname}
86 %{_libdir}/libfm-qt5.so
87 %{_libdir}/pkgconfig/libfm-qt5.pc
88 %{_includedir}/libfm-qt
89
90

  ViewVC Help
Powered by ViewVC 1.1.30