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