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