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

Annotation of /cauldron/pcmanfm-qt/current/SPECS/pcmanfm-qt.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 793984 - (hide annotations) (download)
Mon Oct 27 22:34:55 2014 UTC (8 years, 1 month ago) by doktor5000
File size: 2334 byte(s)
- change name and comment in .desktop file to distinguish it from pcmanfm
1 doktor5000 789996 %define major 1
2     %define libname %mklibname fm-qt %major
3 doktor5000 626345 %define devname %mklibname -d fm-qt
4 doktor5000 789996 %define qt5 1
5 doktor5000 626345
6     Name: pcmanfm-qt
7 doktor5000 789996 Version: 0.8.0
8 doktor5000 793186 Release: %mkrel 2
9 doktor5000 626345 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 doktor5000 790010 License: GPLv2+
13 doktor5000 626345 Group: Graphical desktop/KDE
14     BuildRequires: cmake
15 doktor5000 626347 BuildRequires: doxygen
16     BuildRequires: pkgconfig(libfm) >= 1.2.0
17 doktor5000 626345 BuildRequires: pkgconfig(libmenu-cache)
18 doktor5000 626347 BuildRequires: pkgconfig(glib-2.0)
19     BuildRequires: pkgconfig(gio-unix-2.0)
20     %if "%{qt5}" == "1"
21 doktor5000 789996 BuildRequires: pkgconfig(lxqt-qt5)
22 doktor5000 626347 BuildRequires: pkgconfig(Qt5Widgets)
23     BuildRequires: pkgconfig(Qt5Xml)
24     BuildRequires: pkgconfig(Qt5Help)
25     BuildRequires: pkgconfig(Qt5Test)
26     BuildRequires: pkgconfig(Qt5DBus)
27     BuildRequires: pkgconfig(Qt5X11Extras)
28 doktor5000 789996 %else
29     BuildRequires: pkgconfig(lxqt)
30     BuildRequires: qt4-devel
31 doktor5000 626347 %endif
32 doktor5000 626345
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 doktor5000 626347 Requires: %libname = %version
47     Provides: %name-devel = %version-%release
48     Provides: lib%name-devel = %version-%release
49 doktor5000 626345
50     %description -n %{devname}
51     Development files for PCManFM
52    
53     %prep
54 doktor5000 789996 %setup -q %{name}-%{version}
55 doktor5000 793984
56     # change desktop file name and comment to distinguish it from pcmanfm
57     sed -i 's/File Manager/QT File Manager/' pcmanfm/pcmanfm-qt.desktop.in
58    
59 doktor5000 626347 %if "%{qt5}" == "1"
60     %cmake -DBUILD_DOCUMENTATION=ON -DUSE_QT5=on
61     %else
62     %cmake -DBUILD_DOCUMENTATION=ON
63     %endif
64 doktor5000 626345
65     %build
66     %make -C build
67    
68     %install
69     %makeinstall_std -C build
70    
71 doktor5000 626347 desktop-file-install --add-category="System;FileTools" \
72     --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop
73    
74 doktor5000 626345 %files
75 doktor5000 626347 %doc %{_defaultdocdir}/%{name}
76     %{_bindir}/%{name}
77 doktor5000 626345 %{_datadir}/applications/*.desktop
78 doktor5000 789996 %{_datadir}/libfm-qt/translations
79     %{_datadir}/%{name}/translations
80     %_mandir/man1/pcmanfm-qt.1.*
81 doktor5000 626345
82 doktor5000 789996
83 doktor5000 626345 %files -n %{libname}
84 doktor5000 789996 %if "%{qt5}" == "1"
85     %{_libdir}/libfm-qt5.so.%{major}*
86     %else
87     %{_libdir}/libfm-qt.so.%{major}*
88     %endif
89 doktor5000 626345
90     %files -n %{devname}
91 doktor5000 789996 %if "%{qt5}" == "1"
92     %{_libdir}/libfm-qt5.so
93     %{_libdir}/pkgconfig/libfm-qt5.pc
94     %else
95 doktor5000 626345 %{_libdir}/libfm-qt.so
96 doktor5000 789996 %{_libdir}/pkgconfig/libfm-qt.pc
97     %endif
98 doktor5000 626345 %{_includedir}/libfm-qt
99    
100 doktor5000 789996

  ViewVC Help
Powered by ViewVC 1.1.28