]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5 | %define xfce_version 4.6.1 | |
6 | Summary: Xfce file manager | |
7 | Summary(pl.UTF-8): Zarządca plików Xfce | |
8 | Name: Thunar | |
9 | Version: 1.0.1 | |
10 | Release: 4 | |
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: 218373aa45d74b6ba8c69c4d5af3bb19 | |
15 | Patch0: %{name}-desktop.patch | |
16 | URL: http://thunar.xfce.org/ | |
17 | BuildRequires: GConf2-devel >= 2.16.0 | |
18 | BuildRequires: autoconf >= 2.50 | |
19 | BuildRequires: automake >= 1:1.8 | |
20 | BuildRequires: dbus-glib-devel >= 0.62 | |
21 | BuildRequires: exo-devel >= 0.3.100 | |
22 | BuildRequires: gamin-devel >= 0.1.0 | |
23 | BuildRequires: gettext-devel | |
24 | BuildRequires: glib2-devel >= 1:2.12.4 | |
25 | BuildRequires: gtk+2-devel >= 2:2.10.6 | |
26 | BuildRequires: gtk-doc >= 1.7 | |
27 | BuildRequires: hal-devel >= 0.5.7 | |
28 | BuildRequires: intltool | |
29 | BuildRequires: libexif-devel >= 0.6.13 | |
30 | BuildRequires: libjpeg-devel | |
31 | BuildRequires: libpng-devel >= 1.2.12 | |
32 | BuildRequires: libtool | |
33 | BuildRequires: libxfce4util-devel >= %{xfce_version} | |
34 | BuildRequires: libxfcegui4-devel >= %{xfce_version} | |
35 | BuildRequires: pcre-devel >= 6.0 | |
36 | BuildRequires: perl-base | |
37 | BuildRequires: pkgconfig | |
38 | BuildRequires: rpmbuild(macros) >= 1.311 | |
39 | BuildRequires: startup-notification-devel >= 0.8 | |
40 | BuildRequires: xfce4-panel-devel >= %{xfce_version} | |
41 | BuildRequires: xfconf-devel >= %{xfce_version} | |
42 | Requires(post,postun): desktop-file-utils | |
43 | Requires(post,postun): gtk+2 | |
44 | Requires(post,postun): hicolor-icon-theme | |
45 | Requires: %{name}-libs = %{version}-%{release} | |
46 | Requires: exo >= 0.3.100 | |
47 | Requires: hal >= 0.5.7 | |
48 | Requires: shared-mime-info >= 0.15 | |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
50 | ||
51 | %description | |
52 | Thunar is a modern file manager, aiming to be easy-to-use and fast. | |
53 | ||
54 | %description -l pl.UTF-8 | |
55 | Thunar jest nowoczesnym zarządcą plików, nakierowanym na łatwość i | |
56 | szybkość użycia. | |
57 | ||
58 | %package apidocs | |
59 | Summary: Thunar API documentation | |
60 | Summary(pl.UTF-8): Dokumentacja API Thunar | |
61 | Group: Documentation | |
62 | Requires: gtk-doc-common | |
63 | ||
64 | %description apidocs | |
65 | Thunar API documentation. | |
66 | ||
67 | %description apidocs -l pl.UTF-8 | |
68 | Dokumentacja API Thunar. | |
69 | ||
70 | %package libs | |
71 | Summary: Thunar libraries | |
72 | Summary(pl.UTF-8): Biblioteki Thunar | |
73 | Group: X11/Libraries | |
74 | ||
75 | %description libs | |
76 | Thunar libraries. | |
77 | ||
78 | %description libs -l pl.UTF-8 | |
79 | Biblioteki Thunar. | |
80 | ||
81 | %package devel | |
82 | Summary: Header files for Thunar libraries | |
83 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Thunar | |
84 | Group: X11/Development/Libraries | |
85 | Requires: %{name}-libs = %{version}-%{release} | |
86 | Requires: exo-devel >= 0.3.100 | |
87 | Requires: gtk+2-devel >= 2:2.10.6 | |
88 | ||
89 | %description devel | |
90 | This is the package containing the header files for Thunar libraries. | |
91 | ||
92 | %description devel -l pl.UTF-8 | |
93 | Ten pakiet zawiera pliki nagłówkowe biblioteki Thunar. | |
94 | ||
95 | %package static | |
96 | Summary: Static Thunar libraries | |
97 | Summary(pl.UTF-8): Statyczne biblioteki Thunar | |
98 | Group: X11/Development/Libraries | |
99 | Requires: %{name}-devel = %{version}-%{release} | |
100 | ||
101 | %description static | |
102 | Static Thunar libraries. | |
103 | ||
104 | %description static -l pl.UTF-8 | |
105 | Statyczne biblioteki Thunar. | |
106 | ||
107 | %prep | |
108 | %setup -q | |
109 | %patch0 -p1 | |
110 | ||
111 | %build | |
112 | %{__intltoolize} | |
113 | %{__libtoolize} | |
114 | %{__aclocal} | |
115 | %{__automake} | |
116 | %{__autoheader} | |
117 | %{__autoconf} | |
118 | %configure \ | |
119 | --enable-dbus \ | |
120 | --enable-exif \ | |
121 | --enable-gnome-thumbnailers \ | |
122 | --enable-gtk-doc \ | |
123 | --enable-pcre \ | |
124 | --enable-startup-notification \ | |
125 | --with-html-dir=%{_gtkdocdir} \ | |
126 | %{?with_static_libs:--enable-static} | |
127 | ||
128 | %{__make} | |
129 | ||
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %{__make} install \ | |
134 | DESTDIR=$RPM_BUILD_ROOT | |
135 | ||
136 | rm -f $RPM_BUILD_ROOT%{_libdir}/thunarx-1/*.{a,la} | |
137 | ||
138 | %find_lang %{name} --all-name | |
139 | ||
140 | %clean | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
143 | %post | |
144 | %update_desktop_database_post | |
145 | %update_icon_cache hicolor | |
146 | ||
147 | %postun | |
148 | %update_desktop_database_postun | |
149 | %update_icon_cache hicolor | |
150 | ||
151 | %post libs -p /sbin/ldconfig | |
152 | %postun libs -p /sbin/ldconfig | |
153 | ||
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 | |
167 | ||
168 | %{_datadir}/Thunar | |
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* | |
175 | ||
176 | # FIXME: maybe it's common dir? | |
177 | %dir %{_datadir}/thumbnailers | |
178 | %{_datadir}/thumbnailers/*.desktop | |
179 | ||
180 | %dir %{_docdir}/Thunar | |
181 | # move it to proper place | |
182 | %{_docdir}/Thunar/README* | |
183 | ||
184 | %dir %{_docdir}/Thunar/html | |
185 | %{_docdir}/Thunar/*.txt | |
186 | %{_docdir}/Thunar/html/C | |
187 | %{_docdir}/Thunar/html/*.css | |
188 | %lang(da) %{_docdir}/Thunar/html/da | |
189 | %lang(es) %{_docdir}/Thunar/html/es | |
190 | %lang(eu) %{_docdir}/Thunar/html/eu | |
191 | %lang(fr) %{_docdir}/Thunar/html/fr | |
192 | %lang(gl) %{_docdir}/Thunar/html/gl | |
193 | %lang(it) %{_docdir}/Thunar/html/it | |
194 | %lang(ja) %{_docdir}/Thunar/html/ja | |
195 | %lang(nl) %{_docdir}/Thunar/html/nl | |
196 | %lang(pl) %{_docdir}/Thunar/html/pl | |
197 | %lang(ru) %{_docdir}/Thunar/html/ru | |
198 | %lang(tr) %{_docdir}/Thunar/html/tr | |
199 | %lang(zh_TW) %{_docdir}/Thunar/html/zh_TW | |
200 | ||
201 | %files apidocs | |
202 | %defattr(644,root,root,755) | |
203 | %{_gtkdocdir}/thunar-vfs | |
204 | %{_gtkdocdir}/thunarx | |
205 | ||
206 | %files libs | |
207 | %defattr(644,root,root,755) | |
208 | %attr(755,root,root) %{_libdir}/libthunar-vfs-1.so.*.*.* | |
209 | %attr(755,root,root) %ghost %{_libdir}/libthunar-vfs-1.so.2 | |
210 | %attr(755,root,root) %{_libdir}/libthunarx-1.so.*.*.* | |
211 | %attr(755,root,root) %ghost %{_libdir}/libthunarx-1.so.2 | |
212 | ||
213 | %files devel | |
214 | %defattr(644,root,root,755) | |
215 | %attr(755,root,root) %{_libdir}/libthunar-vfs-1.so | |
216 | %attr(755,root,root) %{_libdir}/libthunarx-1.so | |
217 | %{_libdir}/libthunar-vfs-1.la | |
218 | %{_libdir}/libthunarx-1.la | |
219 | %{_includedir}/thunar-vfs-1 | |
220 | %{_includedir}/thunarx-1 | |
221 | %{_pkgconfigdir}/thunar-vfs-1.pc | |
222 | %{_pkgconfigdir}/thunarx-1.pc | |
223 | ||
224 | %if %{with static_libs} | |
225 | %files static | |
226 | %defattr(644,root,root,755) | |
227 | %{_libdir}/libthunar-vfs-1.a | |
228 | %{_libdir}/libthunarx-1.a | |
229 | %endif |