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