/[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 790010 - (show annotations) (download)
Sat Oct 18 23:27:07 2014 UTC (7 years, 11 months ago) by doktor5000
File size: 2191 byte(s)
- correct license (SILENT)
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 1
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
33 %description
34 File manager for the LXQt desktop
35
36 %package -n %{libname}
37 Summary: PCManFM Qt backend library
38 Group: System/Libraries
39
40 %description -n %{libname}
41 PCManFM Qt backend library
42
43 %package -n %{devname}
44 Summary: Development files for PCManFM
45 Group: Development/C
46 Requires: %libname = %version
47 Provides: %name-devel = %version-%release
48 Provides: lib%name-devel = %version-%release
49
50 %description -n %{devname}
51 Development files for PCManFM
52
53 %prep
54 %setup -q %{name}-%{version}
55 %if "%{qt5}" == "1"
56 %cmake -DBUILD_DOCUMENTATION=ON -DUSE_QT5=on
57 %else
58 %cmake -DBUILD_DOCUMENTATION=ON
59 %endif
60
61 %build
62 %make -C build
63
64 %install
65 %makeinstall_std -C build
66
67 desktop-file-install --add-category="System;FileTools" \
68 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop
69
70 %files
71 %doc %{_defaultdocdir}/%{name}
72 %{_bindir}/%{name}
73 %{_datadir}/applications/*.desktop
74 %{_datadir}/libfm-qt/translations
75 %{_datadir}/%{name}/translations
76 %_mandir/man1/pcmanfm-qt.1.*
77
78
79 %files -n %{libname}
80 %if "%{qt5}" == "1"
81 %{_libdir}/libfm-qt5.so.%{major}*
82 %else
83 %{_libdir}/libfm-qt.so.%{major}*
84 %endif
85
86 %files -n %{devname}
87 %if "%{qt5}" == "1"
88 %{_libdir}/libfm-qt5.so
89 %{_libdir}/pkgconfig/libfm-qt5.pc
90 %else
91 %{_libdir}/libfm-qt.so
92 %{_libdir}/pkgconfig/libfm-qt.pc
93 %endif
94 %{_includedir}/libfm-qt
95
96

  ViewVC Help
Powered by ViewVC 1.1.28