]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5 | %define xfce_version 4.4.3 | |
6 | Summary: Xfce file manager | |
7 | Summary(pl.UTF-8): Zarządca plików Xfce | |
8 | Name: Thunar | |
9 | Version: 0.9.3 | |
10 | Release: 3 | |
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: 438b0d55ac9ecabdb58f84c4c039ae5c | |
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: libxfcegui4-devel >= %{xfce_version} | |
33 | BuildRequires: libxfce4util-devel >= %{xfce_version} | |
34 | BuildRequires: pcre-devel >= 6.0 | |
35 | BuildRequires: perl-base | |
36 | BuildRequires: pkgconfig | |
37 | BuildRequires: rpmbuild(macros) >= 1.311 | |
38 | BuildRequires: startup-notification-devel >= 0.8 | |
39 | BuildRequires: xfce4-panel-devel >= %{xfce_version} | |
40 | Requires(post,postun): desktop-file-utils | |
41 | Requires(post,postun): gtk+2 | |
42 | Requires(post,postun): hicolor-icon-theme | |
43 | Requires: %{name}-libs = %{version}-%{release} | |
44 | Requires: hal >= 0.5.7 | |
45 | Requires: libexo >= 0.3.4 | |
46 | Requires: shared-mime-info >= 0.15 | |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | %description | |
50 | Thunar is a modern file manager, aiming to be easy-to-use and fast. | |
51 | ||
52 | %description -l pl.UTF-8 | |
53 | Thunar jest nowoczesnym zarządcą plików, nakierowanym na łatwość i | |
54 | szybkość użycia. | |
55 | ||
56 | %package apidocs | |
57 | Summary: Thunar API documentation | |
58 | Summary(pl.UTF-8): Dokumentacja API Thunar | |
59 | Group: Documentation | |
60 | Requires: gtk-doc-common | |
61 | ||
62 | %description apidocs | |
63 | Thunar API documentation. | |
64 | ||
65 | %description apidocs -l pl.UTF-8 | |
66 | Dokumentacja API Thunar. | |
67 | ||
68 | %package libs | |
69 | Summary: Thunar libraries | |
70 | Summary(pl.UTF-8): Biblioteki Thunar | |
71 | Group: Libraries | |
72 | ||
73 | %description libs | |
74 | Thunar libraries. | |
75 | ||
76 | %description libs -l pl.UTF-8 | |
77 | Biblioteki Thunar. | |
78 | ||
79 | %package devel | |
80 | Summary: Header files for Thunar libraries | |
81 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Thunar | |
82 | Group: Development/Libraries | |
83 | Requires: %{name}-libs = %{version}-%{release} | |
84 | Requires: GConf2-devel >= 2.16.0 | |
85 | Requires: dbus-glib-devel >= 0.62 | |
86 | Requires: gamin-devel | |
87 | Requires: hal-devel >= 0.5.7 | |
88 | Requires: libexo-devel >= 0.3.4 | |
89 | Requires: libjpeg-devel | |
90 | ||
91 | %description devel | |
92 | This is the package containing the header files for Thunar libraries. | |
93 | ||
94 | %description devel -l pl.UTF-8 | |
95 | Ten pakiet zawiera pliki nagłówkowe biblioteki Thunar. | |
96 | ||
97 | %package static | |
98 | Summary: Static Thunar libraries | |
99 | Summary(pl.UTF-8): Statyczne biblioteki Thunar | |
100 | Group: Development/Libraries | |
101 | Requires: %{name}-devel = %{version}-%{release} | |
102 | ||
103 | %description static | |
104 | Static Thunar libraries. | |
105 | ||
106 | %description static -l pl.UTF-8 | |
107 | Statyczne biblioteki Thunar. | |
108 | ||
109 | %prep | |
110 | %setup -q | |
111 | %patch0 -p1 | |
112 | %patch1 -p1 | |
113 | %patch2 -p0 | |
114 | ||
115 | mv -f po/{pt_PT,pt}.po | |
116 | mv -f po/{nb_NO,nb}.po | |
117 | mv -f po/{nn_NO,nn}.po | |
118 | ||
119 | %build | |
120 | %configure \ | |
121 | --enable-dbus \ | |
122 | --enable-exif \ | |
123 | --enable-gnome-thumbnailers \ | |
124 | --enable-gtk-doc \ | |
125 | --enable-pcre \ | |
126 | --enable-startup-notification \ | |
127 | --with-html-dir=%{_gtkdocdir} \ | |
128 | %{?with_static_libs:--enable-static} | |
129 | ||
130 | %{__make} | |
131 | ||
132 | %install | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %{__make} install \ | |
136 | DESTDIR=$RPM_BUILD_ROOT | |
137 | ||
138 | rm -f $RPM_BUILD_ROOT%{_libdir}/thunarx-1/*.{a,la} | |
139 | ||
140 | %find_lang %{name} --all-name | |
141 | ||
142 | %clean | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %post | |
146 | %update_desktop_database_post | |
147 | %update_icon_cache hicolor | |
148 | ||
149 | %postun | |
150 | %update_desktop_database_postun | |
151 | %update_icon_cache hicolor | |
152 | ||
153 | %post libs -p /sbin/ldconfig | |
154 | %postun libs -p /sbin/ldconfig | |
155 | ||
156 | %files -f %{name}.lang | |
157 | %defattr(644,root,root,755) | |
158 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
159 | %attr(755,root,root) %{_bindir}/* | |
160 | %dir %{_sysconfdir}/xdg/Thunar | |
161 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/Thunar/*.xml | |
162 | %attr(755,root,root) %{_libdir}/ThunarBulkRename | |
163 | %attr(755,root,root) %{_libdir}/ThunarHelp | |
164 | %attr(755,root,root) %{_libdir}/thunar-vfs-* | |
165 | %attr(755,root,root) %{_libdir}/thunar-sendto-email | |
166 | %dir %{_libdir}/thunarx-1 | |
167 | %attr(755,root,root) %{_libdir}/thunarx-1/*.so | |
168 | %attr(755,root,root) %{_libdir}/xfce4/panel-plugins/thunar-tpa | |
169 | ||
170 | %{_datadir}/Thunar | |
171 | %{_datadir}/xfce4/panel-plugins/*.desktop | |
172 | %{_datadir}/dbus-1/services/*.service | |
173 | %{_desktopdir}/*.desktop | |
174 | %{_iconsdir}/hicolor/*/*/* | |
175 | %{_pixmapsdir}/Thunar | |
176 | %{_mandir}/man1/Thunar* | |
177 | ||
178 | # FIXME: maybe it's common dir? | |
179 | %dir %{_datadir}/thumbnailers | |
180 | %{_datadir}/thumbnailers/*.desktop | |
181 | ||
182 | %dir %{_docdir}/Thunar | |
183 | # move it to proper place | |
184 | %{_docdir}/Thunar/README* | |
185 | ||
186 | %dir %{_docdir}/Thunar/html | |
187 | %{_docdir}/Thunar/*.txt | |
188 | %{_docdir}/Thunar/html/C | |
189 | %{_docdir}/Thunar/html/*.css | |
190 | %lang(es) %{_docdir}/Thunar/html/es | |
191 | %lang(eu) %{_docdir}/Thunar/html/eu | |
192 | %lang(fr) %{_docdir}/Thunar/html/fr | |
193 | %lang(ja) %{_docdir}/Thunar/html/ja | |
194 | %lang(nl) %{_docdir}/Thunar/html/nl | |
195 | %lang(pl) %{_docdir}/Thunar/html/pl | |
196 | %lang(ru) %{_docdir}/Thunar/html/ru | |
197 | %lang(zh_TW) %{_docdir}/Thunar/html/zh_TW | |
198 | ||
199 | %files apidocs | |
200 | %defattr(644,root,root,755) | |
201 | %{_gtkdocdir}/thunar* | |
202 | ||
203 | %files libs | |
204 | %defattr(644,root,root,755) | |
205 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
206 | ||
207 | %files devel | |
208 | %defattr(644,root,root,755) | |
209 | %attr(755,root,root) %{_libdir}/lib*.so | |
210 | %{_libdir}/lib*.la | |
211 | %{_includedir}/thunar* | |
212 | %{_pkgconfigdir}/*.pc | |
213 | ||
214 | %if %{with static_libs} | |
215 | %files static | |
216 | %defattr(644,root,root,755) | |
217 | %{_libdir}/*.a | |
218 | %endif |