/[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 811608 - (show annotations) (download)
Tue Jan 20 20:43:28 2015 UTC (9 years, 3 months ago) by doktor5000
File size: 2644 byte(s)
- added Requires on kdebase4-runtime for kwin and kdesu
- use kdesu instead as gksu for "run as root" functionality (mga#15088)
  o when run via gksu, no icons are shown
1 %define major 1
2 %define libname %mklibname fm-qt %major
3 %define devname %mklibname -d fm-qt
4 %define qt5 1
5
6 Name: pcmanfm-qt
7 Version: 0.8.0
8 Release: %mkrel 4
9 Source0: http://lxqt.org/downloads/lxqt/%{version}/%{name}-%{version}.tar.xz
10 Summary: File manager for the LXQt desktop
11 URL: http://lxqt.org/
12 License: GPLv2+
13 Group: Graphical desktop/KDE
14 BuildRequires: cmake
15 BuildRequires: doxygen
16 BuildRequires: pkgconfig(libfm) >= 1.2.0
17 BuildRequires: pkgconfig(libmenu-cache)
18 BuildRequires: pkgconfig(glib-2.0)
19 BuildRequires: pkgconfig(gio-unix-2.0)
20 %if "%{qt5}" == "1"
21 BuildRequires: pkgconfig(lxqt-qt5)
22 BuildRequires: pkgconfig(Qt5Widgets)
23 BuildRequires: pkgconfig(Qt5Xml)
24 BuildRequires: pkgconfig(Qt5Help)
25 BuildRequires: pkgconfig(Qt5Test)
26 BuildRequires: pkgconfig(Qt5DBus)
27 BuildRequires: pkgconfig(Qt5X11Extras)
28 %else
29 BuildRequires: pkgconfig(lxqt)
30 BuildRequires: qt4-devel
31 %endif
32 # required for kwin and kdesu for "run as root" functionality (mga#15088)
33 Requires: kdebase4-runtime
34
35 %description
36 File manager for the LXQt desktop
37
38 %package -n %{libname}
39 Summary: PCManFM Qt backend library
40 Group: System/Libraries
41
42 %description -n %{libname}
43 PCManFM Qt backend library
44
45 %package -n %{devname}
46 Summary: Development files for PCManFM
47 Group: Development/C
48 Requires: %libname = %version
49 Provides: %name-devel = %version-%release
50 Provides: lib%name-devel = %version-%release
51
52 %description -n %{devname}
53 Development files for PCManFM
54
55 %prep
56 %setup -q %{name}-%{version}
57
58 # change desktop file name and comment to distinguish it from pcmanfm
59 sed -i 's/File Manager/QT File Manager/' pcmanfm/pcmanfm-qt.desktop.in
60
61 # change gksu to kdesu as with gksu no icons are shown when running as root
62 sed -i 's|gksu %s|%_libdir/kde4/libexec/kdesu %s|g' pcmanfm/preferences.ui pcmanfm/settings.cpp pcmanfm/translations/pcmanfm-qt*.ts
63
64 %if "%{qt5}" == "1"
65 %cmake -DBUILD_DOCUMENTATION=ON -DUSE_QT5=on
66 %else
67 %cmake -DBUILD_DOCUMENTATION=ON
68 %endif
69
70 %build
71 %make -C build
72
73 %install
74 %makeinstall_std -C build
75
76 desktop-file-install --add-category="System;FileTools" \
77 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop
78
79 %files
80 %doc %{_defaultdocdir}/%{name}
81 %{_bindir}/%{name}
82 %{_datadir}/applications/*.desktop
83 %{_datadir}/libfm-qt/translations
84 %{_datadir}/%{name}/translations
85 %_mandir/man1/pcmanfm-qt.1.*
86
87
88 %files -n %{libname}
89 %if "%{qt5}" == "1"
90 %{_libdir}/libfm-qt5.so.%{major}*
91 %else
92 %{_libdir}/libfm-qt.so.%{major}*
93 %endif
94
95 %files -n %{devname}
96 %if "%{qt5}" == "1"
97 %{_libdir}/libfm-qt5.so
98 %{_libdir}/pkgconfig/libfm-qt5.pc
99 %else
100 %{_libdir}/libfm-qt.so
101 %{_libdir}/pkgconfig/libfm-qt.pc
102 %endif
103 %{_includedir}/libfm-qt
104
105

  ViewVC Help
Powered by ViewVC 1.1.30