]>
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 |
5f4c896d | 9 | Version: 1.2.1 |
f8635ac7 | 10 | Release: 3 |
614bb69c | 11 | License: GPL v2 / LGPL v2 |
60f8e7d3 | 12 | Group: X11/Applications |
5f4c896d MB |
13 | Source0: http://archive.xfce.org/src/xfce/thunar/1.2/%{name}-%{version}.tar.bz2 |
14 | # Source0-md5: d8dce796890619d67aed0cd7ef84c7b1 | |
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} |
f8635ac7 | 47 | Obsoletes: Thunar-thumbnailers |
614bb69c | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %description | |
51 | Thunar is a modern file manager, aiming to be easy-to-use and fast. | |
52 | ||
43d73f39 JR |
53 | %description -l pl.UTF-8 |
54 | Thunar jest nowoczesnym zarządcą plików, nakierowanym na łatwość i | |
55 | szybkość użycia. | |
614bb69c | 56 | |
4397f92c MB |
57 | %package apidocs |
58 | Summary: Thunar API documentation | |
457a5ea5 | 59 | Summary(pl.UTF-8): Dokumentacja API Thunar |
4397f92c MB |
60 | Group: Documentation |
61 | Requires: gtk-doc-common | |
9fb03e63 | 62 | Obsoletes: thunar-vfs-apidocs |
4397f92c MB |
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 |
9fb03e63 | 74 | Obsoletes: thunar-vfs |
614bb69c | 75 | |
76 | %description libs | |
77 | Thunar libraries. | |
78 | ||
43d73f39 | 79 | %description libs -l pl.UTF-8 |
614bb69c | 80 | Biblioteki Thunar. |
81 | ||
82 | %package devel | |
83 | Summary: Header files for Thunar libraries | |
457a5ea5 | 84 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Thunar |
cf138d2b | 85 | Group: X11/Development/Libraries |
614bb69c | 86 | Requires: %{name}-libs = %{version}-%{release} |
5f4c896d MB |
87 | Requires: exo-devel >= 0.6.0 |
88 | Requires: gtk+2-devel >= 2:2.14.0 | |
9fb03e63 | 89 | Obsoletes: thunar-vfs-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 |
cf138d2b | 100 | Group: X11/Development/Libraries |
614bb69c | 101 | Requires: %{name}-devel = %{version}-%{release} |
9fb03e63 | 102 | Obsoletes: thunar-vfs-static |
614bb69c | 103 | |
104 | %description static | |
105 | Static Thunar libraries. | |
106 | ||
43d73f39 | 107 | %description static -l pl.UTF-8 |
6cf886ac | 108 | Statyczne biblioteki Thunar. |
614bb69c | 109 | |
110 | %prep | |
4397f92c | 111 | %setup -q |
0b4557ef | 112 | %patch0 -p1 |
614bb69c | 113 | |
114 | %build | |
68140051 | 115 | %{__gtkdocize} |
cf138d2b MB |
116 | %{__intltoolize} |
117 | %{__libtoolize} | |
118 | %{__aclocal} | |
119 | %{__automake} | |
120 | %{__autoheader} | |
121 | %{__autoconf} | |
614bb69c | 122 | %configure \ |
6cf886ac MB |
123 | --enable-dbus \ |
124 | --enable-exif \ | |
4397f92c | 125 | --enable-gtk-doc \ |
6cf886ac MB |
126 | --enable-pcre \ |
127 | --enable-startup-notification \ | |
4397f92c | 128 | --with-html-dir=%{_gtkdocdir} \ |
5f4c896d MB |
129 | %{?with_static_libs:--enable-static} \ |
130 | --disable-silent-rules | |
4397f92c | 131 | |
614bb69c | 132 | %{__make} |
133 | ||
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
137 | %{__make} install \ | |
138 | DESTDIR=$RPM_BUILD_ROOT | |
139 | ||
5f4c896d MB |
140 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/thunarx-2/*.{a,la} |
141 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/xfce4/panel/plugins/*.{a,la} | |
142 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
614bb69c | 143 | |
5f4c896d | 144 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK |
de0fd64f | 145 | |
614bb69c | 146 | %find_lang %{name} --all-name |
147 | ||
148 | %clean | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
bcf2d25f | 151 | %post |
0b4557ef | 152 | %update_desktop_database_post |
60f8e7d3 | 153 | %update_icon_cache hicolor |
bcf2d25f | 154 | |
155 | %postun | |
0b4557ef | 156 | %update_desktop_database_postun |
60f8e7d3 | 157 | %update_icon_cache hicolor |
bcf2d25f | 158 | |
614bb69c | 159 | %post libs -p /sbin/ldconfig |
160 | %postun libs -p /sbin/ldconfig | |
161 | ||
162 | %files -f %{name}.lang | |
163 | %defattr(644,root,root,755) | |
164 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
165 | %attr(755,root,root) %{_bindir}/* | |
166 | %dir %{_sysconfdir}/xdg/Thunar | |
167 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/Thunar/*.xml | |
5f4c896d MB |
168 | %dir %{_libdir}/Thunar |
169 | %attr(755,root,root) %{_libdir}/Thunar/ThunarBulkRename | |
170 | %attr(755,root,root) %{_libdir}/Thunar/ThunarHelp | |
171 | %attr(755,root,root) %{_libdir}/Thunar/thunar-sendto-email | |
172 | %dir %{_libdir}/thunarx-2 | |
173 | %attr(755,root,root) %{_libdir}/thunarx-2/*.so | |
174 | %attr(755,root,root) %{_libdir}/xfce4/panel/plugins/libthunar-tpa.so | |
614bb69c | 175 | |
bcf2d25f | 176 | %{_datadir}/Thunar |
60f8e7d3 | 177 | %{_datadir}/xfce4/panel-plugins/*.desktop |
614bb69c | 178 | %{_datadir}/dbus-1/services/*.service |
179 | %{_desktopdir}/*.desktop | |
180 | %{_iconsdir}/hicolor/*/*/* | |
181 | %{_pixmapsdir}/Thunar | |
60f8e7d3 | 182 | %{_mandir}/man1/Thunar* |
614bb69c | 183 | |
184 | %dir %{_docdir}/Thunar | |
185 | # move it to proper place | |
186 | %{_docdir}/Thunar/README* | |
187 | ||
188 | %dir %{_docdir}/Thunar/html | |
189 | %{_docdir}/Thunar/html/C | |
190 | %{_docdir}/Thunar/html/*.css | |
5f4c896d MB |
191 | %lang(bn) %{_docdir}/Thunar/html/bn |
192 | %lang(ca) %{_docdir}/Thunar/html/ca | |
da11fc9a | 193 | %lang(da) %{_docdir}/Thunar/html/da |
5f4c896d | 194 | %lang(el) %{_docdir}/Thunar/html/el |
614bb69c | 195 | %lang(es) %{_docdir}/Thunar/html/es |
4397f92c | 196 | %lang(eu) %{_docdir}/Thunar/html/eu |
614bb69c | 197 | %lang(fr) %{_docdir}/Thunar/html/fr |
da11fc9a | 198 | %lang(gl) %{_docdir}/Thunar/html/gl |
5f4c896d | 199 | %lang(id) %{_docdir}/Thunar/html/id |
da11fc9a | 200 | %lang(it) %{_docdir}/Thunar/html/it |
614bb69c | 201 | %lang(ja) %{_docdir}/Thunar/html/ja |
9d67fff2 | 202 | %lang(nl) %{_docdir}/Thunar/html/nl |
4397f92c | 203 | %lang(pl) %{_docdir}/Thunar/html/pl |
bcf2d25f | 204 | %lang(ru) %{_docdir}/Thunar/html/ru |
5f4c896d | 205 | %lang(sv) %{_docdir}/Thunar/html/sv |
cf138d2b | 206 | %lang(tr) %{_docdir}/Thunar/html/tr |
5f4c896d MB |
207 | %lang(ug) %{_docdir}/Thunar/html/ug |
208 | %lang(zh_CN) %{_docdir}/Thunar/html/zh_CN | |
bcf2d25f | 209 | %lang(zh_TW) %{_docdir}/Thunar/html/zh_TW |
614bb69c | 210 | |
4397f92c MB |
211 | %files apidocs |
212 | %defattr(644,root,root,755) | |
cf138d2b | 213 | %{_gtkdocdir}/thunarx |
4397f92c | 214 | |
614bb69c | 215 | %files libs |
216 | %defattr(644,root,root,755) | |
5f4c896d MB |
217 | %attr(755,root,root) %{_libdir}/libthunarx-2.so.*.*.* |
218 | %attr(755,root,root) %ghost %{_libdir}/libthunarx-2.so.0 | |
614bb69c | 219 | |
220 | %files devel | |
221 | %defattr(644,root,root,755) | |
5f4c896d MB |
222 | %attr(755,root,root) %{_libdir}/libthunarx-2.so |
223 | %{_includedir}/thunarx-2 | |
224 | %{_pkgconfigdir}/thunarx-2.pc | |
614bb69c | 225 | |
19aadd7a | 226 | %if %{with static_libs} |
614bb69c | 227 | %files static |
228 | %defattr(644,root,root,755) | |
5f4c896d | 229 | %{_libdir}/libthunarx-2.a |
19aadd7a | 230 | %endif |