]>
Commit | Line | Data |
---|---|---|
634a4f0e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gtk3 # use GTK+ 3.x instead of GTK+ 2.x | |
4 | ||
5 | %define libfm_ver 1.3.2 | |
ad1c0913 | 6 | Summary: File manager for GTK |
067c21a0 | 7 | Summary(pl.UTF-8): Zarządca plików dla GTK |
ad1c0913 | 8 | Name: pcmanfm |
bacb9f89 | 9 | Version: 1.3.2 |
634a4f0e | 10 | Release: 2 |
56c8c30b | 11 | License: GPL v2+ |
ad1c0913 | 12 | Group: X11/Applications |
634a4f0e | 13 | Source0: https://downloads.sourceforge.net/pcmanfm/%{name}-%{version}.tar.xz |
bacb9f89 | 14 | # Source0-md5: ef7c4417d2697ef138d175db7aeae15a |
ad1c0913 | 15 | URL: http://pcmanfm.sourceforge.net/ |
634a4f0e | 16 | BuildRequires: autoconf >= 2.63 |
ad1c0913 | 17 | BuildRequires: automake |
e5b49385 | 18 | BuildRequires: dbus-glib-devel >= 0.31 |
7d392fb8 | 19 | BuildRequires: gettext-tools |
634a4f0e JB |
20 | BuildRequires: glib2-devel >= 1:2.18.0 |
21 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.8} | |
22 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0} | |
23 | BuildRequires: intltool >= 0.40.0 | |
24 | BuildRequires: libfm-devel >= %{libfm_ver} | |
25 | BuildRequires: libfm-gtk-devel >= %{libfm_ver} | |
e5b49385 | 26 | BuildRequires: libtool |
56c8c30b | 27 | BuildRequires: menu-cache-devel >= 0.3.2 |
634a4f0e | 28 | BuildRequires: pango-devel >= 1:1.20.0 |
ad1c0913 | 29 | BuildRequires: pkgconfig |
634a4f0e JB |
30 | %if %{with gtk3} |
31 | BuildRequires: pkgconfig(libfm-gtk3) >= %{libfm_ver} | |
32 | %else | |
33 | BuildRequires: pkgconfig(libfm-gtk) >= %{libfm_ver} | |
34 | %endif | |
5ccd4402 | 35 | BuildRequires: sed >= 4.0 |
a3d2d3f1 | 36 | BuildRequires: tar >= 1:1.22 |
634a4f0e | 37 | BuildRequires: xorg-lib-libX11-devel |
a3d2d3f1 | 38 | BuildRequires: xz |
e5b49385 MB |
39 | Requires(post,postun): desktop-file-utils |
40 | Requires(post,postun): shared-mime-info | |
634a4f0e JB |
41 | Requires: glib2 >= 1:2.18.0 |
42 | Requires: libfm >= %{libfm_ver} | |
43 | Requires: pango >= 1:1.20.0 | |
92637dd5 ER |
44 | Suggests: gnome-icon-theme |
45 | Suggests: lxde-icon-theme | |
ad1c0913 MG |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
49 | pcmanfm is a fast and lightweight file manager which features tabbed | |
50 | browsing and user-friendly interface. | |
51 | ||
4203178a JR |
52 | %description -l pl.UTF-8 |
53 | pcmanfm jest szybkim i lekkim zarządcą plików z przyjaznym interfejsem | |
54 | użytkownika, umożliwiającym przeglądanie katalogów w zakładkach. | |
ad1c0913 | 55 | |
634a4f0e JB |
56 | %package devel |
57 | Summary: Header file for pcmanfm modules | |
58 | Summary(pl.UTF-8): Plik nagłówkowy dla modułów pcmanfm | |
59 | Group: Development/Libraries | |
60 | Requires: libfm-devel >= %{libfm_ver} | |
61 | ||
62 | %description devel | |
63 | Header file for pcmanfm modules. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Plik nagłówkowy dla modułów pcmanfm. | |
67 | ||
ad1c0913 | 68 | %prep |
332f94d4 | 69 | %setup -q |
5ccd4402 | 70 | |
ad1c0913 | 71 | %build |
e5b49385 MB |
72 | %{__intltoolize} |
73 | %{__libtoolize} | |
ad1c0913 MG |
74 | %{__aclocal} |
75 | %{__autoconf} | |
e5b49385 | 76 | %{__autoheader} |
ad1c0913 | 77 | %{__automake} |
5ccd4402 | 78 | %configure \ |
634a4f0e | 79 | %{?with_gtk3:--with-gtk=3} |
ad1c0913 MG |
80 | %{__make} |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
634a4f0e | 84 | |
ad1c0913 MG |
85 | %{__make} install \ |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
775bc6ee ER |
88 | # see lxde-common |
89 | install -d $RPM_BUILD_ROOT/etc/xdg/pcmanfm/LXDE | |
634a4f0e JB |
90 | # for modules (PACKAGE_MODULES_DIR) |
91 | install -d $RPM_BUILD_ROOT%{_libdir}/pcmanfm | |
92 | ||
93 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{tt_RU,tt} | |
775bc6ee | 94 | |
775bc6ee | 95 | |
ad1c0913 MG |
96 | %find_lang %{name} --all-name |
97 | ||
98 | %clean | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
e5b49385 | 101 | %post |
e5b49385 MB |
102 | %update_desktop_database |
103 | ||
104 | %postun | |
5ccd4402 | 105 | %update_desktop_database |
e5b49385 | 106 | |
ad1c0913 MG |
107 | %files -f %{name}.lang |
108 | %defattr(644,root,root,755) | |
888447d2 | 109 | %doc AUTHORS TODO |
775bc6ee ER |
110 | %dir /etc/xdg/pcmanfm |
111 | %dir /etc/xdg/pcmanfm/default | |
112 | %dir /etc/xdg/pcmanfm/LXDE | |
113 | %config(noreplace) %verify(not md5 mtime size) /etc/xdg/pcmanfm/default/pcmanfm.conf | |
5ccd4402 | 114 | %attr(755,root,root) %{_bindir}/pcmanfm |
634a4f0e | 115 | %dir %{_libdir}/pcmanfm |
5ccd4402 | 116 | %{_mandir}/man1/pcmanfm.1* |
9733be84 | 117 | %dir %{_datadir}/%{name} |
f0b995ca | 118 | %{_datadir}/%{name}/ui |
5ccd4402 ER |
119 | %{_desktopdir}/pcmanfm.desktop |
120 | %{_desktopdir}/pcmanfm-desktop-pref.desktop | |
634a4f0e JB |
121 | |
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
124 | %{_includedir}/pcmanfm-modules.h |