- updated to 1.2.4
[packages/pcmanfm.git] / pcmanfm.spec
1 %define         libfm   1.2.4
2 Summary:        File manager for GTK
3 Summary(pl.UTF-8):      Zarządca plików dla GTK
4 Name:           pcmanfm
5 Version:        1.2.4
6 Release:        1
7 License:        GPL v2+
8 Group:          X11/Applications
9 Source0:        http://downloads.sourceforge.net/pcmanfm/%{name}-%{version}.tar.xz
10 # Source0-md5:  19764c2f59653724c8713e0064fa6829
11 URL:            http://pcmanfm.sourceforge.net/
12 BuildRequires:  autoconf >= 2.53
13 BuildRequires:  automake
14 BuildRequires:  dbus-glib-devel >= 0.31
15 BuildRequires:  gettext-tools
16 BuildRequires:  glib2-devel
17 BuildRequires:  gtk+2-devel >= 2:2.8
18 BuildRequires:  intltool
19 BuildRequires:  libfm-devel >= %{libfm}
20 BuildRequires:  libtool
21 BuildRequires:  menu-cache-devel >= 0.3.2
22 BuildRequires:  pango-devel >= 1.20.0
23 BuildRequires:  pkgconfig
24 BuildRequires:  sed >= 4.0
25 BuildRequires:  tar >= 1:1.22
26 BuildRequires:  xz
27 Requires(post,postun):  desktop-file-utils
28 Requires(post,postun):  shared-mime-info
29 Requires:       libfm >= %{libfm}
30 Suggests:       gnome-icon-theme
31 Suggests:       lxde-icon-theme
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 pcmanfm is a fast and lightweight file manager which features tabbed
36 browsing and user-friendly interface.
37
38 %description -l pl.UTF-8
39 pcmanfm jest szybkim i lekkim zarządcą plików z przyjaznym interfejsem
40 użytkownika, umożliwiającym przeglądanie katalogów w zakładkach.
41
42 %prep
43 %setup -q
44
45 %{__sed} -i -e '
46         s/AM_PROG_CC_STDC/AC_PROG_CC/
47 ' configure.ac
48
49 %build
50 %{__intltoolize}
51 %{__libtoolize}
52 %{__aclocal}
53 %{__autoconf}
54 %{__autoheader}
55 %{__automake}
56 %configure \
57         --with-gtk=2
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 %{__make} install \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 # see lxde-common
66 install -d $RPM_BUILD_ROOT/etc/xdg/pcmanfm/LXDE
67
68 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/tt_RU
69
70 %find_lang %{name} --all-name
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post
76 %update_desktop_database
77
78 %postun
79 %update_desktop_database
80
81 %files -f %{name}.lang
82 %defattr(644,root,root,755)
83 %doc AUTHORS TODO
84 %dir /etc/xdg/pcmanfm
85 %dir /etc/xdg/pcmanfm/default
86 %dir /etc/xdg/pcmanfm/LXDE
87 %config(noreplace) %verify(not md5 mtime size) /etc/xdg/pcmanfm/default/pcmanfm.conf
88 %attr(755,root,root) %{_bindir}/pcmanfm
89 %{_mandir}/man1/pcmanfm.1*
90 %dir %{_datadir}/%{name}
91 %{_datadir}/%{name}/ui
92 %{_desktopdir}/pcmanfm.desktop
93 %{_desktopdir}/pcmanfm-desktop-pref.desktop