]>
Commit | Line | Data |
---|---|---|
19aadd7a KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
9d67fff2 | 5 | %define xfce_version 4.4.2 |
614bb69c | 6 | Summary: Xfce file manager |
457a5ea5 | 7 | Summary(pl.UTF-8): Zarządca plików Xfce |
614bb69c | 8 | Name: Thunar |
9d67fff2 | 9 | Version: 0.9.0 |
8a88c80a | 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 |
9d67fff2 | 14 | # Source0-md5: 0fc5008858661c0abd0399acbe30ef28 |
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 |
32 | BuildRequires: libxfce4util-devel >= %{xfce_version} | |
ea3c5559 JB |
33 | BuildRequires: pcre-devel >= 6.0 |
34 | BuildRequires: perl-base | |
35 | BuildRequires: pkgconfig | |
60f8e7d3 | 36 | BuildRequires: rpmbuild(macros) >= 1.311 |
614bb69c | 37 | BuildRequires: startup-notification-devel >= 0.8 |
6cf886ac | 38 | BuildRequires: xfce4-panel-devel >= %{xfce_version} |
0b4557ef | 39 | Requires(post,postun): desktop-file-utils |
4397f92c MB |
40 | Requires(post,postun): gtk+2 |
41 | Requires(post,postun): hicolor-icon-theme | |
614bb69c | 42 | Requires: %{name}-libs = %{version}-%{release} |
bcf2d25f | 43 | Requires: hal >= 0.5.7 |
9d67fff2 | 44 | Requires: libexo >= 0.3.4 |
614bb69c | 45 | Requires: shared-mime-info >= 0.15 |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
49 | Thunar is a modern file manager, aiming to be easy-to-use and fast. | |
50 | ||
43d73f39 JR |
51 | %description -l pl.UTF-8 |
52 | Thunar jest nowoczesnym zarządcą plików, nakierowanym na łatwość i | |
53 | szybkość użycia. | |
614bb69c | 54 | |
4397f92c MB |
55 | %package apidocs |
56 | Summary: Thunar API documentation | |
457a5ea5 | 57 | Summary(pl.UTF-8): Dokumentacja API Thunar |
4397f92c MB |
58 | Group: Documentation |
59 | Requires: gtk-doc-common | |
60 | ||
61 | %description apidocs | |
62 | Thunar API documentation. | |
63 | ||
43d73f39 | 64 | %description apidocs -l pl.UTF-8 |
4397f92c MB |
65 | Dokumentacja API Thunar. |
66 | ||
614bb69c | 67 | %package libs |
68 | Summary: Thunar libraries | |
457a5ea5 | 69 | Summary(pl.UTF-8): Biblioteki Thunar |
614bb69c | 70 | Group: Libraries |
71 | ||
72 | %description libs | |
73 | Thunar libraries. | |
74 | ||
43d73f39 | 75 | %description libs -l pl.UTF-8 |
614bb69c | 76 | Biblioteki Thunar. |
77 | ||
78 | %package devel | |
79 | Summary: Header files for Thunar libraries | |
457a5ea5 | 80 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Thunar |
614bb69c | 81 | Group: Development/Libraries |
82 | Requires: %{name}-libs = %{version}-%{release} | |
6cf886ac | 83 | Requires: GConf2-devel >= 2.16.0 |
bcf2d25f | 84 | Requires: dbus-glib-devel >= 0.62 |
8a88c80a | 85 | Requires: gamin-devel |
bcf2d25f | 86 | Requires: hal-devel >= 0.5.7 |
9d67fff2 | 87 | Requires: libexo-devel >= 0.3.4 |
3d120318 | 88 | Requires: libjpeg-devel |
614bb69c | 89 | |
90 | %description devel | |
91 | This is the package containing the header files for Thunar libraries. | |
92 | ||
43d73f39 JR |
93 | %description devel -l pl.UTF-8 |
94 | Ten pakiet zawiera pliki nagłówkowe biblioteki Thunar. | |
614bb69c | 95 | |
96 | %package static | |
6cf886ac | 97 | Summary: Static Thunar libraries |
457a5ea5 | 98 | Summary(pl.UTF-8): Statyczne biblioteki Thunar |
614bb69c | 99 | Group: Development/Libraries |
100 | Requires: %{name}-devel = %{version}-%{release} | |
101 | ||
102 | %description static | |
103 | Static Thunar libraries. | |
104 | ||
43d73f39 | 105 | %description static -l pl.UTF-8 |
6cf886ac | 106 | Statyczne biblioteki Thunar. |
614bb69c | 107 | |
108 | %prep | |
4397f92c | 109 | %setup -q |
0b4557ef | 110 | %patch0 -p1 |
9d67fff2 MB |
111 | %patch1 -p1 |
112 | %patch2 -p0 | |
113 | ||
114 | mv -f po/{pt_PT,pt}.po | |
115 | mv -f po/{nb_NO,nb}.po | |
614bb69c | 116 | |
117 | %build | |
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 | |
188 | %lang(es) %{_docdir}/Thunar/html/es | |
4397f92c | 189 | %lang(eu) %{_docdir}/Thunar/html/eu |
614bb69c | 190 | %lang(fr) %{_docdir}/Thunar/html/fr |
191 | %lang(ja) %{_docdir}/Thunar/html/ja | |
9d67fff2 | 192 | %lang(nl) %{_docdir}/Thunar/html/nl |
4397f92c | 193 | %lang(pl) %{_docdir}/Thunar/html/pl |
bcf2d25f | 194 | %lang(ru) %{_docdir}/Thunar/html/ru |
195 | %lang(zh_TW) %{_docdir}/Thunar/html/zh_TW | |
614bb69c | 196 | |
4397f92c MB |
197 | %files apidocs |
198 | %defattr(644,root,root,755) | |
199 | %{_gtkdocdir}/thunar* | |
200 | ||
614bb69c | 201 | %files libs |
202 | %defattr(644,root,root,755) | |
9d67fff2 | 203 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
614bb69c | 204 | |
205 | %files devel | |
206 | %defattr(644,root,root,755) | |
207 | %attr(755,root,root) %{_libdir}/lib*.so | |
208 | %{_libdir}/lib*.la | |
209 | %{_includedir}/thunar* | |
210 | %{_pkgconfigdir}/*.pc | |
211 | ||
19aadd7a | 212 | %if %{with static_libs} |
614bb69c | 213 | %files static |
214 | %defattr(644,root,root,755) | |
215 | %{_libdir}/*.a | |
19aadd7a | 216 | %endif |