1 |
%define major 1 |
%define major 2 |
2 |
%define libname %mklibname fm-qt %major |
%define libname %mklibname fm-qt %major |
3 |
%define devname %mklibname -d fm-qt |
%define devname %mklibname -d fm-qt |
|
%define qt5 1 |
|
4 |
|
|
5 |
Name: pcmanfm-qt |
Name: pcmanfm-qt |
6 |
Version: 0.8.0 |
Version: 0.9.0 |
7 |
Release: %mkrel 5 |
Release: %mkrel 1 |
8 |
Source0: http://lxqt.org/downloads/lxqt/%{version}/%{name}-%{version}.tar.xz |
Source0: http://downloads.lxqt.org/lxqt/%{version}/%{name}-%{version}.tar.xz |
9 |
Summary: File manager for the LXQt desktop |
Summary: File manager for the LXQt desktop |
10 |
URL: http://lxqt.org/ |
URL: http://lxqt.org/ |
11 |
License: GPLv2+ |
License: GPLv2+ |
16 |
BuildRequires: pkgconfig(libmenu-cache) |
BuildRequires: pkgconfig(libmenu-cache) |
17 |
BuildRequires: pkgconfig(glib-2.0) |
BuildRequires: pkgconfig(glib-2.0) |
18 |
BuildRequires: pkgconfig(gio-unix-2.0) |
BuildRequires: pkgconfig(gio-unix-2.0) |
19 |
%if "%{qt5}" == "1" |
BuildRequires: pkgconfig(lxqt) |
|
BuildRequires: pkgconfig(lxqt-qt5) |
|
20 |
BuildRequires: pkgconfig(Qt5Widgets) |
BuildRequires: pkgconfig(Qt5Widgets) |
21 |
BuildRequires: pkgconfig(Qt5Xml) |
BuildRequires: pkgconfig(Qt5Xml) |
22 |
BuildRequires: pkgconfig(Qt5Help) |
BuildRequires: pkgconfig(Qt5Help) |
23 |
BuildRequires: pkgconfig(Qt5Test) |
BuildRequires: pkgconfig(Qt5Test) |
24 |
BuildRequires: pkgconfig(Qt5DBus) |
BuildRequires: pkgconfig(Qt5DBus) |
25 |
BuildRequires: pkgconfig(Qt5X11Extras) |
BuildRequires: pkgconfig(Qt5X11Extras) |
|
%else |
|
|
BuildRequires: pkgconfig(lxqt) |
|
|
BuildRequires: qt4-devel |
|
|
%endif |
|
26 |
# recommended for kwin and kdesu for "run as root" functionality (mga#15088) |
# recommended for kwin and kdesu for "run as root" functionality (mga#15088) |
27 |
# changed to Recommends to allow parallel installation with plasma 5 |
# changed to Recommends to allow parallel installation with plasma 5 |
28 |
Recommends: kdebase4-runtime |
Recommends: kdebase4-runtime |
56 |
# change gksu to kdesu as with gksu no icons are shown when running as root |
# 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 |
sed -i 's|gksu %s|%_libdir/kde4/libexec/kdesu %s|g' pcmanfm/preferences.ui pcmanfm/settings.cpp pcmanfm/translations/pcmanfm-qt*.ts |
58 |
|
|
|
%if "%{qt5}" == "1" |
|
|
%cmake -DBUILD_DOCUMENTATION=ON -DUSE_QT5=on |
|
|
%else |
|
59 |
%cmake -DBUILD_DOCUMENTATION=ON |
%cmake -DBUILD_DOCUMENTATION=ON |
60 |
%endif |
|
61 |
|
|
62 |
%build |
%build |
63 |
%make -C build |
%make -C build |
76 |
%{_datadir}/%{name}/translations |
%{_datadir}/%{name}/translations |
77 |
%_mandir/man1/pcmanfm-qt.1.* |
%_mandir/man1/pcmanfm-qt.1.* |
78 |
|
|
|
|
|
79 |
%files -n %{libname} |
%files -n %{libname} |
|
%if "%{qt5}" == "1" |
|
80 |
%{_libdir}/libfm-qt5.so.%{major}* |
%{_libdir}/libfm-qt5.so.%{major}* |
|
%else |
|
|
%{_libdir}/libfm-qt.so.%{major}* |
|
|
%endif |
|
81 |
|
|
82 |
%files -n %{devname} |
%files -n %{devname} |
|
%if "%{qt5}" == "1" |
|
83 |
%{_libdir}/libfm-qt5.so |
%{_libdir}/libfm-qt5.so |
84 |
%{_libdir}/pkgconfig/libfm-qt5.pc |
%{_libdir}/pkgconfig/libfm-qt5.pc |
|
%else |
|
|
%{_libdir}/libfm-qt.so |
|
|
%{_libdir}/pkgconfig/libfm-qt.pc |
|
|
%endif |
|
85 |
%{_includedir}/libfm-qt |
%{_includedir}/libfm-qt |
86 |
|
|
87 |
|
|