]>
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 |
73d77f7b | 10 | Release: 4 |
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 |
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 |
cf138d2b | 21 | BuildRequires: exo-devel >= 0.3.100 |
8a88c80a | 22 | BuildRequires: gamin-devel >= 0.1.0 |
19aadd7a | 23 | BuildRequires: gettext-devel |
6cf886ac MB |
24 | BuildRequires: glib2-devel >= 1:2.12.4 |
25 | BuildRequires: gtk+2-devel >= 2:2.10.6 | |
4397f92c | 26 | BuildRequires: gtk-doc >= 1.7 |
bcf2d25f | 27 | BuildRequires: hal-devel >= 0.5.7 |
44b7220a | 28 | BuildRequires: intltool |
bcf2d25f | 29 | BuildRequires: libexif-devel >= 0.6.13 |
614bb69c | 30 | BuildRequires: libjpeg-devel |
bcf2d25f | 31 | BuildRequires: libpng-devel >= 1.2.12 |
cf138d2b | 32 | BuildRequires: libtool |
bcf2d25f | 33 | BuildRequires: libxfce4util-devel >= %{xfce_version} |
cf138d2b | 34 | BuildRequires: libxfcegui4-devel >= %{xfce_version} |
ea3c5559 JB |
35 | BuildRequires: pcre-devel >= 6.0 |
36 | BuildRequires: perl-base | |
37 | BuildRequires: pkgconfig | |
60f8e7d3 | 38 | BuildRequires: rpmbuild(macros) >= 1.311 |
614bb69c | 39 | BuildRequires: startup-notification-devel >= 0.8 |
6cf886ac | 40 | BuildRequires: xfce4-panel-devel >= %{xfce_version} |
cf138d2b | 41 | BuildRequires: xfconf-devel >= %{xfce_version} |
0b4557ef | 42 | Requires(post,postun): desktop-file-utils |
4397f92c MB |
43 | Requires(post,postun): gtk+2 |
44 | Requires(post,postun): hicolor-icon-theme | |
614bb69c | 45 | Requires: %{name}-libs = %{version}-%{release} |
cf138d2b | 46 | Requires: exo >= 0.3.100 |
bcf2d25f | 47 | Requires: hal >= 0.5.7 |
614bb69c | 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 | ||
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 | |
63 | ||
64 | %description apidocs | |
65 | Thunar API documentation. | |
66 | ||
43d73f39 | 67 | %description apidocs -l pl.UTF-8 |
4397f92c MB |
68 | Dokumentacja API Thunar. |
69 | ||
614bb69c | 70 | %package libs |
71 | Summary: Thunar libraries | |
457a5ea5 | 72 | Summary(pl.UTF-8): Biblioteki Thunar |
cf138d2b | 73 | Group: X11/Libraries |
614bb69c | 74 | |
75 | %description libs | |
76 | Thunar libraries. | |
77 | ||
43d73f39 | 78 | %description libs -l pl.UTF-8 |
614bb69c | 79 | Biblioteki Thunar. |
80 | ||
81 | %package devel | |
82 | Summary: Header files for Thunar libraries | |
457a5ea5 | 83 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Thunar |
cf138d2b | 84 | Group: X11/Development/Libraries |
614bb69c | 85 | Requires: %{name}-libs = %{version}-%{release} |
cf138d2b MB |
86 | Requires: exo-devel >= 0.3.100 |
87 | Requires: gtk+2-devel >= 2:2.10.6 | |
614bb69c | 88 | |
89 | %description devel | |
90 | This is the package containing the header files for Thunar libraries. | |
91 | ||
43d73f39 JR |
92 | %description devel -l pl.UTF-8 |
93 | Ten pakiet zawiera pliki nagłówkowe biblioteki Thunar. | |
614bb69c | 94 | |
95 | %package static | |
6cf886ac | 96 | Summary: Static Thunar libraries |
457a5ea5 | 97 | Summary(pl.UTF-8): Statyczne biblioteki Thunar |
cf138d2b | 98 | Group: X11/Development/Libraries |
614bb69c | 99 | Requires: %{name}-devel = %{version}-%{release} |
100 | ||
101 | %description static | |
102 | Static Thunar libraries. | |
103 | ||
43d73f39 | 104 | %description static -l pl.UTF-8 |
6cf886ac | 105 | Statyczne biblioteki Thunar. |
614bb69c | 106 | |
107 | %prep | |
4397f92c | 108 | %setup -q |
0b4557ef | 109 | %patch0 -p1 |
614bb69c | 110 | |
111 | %build | |
cf138d2b MB |
112 | %{__intltoolize} |
113 | %{__libtoolize} | |
114 | %{__aclocal} | |
115 | %{__automake} | |
116 | %{__autoheader} | |
117 | %{__autoconf} | |
614bb69c | 118 | %configure \ |
6cf886ac MB |
119 | --enable-dbus \ |
120 | --enable-exif \ | |
121 | --enable-gnome-thumbnailers \ | |
4397f92c | 122 | --enable-gtk-doc \ |
6cf886ac MB |
123 | --enable-pcre \ |
124 | --enable-startup-notification \ | |
4397f92c | 125 | --with-html-dir=%{_gtkdocdir} \ |
19aadd7a | 126 | %{?with_static_libs:--enable-static} |
4397f92c | 127 | |
614bb69c | 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 | ||
bcf2d25f | 143 | %post |
0b4557ef | 144 | %update_desktop_database_post |
60f8e7d3 | 145 | %update_icon_cache hicolor |
bcf2d25f | 146 | |
147 | %postun | |
0b4557ef | 148 | %update_desktop_database_postun |
60f8e7d3 | 149 | %update_icon_cache hicolor |
bcf2d25f | 150 | |
614bb69c | 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 | |
60f8e7d3 | 162 | %attr(755,root,root) %{_libdir}/thunar-vfs-* |
bcf2d25f | 163 | %attr(755,root,root) %{_libdir}/thunar-sendto-email |
614bb69c | 164 | %dir %{_libdir}/thunarx-1 |
165 | %attr(755,root,root) %{_libdir}/thunarx-1/*.so | |
60f8e7d3 | 166 | %attr(755,root,root) %{_libdir}/xfce4/panel-plugins/thunar-tpa |
614bb69c | 167 | |
bcf2d25f | 168 | %{_datadir}/Thunar |
60f8e7d3 | 169 | %{_datadir}/xfce4/panel-plugins/*.desktop |
614bb69c | 170 | %{_datadir}/dbus-1/services/*.service |
171 | %{_desktopdir}/*.desktop | |
172 | %{_iconsdir}/hicolor/*/*/* | |
173 | %{_pixmapsdir}/Thunar | |
60f8e7d3 | 174 | %{_mandir}/man1/Thunar* |
614bb69c | 175 | |
4397f92c MB |
176 | # FIXME: maybe it's common dir? |
177 | %dir %{_datadir}/thumbnailers | |
178 | %{_datadir}/thumbnailers/*.desktop | |
179 | ||
614bb69c | 180 | %dir %{_docdir}/Thunar |
181 | # move it to proper place | |
182 | %{_docdir}/Thunar/README* | |
183 | ||
184 | %dir %{_docdir}/Thunar/html | |
60f8e7d3 | 185 | %{_docdir}/Thunar/*.txt |
614bb69c | 186 | %{_docdir}/Thunar/html/C |
187 | %{_docdir}/Thunar/html/*.css | |
da11fc9a | 188 | %lang(da) %{_docdir}/Thunar/html/da |
614bb69c | 189 | %lang(es) %{_docdir}/Thunar/html/es |
4397f92c | 190 | %lang(eu) %{_docdir}/Thunar/html/eu |
614bb69c | 191 | %lang(fr) %{_docdir}/Thunar/html/fr |
da11fc9a AG |
192 | %lang(gl) %{_docdir}/Thunar/html/gl |
193 | %lang(it) %{_docdir}/Thunar/html/it | |
614bb69c | 194 | %lang(ja) %{_docdir}/Thunar/html/ja |
9d67fff2 | 195 | %lang(nl) %{_docdir}/Thunar/html/nl |
4397f92c | 196 | %lang(pl) %{_docdir}/Thunar/html/pl |
bcf2d25f | 197 | %lang(ru) %{_docdir}/Thunar/html/ru |
cf138d2b | 198 | %lang(tr) %{_docdir}/Thunar/html/tr |
bcf2d25f | 199 | %lang(zh_TW) %{_docdir}/Thunar/html/zh_TW |
614bb69c | 200 | |
4397f92c MB |
201 | %files apidocs |
202 | %defattr(644,root,root,755) | |
cf138d2b MB |
203 | %{_gtkdocdir}/thunar-vfs |
204 | %{_gtkdocdir}/thunarx | |
4397f92c | 205 | |
614bb69c | 206 | %files libs |
207 | %defattr(644,root,root,755) | |
cf138d2b MB |
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 | |
614bb69c | 212 | |
213 | %files devel | |
214 | %defattr(644,root,root,755) | |
cf138d2b MB |
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 | |
614bb69c | 223 | |
19aadd7a | 224 | %if %{with static_libs} |
614bb69c | 225 | %files static |
226 | %defattr(644,root,root,755) | |
cf138d2b MB |
227 | %{_libdir}/libthunar-vfs-1.a |
228 | %{_libdir}/libthunarx-1.a | |
19aadd7a | 229 | %endif |