1 |
%define libname %mklibname fm-qt 0.0.0 |
2 |
%define devname %mklibname -d fm-qt |
3 |
%define qt5 0 |
4 |
|
5 |
Name: pcmanfm-qt |
6 |
Version: 0.7.0 |
7 |
Release: %mkrel 1 |
8 |
Source0: http://lxqt.org/downloads/lxqt/%{version}/%{name}-%{version}.tar.xz |
9 |
Summary: File manager for the LXQt desktop |
10 |
URL: http://lxqt.org/ |
11 |
License: GPL |
12 |
Group: Graphical desktop/KDE |
13 |
BuildRequires: cmake |
14 |
BuildRequires: doxygen |
15 |
BuildRequires: pkgconfig(lxqt) |
16 |
BuildRequires: qt4-devel |
17 |
BuildRequires: pkgconfig(libfm) >= 1.2.0 |
18 |
BuildRequires: pkgconfig(libmenu-cache) |
19 |
BuildRequires: pkgconfig(glib-2.0) |
20 |
BuildRequires: pkgconfig(gio-unix-2.0) |
21 |
%if "%{qt5}" == "1" |
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 |
%endif |
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 -c %{name}-%{version} |
52 |
%if "%{qt5}" == "1" |
53 |
%cmake -DBUILD_DOCUMENTATION=ON -DUSE_QT5=on |
54 |
%else |
55 |
%cmake -DBUILD_DOCUMENTATION=ON |
56 |
%endif |
57 |
|
58 |
%build |
59 |
%make -C build |
60 |
|
61 |
%install |
62 |
%makeinstall_std -C build |
63 |
|
64 |
desktop-file-install --add-category="System;FileTools" \ |
65 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop |
66 |
|
67 |
%files |
68 |
%doc %{_defaultdocdir}/%{name} |
69 |
%{_bindir}/%{name} |
70 |
%{_datadir}/applications/*.desktop |
71 |
|
72 |
%files -n %{libname} |
73 |
%{_libdir}/libfm-qt.so.0.0.0 |
74 |
|
75 |
%files -n %{devname} |
76 |
%{_libdir}/libfm-qt.so |
77 |
%{_includedir}/libfm-qt |
78 |
%{_libdir}/pkgconfig/libfm-qt.pc |
79 |
|