]> git.pld-linux.org Git - packages/pcmanfm.git/blame - pcmanfm.spec
- added dir and -devel for modules, gtk3 bcond, completed dependencies; release 2
[packages/pcmanfm.git] / pcmanfm.spec
CommitLineData
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 6Summary: File manager for GTK
067c21a0 7Summary(pl.UTF-8): Zarządca plików dla GTK
ad1c0913 8Name: pcmanfm
bacb9f89 9Version: 1.3.2
634a4f0e 10Release: 2
56c8c30b 11License: GPL v2+
ad1c0913 12Group: X11/Applications
634a4f0e 13Source0: https://downloads.sourceforge.net/pcmanfm/%{name}-%{version}.tar.xz
bacb9f89 14# Source0-md5: ef7c4417d2697ef138d175db7aeae15a
ad1c0913 15URL: http://pcmanfm.sourceforge.net/
634a4f0e 16BuildRequires: autoconf >= 2.63
ad1c0913 17BuildRequires: automake
e5b49385 18BuildRequires: dbus-glib-devel >= 0.31
7d392fb8 19BuildRequires: gettext-tools
634a4f0e
JB
20BuildRequires: 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}
23BuildRequires: intltool >= 0.40.0
24BuildRequires: libfm-devel >= %{libfm_ver}
25BuildRequires: libfm-gtk-devel >= %{libfm_ver}
e5b49385 26BuildRequires: libtool
56c8c30b 27BuildRequires: menu-cache-devel >= 0.3.2
634a4f0e 28BuildRequires: pango-devel >= 1:1.20.0
ad1c0913 29BuildRequires: pkgconfig
634a4f0e
JB
30%if %{with gtk3}
31BuildRequires: pkgconfig(libfm-gtk3) >= %{libfm_ver}
32%else
33BuildRequires: pkgconfig(libfm-gtk) >= %{libfm_ver}
34%endif
5ccd4402 35BuildRequires: sed >= 4.0
a3d2d3f1 36BuildRequires: tar >= 1:1.22
634a4f0e 37BuildRequires: xorg-lib-libX11-devel
a3d2d3f1 38BuildRequires: xz
e5b49385
MB
39Requires(post,postun): desktop-file-utils
40Requires(post,postun): shared-mime-info
634a4f0e
JB
41Requires: glib2 >= 1:2.18.0
42Requires: libfm >= %{libfm_ver}
43Requires: pango >= 1:1.20.0
92637dd5
ER
44Suggests: gnome-icon-theme
45Suggests: lxde-icon-theme
ad1c0913
MG
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%description
49pcmanfm is a fast and lightweight file manager which features tabbed
50browsing and user-friendly interface.
51
4203178a
JR
52%description -l pl.UTF-8
53pcmanfm jest szybkim i lekkim zarządcą plików z przyjaznym interfejsem
54użytkownika, umożliwiającym przeglądanie katalogów w zakładkach.
ad1c0913 55
634a4f0e
JB
56%package devel
57Summary: Header file for pcmanfm modules
58Summary(pl.UTF-8): Plik nagłówkowy dla modułów pcmanfm
59Group: Development/Libraries
60Requires: libfm-devel >= %{libfm_ver}
61
62%description devel
63Header file for pcmanfm modules.
64
65%description devel -l pl.UTF-8
66Plik 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
83rm -rf $RPM_BUILD_ROOT
634a4f0e 84
ad1c0913
MG
85%{__make} install \
86 DESTDIR=$RPM_BUILD_ROOT
87
775bc6ee
ER
88# see lxde-common
89install -d $RPM_BUILD_ROOT/etc/xdg/pcmanfm/LXDE
634a4f0e
JB
90# for modules (PACKAGE_MODULES_DIR)
91install -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
99rm -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
This page took 0.085085 seconds and 4 git commands to generate.