]> git.pld-linux.org Git - packages/pcmanfm.git/blob - pcmanfm.spec
a67867063ae17a59d23b8a3ebbdba5162a3d3c5c
[packages/pcmanfm.git] / pcmanfm.spec
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
6 Summary:        File manager for GTK
7 Summary(pl.UTF-8):      Zarządca plików dla GTK
8 Name:           pcmanfm
9 Version:        1.3.2
10 Release:        2
11 License:        GPL v2+
12 Group:          X11/Applications
13 Source0:        https://downloads.sourceforge.net/pcmanfm/%{name}-%{version}.tar.xz
14 # Source0-md5:  ef7c4417d2697ef138d175db7aeae15a
15 URL:            http://pcmanfm.sourceforge.net/
16 BuildRequires:  autoconf >= 2.63
17 BuildRequires:  automake
18 BuildRequires:  dbus-glib-devel >= 0.31
19 BuildRequires:  gettext-tools
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}
26 BuildRequires:  libtool
27 BuildRequires:  menu-cache-devel >= 0.3.2
28 BuildRequires:  pango-devel >= 1:1.20.0
29 BuildRequires:  pkgconfig
30 %if %{with gtk3}
31 BuildRequires:  pkgconfig(libfm-gtk3) >= %{libfm_ver}
32 %else
33 BuildRequires:  pkgconfig(libfm-gtk) >= %{libfm_ver}
34 %endif
35 BuildRequires:  sed >= 4.0
36 BuildRequires:  tar >= 1:1.22
37 BuildRequires:  xorg-lib-libX11-devel
38 BuildRequires:  xz
39 Requires(post,postun):  desktop-file-utils
40 Requires(post,postun):  shared-mime-info
41 Requires:       glib2 >= 1:2.18.0
42 Requires:       libfm >= %{libfm_ver}
43 Requires:       pango >= 1:1.20.0
44 Suggests:       gnome-icon-theme
45 Suggests:       lxde-icon-theme
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
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.
55
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
68 %prep
69 %setup -q
70
71 %build
72 %{__intltoolize}
73 %{__libtoolize}
74 %{__aclocal}
75 %{__autoconf}
76 %{__autoheader}
77 %{__automake}
78 %configure \
79         %{?with_gtk3:--with-gtk=3}
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 # see lxde-common
89 install -d $RPM_BUILD_ROOT/etc/xdg/pcmanfm/LXDE
90 # for modules (PACKAGE_MODULES_DIR)
91 install -d $RPM_BUILD_ROOT%{_libdir}/pcmanfm
92
93 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{tt_RU,tt}
94
95
96 %find_lang %{name} --all-name
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %post
102 %update_desktop_database
103
104 %postun
105 %update_desktop_database
106
107 %files -f %{name}.lang
108 %defattr(644,root,root,755)
109 %doc AUTHORS TODO
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
114 %attr(755,root,root) %{_bindir}/pcmanfm
115 %dir %{_libdir}/pcmanfm
116 %{_mandir}/man1/pcmanfm.1*
117 %dir %{_datadir}/%{name}
118 %{_datadir}/%{name}/ui
119 %{_desktopdir}/pcmanfm.desktop
120 %{_desktopdir}/pcmanfm-desktop-pref.desktop
121
122 %files devel
123 %defattr(644,root,root,755)
124 %{_includedir}/pcmanfm-modules.h
This page took 0.060317 seconds and 3 git commands to generate.