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