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

  ViewVC Help
Powered by ViewVC 1.1.28