3 %bcond_without static_libs # don't build static library
5 %define xfce_version 4.4.2
6 Summary: Xfce file manager
7 Summary(pl.UTF-8): Zarządca plików Xfce
11 License: GPL v2 / LGPL v2
12 Group: X11/Applications
13 Source0: http://www.xfce.org/archive/xfce-%{xfce_version}/src/%{name}-%{version}.tar.bz2
14 # Source0-md5: 0fc5008858661c0abd0399acbe30ef28
15 Patch0: %{name}-desktop.patch
16 Patch1: %{name}-locale-names.patch
17 Patch2: %{name}-missing-audio-cds-for-volman.patch
18 URL: http://thunar.xfce.org/
19 BuildRequires: GConf2-devel >= 2.16.0
20 BuildRequires: dbus-glib-devel >= 0.62
21 BuildRequires: gamin-devel >= 0.1.0
22 BuildRequires: gettext-devel
23 BuildRequires: glib2-devel >= 1:2.12.4
24 BuildRequires: gtk+2-devel >= 2:2.10.6
25 BuildRequires: gtk-doc >= 1.7
26 BuildRequires: hal-devel >= 0.5.7
27 BuildRequires: intltool
28 BuildRequires: libexif-devel >= 0.6.13
29 BuildRequires: libexo-devel >= 0.3.4
30 BuildRequires: libjpeg-devel
31 BuildRequires: libpng-devel >= 1.2.12
32 BuildRequires: libxfce4util-devel >= %{xfce_version}
33 BuildRequires: pcre-devel >= 6.0
34 BuildRequires: perl-base
35 BuildRequires: pkgconfig
36 BuildRequires: rpmbuild(macros) >= 1.311
37 BuildRequires: startup-notification-devel >= 0.8
38 BuildRequires: xfce4-panel-devel >= %{xfce_version}
39 Requires(post,postun): desktop-file-utils
40 Requires(post,postun): gtk+2
41 Requires(post,postun): hicolor-icon-theme
42 Requires: %{name}-libs = %{version}-%{release}
43 Requires: hal >= 0.5.7
44 Requires: libexo >= 0.3.4
45 Requires: shared-mime-info >= 0.15
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 Thunar is a modern file manager, aiming to be easy-to-use and fast.
51 %description -l pl.UTF-8
52 Thunar jest nowoczesnym zarządcą plików, nakierowanym na łatwość i
56 Summary: Thunar API documentation
57 Summary(pl.UTF-8): Dokumentacja API Thunar
59 Requires: gtk-doc-common
62 Thunar API documentation.
64 %description apidocs -l pl.UTF-8
65 Dokumentacja API Thunar.
68 Summary: Thunar libraries
69 Summary(pl.UTF-8): Biblioteki Thunar
75 %description libs -l pl.UTF-8
79 Summary: Header files for Thunar libraries
80 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Thunar
81 Group: Development/Libraries
82 Requires: %{name}-libs = %{version}-%{release}
83 Requires: GConf2-devel >= 2.16.0
84 Requires: dbus-glib-devel >= 0.62
86 Requires: hal-devel >= 0.5.7
87 Requires: libexo-devel >= 0.3.4
88 Requires: libjpeg-devel
91 This is the package containing the header files for Thunar libraries.
93 %description devel -l pl.UTF-8
94 Ten pakiet zawiera pliki nagłówkowe biblioteki Thunar.
97 Summary: Static Thunar libraries
98 Summary(pl.UTF-8): Statyczne biblioteki Thunar
99 Group: Development/Libraries
100 Requires: %{name}-devel = %{version}-%{release}
103 Static Thunar libraries.
105 %description static -l pl.UTF-8
106 Statyczne biblioteki Thunar.
114 mv -f po/{pt_PT,pt}.po
115 mv -f po/{nb_NO,nb}.po
121 --enable-gnome-thumbnailers \
124 --enable-startup-notification \
125 --with-html-dir=%{_gtkdocdir} \
126 %{?with_static_libs:--enable-static}
131 rm -rf $RPM_BUILD_ROOT
134 DESTDIR=$RPM_BUILD_ROOT
136 rm -f $RPM_BUILD_ROOT%{_libdir}/thunarx-1/*.{a,la}
138 %find_lang %{name} --all-name
141 rm -rf $RPM_BUILD_ROOT
144 %update_desktop_database_post
145 %update_icon_cache hicolor
148 %update_desktop_database_postun
149 %update_icon_cache hicolor
151 %post libs -p /sbin/ldconfig
152 %postun libs -p /sbin/ldconfig
154 %files -f %{name}.lang
155 %defattr(644,root,root,755)
156 %doc AUTHORS ChangeLog NEWS README THANKS TODO
157 %attr(755,root,root) %{_bindir}/*
158 %dir %{_sysconfdir}/xdg/Thunar
159 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/Thunar/*.xml
160 %attr(755,root,root) %{_libdir}/ThunarBulkRename
161 %attr(755,root,root) %{_libdir}/ThunarHelp
162 %attr(755,root,root) %{_libdir}/thunar-vfs-*
163 %attr(755,root,root) %{_libdir}/thunar-sendto-email
164 %dir %{_libdir}/thunarx-1
165 %attr(755,root,root) %{_libdir}/thunarx-1/*.so
166 %attr(755,root,root) %{_libdir}/xfce4/panel-plugins/thunar-tpa
169 %{_datadir}/xfce4/panel-plugins/*.desktop
170 %{_datadir}/dbus-1/services/*.service
171 %{_desktopdir}/*.desktop
172 %{_iconsdir}/hicolor/*/*/*
173 %{_pixmapsdir}/Thunar
174 %{_mandir}/man1/Thunar*
176 # FIXME: maybe it's common dir?
177 %dir %{_datadir}/thumbnailers
178 %{_datadir}/thumbnailers/*.desktop
180 %dir %{_docdir}/Thunar
181 # move it to proper place
182 %{_docdir}/Thunar/README*
184 %dir %{_docdir}/Thunar/html
185 %{_docdir}/Thunar/*.txt
186 %{_docdir}/Thunar/html/C
187 %{_docdir}/Thunar/html/*.css
188 %lang(es) %{_docdir}/Thunar/html/es
189 %lang(eu) %{_docdir}/Thunar/html/eu
190 %lang(fr) %{_docdir}/Thunar/html/fr
191 %lang(ja) %{_docdir}/Thunar/html/ja
192 %lang(nl) %{_docdir}/Thunar/html/nl
193 %lang(pl) %{_docdir}/Thunar/html/pl
194 %lang(ru) %{_docdir}/Thunar/html/ru
195 %lang(zh_TW) %{_docdir}/Thunar/html/zh_TW
198 %defattr(644,root,root,755)
199 %{_gtkdocdir}/thunar*
202 %defattr(644,root,root,755)
203 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
206 %defattr(644,root,root,755)
207 %attr(755,root,root) %{_libdir}/lib*.so
209 %{_includedir}/thunar*
210 %{_pkgconfigdir}/*.pc
212 %if %{with static_libs}
214 %defattr(644,root,root,755)