/[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 979749 - (show annotations) (download)
Fri Feb 26 22:58:05 2016 UTC (6 years, 9 months ago) by luigiwalser
File size: 2459 byte(s)
add patch to fix build with grep 2.23
1 %define major 2
2 %define libname %mklibname fm-qt %major
3 %define devname %mklibname -d fm-qt
4
5 %define rel 5
6
7 Name: pcmanfm-qt
8 Version: 0.10.0
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 %{_datadir}/%{name}/translations
81 %_mandir/man1/pcmanfm-qt.1.*
82
83 %files -n %{libname}
84 %{_libdir}/libfm-qt5.so.%{major}{,.*}
85
86 %files -n %{devname}
87 %{_libdir}/libfm-qt5.so
88 %{_libdir}/pkgconfig/libfm-qt5.pc
89 %{_includedir}/libfm-qt
90
91

  ViewVC Help
Powered by ViewVC 1.1.28