]>
Commit | Line | Data |
---|---|---|
19aadd7a KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5f4c896d | 5 | %define xfce_version 4.8.0 |
614bb69c | 6 | Summary: Xfce file manager |
457a5ea5 | 7 | Summary(pl.UTF-8): Zarządca plików Xfce |
614bb69c | 8 | Name: Thunar |
47ee2032 | 9 | Version: 1.2.2 |
10 | Release: 1 | |
614bb69c | 11 | License: GPL v2 / LGPL v2 |
60f8e7d3 | 12 | Group: X11/Applications |
5f4c896d | 13 | Source0: http://archive.xfce.org/src/xfce/thunar/1.2/%{name}-%{version}.tar.bz2 |
47ee2032 | 14 | # Source0-md5: a86df0212db71e61f459bda6bc7b7fb6 |
0b4557ef | 15 | Patch0: %{name}-desktop.patch |
614bb69c | 16 | URL: http://thunar.xfce.org/ |
cf138d2b MB |
17 | BuildRequires: autoconf >= 2.50 |
18 | BuildRequires: automake >= 1:1.8 | |
bcf2d25f | 19 | BuildRequires: dbus-glib-devel >= 0.62 |
0f62599c | 20 | BuildRequires: docbook-dtd412-xml |
5f4c896d | 21 | BuildRequires: exo-devel >= 0.6.0 |
19aadd7a | 22 | BuildRequires: gettext-devel |
5f4c896d MB |
23 | BuildRequires: glib2-devel >= 1:2.18.0 |
24 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
4397f92c | 25 | BuildRequires: gtk-doc >= 1.7 |
44b7220a | 26 | BuildRequires: intltool |
5f4c896d MB |
27 | BuildRequires: libexif-devel >= 0.6.0 |
28 | BuildRequires: libnotify-devel >= 0.4.0 | |
cf138d2b | 29 | BuildRequires: libtool |
5f4c896d | 30 | BuildRequires: libxfce4ui-devel >= %{xfce_version} |
bcf2d25f | 31 | BuildRequires: libxfce4util-devel >= %{xfce_version} |
ea3c5559 JB |
32 | BuildRequires: pcre-devel >= 6.0 |
33 | BuildRequires: perl-base | |
34 | BuildRequires: pkgconfig | |
5f4c896d | 35 | BuildRequires: rpmbuild(macros) >= 1.601 |
614bb69c | 36 | BuildRequires: startup-notification-devel >= 0.8 |
5f4c896d MB |
37 | BuildRequires: udev-glib-devel >= 145 |
38 | BuildRequires: xfce4-dev-tools >= %{xfce_version} | |
6cf886ac | 39 | BuildRequires: xfce4-panel-devel >= %{xfce_version} |
0b4557ef | 40 | Requires(post,postun): desktop-file-utils |
614bb69c | 41 | Requires: %{name}-libs = %{version}-%{release} |
5f4c896d MB |
42 | Requires: exo >= 0.6.0 |
43 | Requires: gtk-update-icon-cache | |
44 | Requires: hicolor-icon-theme | |
614bb69c | 45 | Requires: shared-mime-info >= 0.15 |
5f4c896d | 46 | Requires: xfconf >= %{xfce_version} |
8ad9d0a9 | 47 | Suggests: tumbler |
f8635ac7 | 48 | Obsoletes: Thunar-thumbnailers |
614bb69c | 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 | ||
43d73f39 JR |
54 | %description -l pl.UTF-8 |
55 | Thunar jest nowoczesnym zarządcą plików, nakierowanym na łatwość i | |
56 | szybkość użycia. | |
614bb69c | 57 | |
4397f92c MB |
58 | %package apidocs |
59 | Summary: Thunar API documentation | |
457a5ea5 | 60 | Summary(pl.UTF-8): Dokumentacja API Thunar |
4397f92c MB |
61 | Group: Documentation |
62 | Requires: gtk-doc-common | |
9fb03e63 | 63 | Obsoletes: thunar-vfs-apidocs |
4397f92c MB |
64 | |
65 | %description apidocs | |
66 | Thunar API documentation. | |
67 | ||
43d73f39 | 68 | %description apidocs -l pl.UTF-8 |
4397f92c MB |
69 | Dokumentacja API Thunar. |
70 | ||
614bb69c | 71 | %package libs |
72 | Summary: Thunar libraries | |
457a5ea5 | 73 | Summary(pl.UTF-8): Biblioteki Thunar |
cf138d2b | 74 | Group: X11/Libraries |
9fb03e63 | 75 | Obsoletes: thunar-vfs |
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} |
5f4c896d MB |
88 | Requires: exo-devel >= 0.6.0 |
89 | Requires: gtk+2-devel >= 2:2.14.0 | |
9fb03e63 | 90 | Obsoletes: thunar-vfs-devel |
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} |
9fb03e63 | 103 | Obsoletes: thunar-vfs-static |
614bb69c | 104 | |
105 | %description static | |
106 | Static Thunar libraries. | |
107 | ||
43d73f39 | 108 | %description static -l pl.UTF-8 |
6cf886ac | 109 | Statyczne biblioteki Thunar. |
614bb69c | 110 | |
111 | %prep | |
4397f92c | 112 | %setup -q |
0b4557ef | 113 | %patch0 -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 \ | |
4397f92c | 126 | --enable-gtk-doc \ |
6cf886ac MB |
127 | --enable-pcre \ |
128 | --enable-startup-notification \ | |
4397f92c | 129 | --with-html-dir=%{_gtkdocdir} \ |
5f4c896d MB |
130 | %{?with_static_libs:--enable-static} \ |
131 | --disable-silent-rules | |
4397f92c | 132 | |
614bb69c | 133 | %{__make} |
134 | ||
135 | %install | |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
138 | %{__make} install \ | |
139 | DESTDIR=$RPM_BUILD_ROOT | |
140 | ||
5f4c896d MB |
141 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/thunarx-2/*.{a,la} |
142 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/xfce4/panel/plugins/*.{a,la} | |
143 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
614bb69c | 144 | |
539006b9 | 145 | # duplicate of ur |
5f4c896d | 146 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK |
de0fd64f | 147 | |
614bb69c | 148 | %find_lang %{name} --all-name |
149 | ||
150 | %clean | |
151 | rm -rf $RPM_BUILD_ROOT | |
152 | ||
bcf2d25f | 153 | %post |
0b4557ef | 154 | %update_desktop_database_post |
60f8e7d3 | 155 | %update_icon_cache hicolor |
bcf2d25f | 156 | |
157 | %postun | |
0b4557ef | 158 | %update_desktop_database_postun |
60f8e7d3 | 159 | %update_icon_cache hicolor |
bcf2d25f | 160 | |
614bb69c | 161 | %post libs -p /sbin/ldconfig |
162 | %postun libs -p /sbin/ldconfig | |
163 | ||
164 | %files -f %{name}.lang | |
165 | %defattr(644,root,root,755) | |
166 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
167 | %attr(755,root,root) %{_bindir}/* | |
168 | %dir %{_sysconfdir}/xdg/Thunar | |
169 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/Thunar/*.xml | |
5f4c896d MB |
170 | %dir %{_libdir}/Thunar |
171 | %attr(755,root,root) %{_libdir}/Thunar/ThunarBulkRename | |
172 | %attr(755,root,root) %{_libdir}/Thunar/ThunarHelp | |
173 | %attr(755,root,root) %{_libdir}/Thunar/thunar-sendto-email | |
174 | %dir %{_libdir}/thunarx-2 | |
175 | %attr(755,root,root) %{_libdir}/thunarx-2/*.so | |
176 | %attr(755,root,root) %{_libdir}/xfce4/panel/plugins/libthunar-tpa.so | |
614bb69c | 177 | |
bcf2d25f | 178 | %{_datadir}/Thunar |
60f8e7d3 | 179 | %{_datadir}/xfce4/panel-plugins/*.desktop |
614bb69c | 180 | %{_datadir}/dbus-1/services/*.service |
181 | %{_desktopdir}/*.desktop | |
182 | %{_iconsdir}/hicolor/*/*/* | |
183 | %{_pixmapsdir}/Thunar | |
60f8e7d3 | 184 | %{_mandir}/man1/Thunar* |
614bb69c | 185 | |
186 | %dir %{_docdir}/Thunar | |
187 | # move it to proper place | |
188 | %{_docdir}/Thunar/README* | |
189 | ||
190 | %dir %{_docdir}/Thunar/html | |
191 | %{_docdir}/Thunar/html/C | |
192 | %{_docdir}/Thunar/html/*.css | |
5f4c896d MB |
193 | %lang(bn) %{_docdir}/Thunar/html/bn |
194 | %lang(ca) %{_docdir}/Thunar/html/ca | |
da11fc9a | 195 | %lang(da) %{_docdir}/Thunar/html/da |
5f4c896d | 196 | %lang(el) %{_docdir}/Thunar/html/el |
614bb69c | 197 | %lang(es) %{_docdir}/Thunar/html/es |
4397f92c | 198 | %lang(eu) %{_docdir}/Thunar/html/eu |
614bb69c | 199 | %lang(fr) %{_docdir}/Thunar/html/fr |
da11fc9a | 200 | %lang(gl) %{_docdir}/Thunar/html/gl |
5f4c896d | 201 | %lang(id) %{_docdir}/Thunar/html/id |
da11fc9a | 202 | %lang(it) %{_docdir}/Thunar/html/it |
614bb69c | 203 | %lang(ja) %{_docdir}/Thunar/html/ja |
9d67fff2 | 204 | %lang(nl) %{_docdir}/Thunar/html/nl |
4397f92c | 205 | %lang(pl) %{_docdir}/Thunar/html/pl |
bcf2d25f | 206 | %lang(ru) %{_docdir}/Thunar/html/ru |
5f4c896d | 207 | %lang(sv) %{_docdir}/Thunar/html/sv |
cf138d2b | 208 | %lang(tr) %{_docdir}/Thunar/html/tr |
5f4c896d MB |
209 | %lang(ug) %{_docdir}/Thunar/html/ug |
210 | %lang(zh_CN) %{_docdir}/Thunar/html/zh_CN | |
bcf2d25f | 211 | %lang(zh_TW) %{_docdir}/Thunar/html/zh_TW |
614bb69c | 212 | |
4397f92c MB |
213 | %files apidocs |
214 | %defattr(644,root,root,755) | |
cf138d2b | 215 | %{_gtkdocdir}/thunarx |
4397f92c | 216 | |
614bb69c | 217 | %files libs |
218 | %defattr(644,root,root,755) | |
5f4c896d MB |
219 | %attr(755,root,root) %{_libdir}/libthunarx-2.so.*.*.* |
220 | %attr(755,root,root) %ghost %{_libdir}/libthunarx-2.so.0 | |
614bb69c | 221 | |
222 | %files devel | |
223 | %defattr(644,root,root,755) | |
5f4c896d MB |
224 | %attr(755,root,root) %{_libdir}/libthunarx-2.so |
225 | %{_includedir}/thunarx-2 | |
226 | %{_pkgconfigdir}/thunarx-2.pc | |
614bb69c | 227 | |
19aadd7a | 228 | %if %{with static_libs} |
614bb69c | 229 | %files static |
230 | %defattr(644,root,root,755) | |
5f4c896d | 231 | %{_libdir}/libthunarx-2.a |
19aadd7a | 232 | %endif |