/[packages]/cauldron/pcmanfm-qt/pristine/SPECS/pcmanfm-qt.spec
ViewVC logotype

Contents of /cauldron/pcmanfm-qt/pristine/SPECS/pcmanfm-qt.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 811761 - (show annotations) (download)
Wed Jan 21 19:00:12 2015 UTC (9 years, 2 months ago) by schedbot
File size: 2718 byte(s)
Copying release 0.8.0-5.mga5 to pristine/ directory.
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 5
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 # recommended for kwin and kdesu for "run as root" functionality (mga#15088)
33 # changed to Recommends to allow parallel installation with plasma 5
34 Recommends: kdebase4-runtime
35
36 %description
37 File manager for the LXQt desktop
38
39 %package -n %{libname}
40 Summary: PCManFM Qt backend library
41 Group: System/Libraries
42
43 %description -n %{libname}
44 PCManFM Qt backend library
45
46 %package -n %{devname}
47 Summary: Development files for PCManFM
48 Group: Development/C
49 Requires: %libname = %version
50 Provides: %name-devel = %version-%release
51 Provides: lib%name-devel = %version-%release
52
53 %description -n %{devname}
54 Development files for PCManFM
55
56 %prep
57 %setup -q %{name}-%{version}
58
59 # change desktop file name and comment to distinguish it from pcmanfm
60 sed -i 's/File Manager/QT File Manager/' pcmanfm/pcmanfm-qt.desktop.in
61
62 # change gksu to kdesu as with gksu no icons are shown when running as root
63 sed -i 's|gksu %s|%_libdir/kde4/libexec/kdesu %s|g' pcmanfm/preferences.ui pcmanfm/settings.cpp pcmanfm/translations/pcmanfm-qt*.ts
64
65 %if "%{qt5}" == "1"
66 %cmake -DBUILD_DOCUMENTATION=ON -DUSE_QT5=on
67 %else
68 %cmake -DBUILD_DOCUMENTATION=ON
69 %endif
70
71 %build
72 %make -C build
73
74 %install
75 %makeinstall_std -C build
76
77 desktop-file-install --add-category="System;FileTools" \
78 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop
79
80 %files
81 %doc %{_defaultdocdir}/%{name}
82 %{_bindir}/%{name}
83 %{_datadir}/applications/*.desktop
84 %{_datadir}/libfm-qt/translations
85 %{_datadir}/%{name}/translations
86 %_mandir/man1/pcmanfm-qt.1.*
87
88
89 %files -n %{libname}
90 %if "%{qt5}" == "1"
91 %{_libdir}/libfm-qt5.so.%{major}*
92 %else
93 %{_libdir}/libfm-qt.so.%{major}*
94 %endif
95
96 %files -n %{devname}
97 %if "%{qt5}" == "1"
98 %{_libdir}/libfm-qt5.so
99 %{_libdir}/pkgconfig/libfm-qt5.pc
100 %else
101 %{_libdir}/libfm-qt.so
102 %{_libdir}/pkgconfig/libfm-qt.pc
103 %endif
104 %{_includedir}/libfm-qt
105
106

  ViewVC Help
Powered by ViewVC 1.1.30