]>
Commit | Line | Data |
---|---|---|
19aadd7a KK |
1 | # |
2 | # Conditional build: | |
ff8bf4aa | 3 | %bcond_without static_libs # static library |
8b3d7f13 | 4 | |
6649696e | 5 | %define xfce_version 4.18.0 |
614bb69c | 6 | Summary: Xfce file manager |
457a5ea5 | 7 | Summary(pl.UTF-8): Zarządca plików Xfce |
614bb69c | 8 | Name: Thunar |
dc3f14d5 | 9 | Version: 4.18.10 |
249b88df | 10 | Release: 1 |
614bb69c | 11 | License: GPL v2 / LGPL v2 |
60f8e7d3 | 12 | Group: X11/Applications |
6649696e | 13 | Source0: https://archive.xfce.org/src/xfce/thunar/4.18/thunar-%{version}.tar.bz2 |
dc3f14d5 | 14 | # Source0-md5: 5cec04a1c41df73cd146d027fd513ef2 |
0b4557ef | 15 | Patch0: %{name}-desktop.patch |
ff8bf4aa JB |
16 | URL: https://docs.xfce.org/xfce/thunar/start |
17 | BuildRequires: autoconf >= 2.60 | |
18 | BuildRequires: automake >= 1:1.11 | |
0f62599c | 19 | BuildRequires: docbook-dtd412-xml |
ff8bf4aa JB |
20 | BuildRequires: exo-devel >= 4.17.0 |
21 | BuildRequires: gdk-pixbuf2-devel >= 2.40.0 | |
d53468fd | 22 | BuildRequires: gettext-tools |
6649696e | 23 | BuildRequires: glib2-devel >= 1:2.66.0 |
ff8bf4aa JB |
24 | BuildRequires: gobject-introspection-devel >= 1.66.0 |
25 | BuildRequires: gtk+3-devel >= 3.24.0 | |
26 | BuildRequires: gtk-doc >= 1.9 | |
44b7220a | 27 | BuildRequires: intltool |
5f4c896d | 28 | BuildRequires: libexif-devel >= 0.6.0 |
ff8bf4aa | 29 | BuildRequires: libgudev-devel >= 145 |
5f4c896d | 30 | BuildRequires: libnotify-devel >= 0.4.0 |
ff8bf4aa JB |
31 | BuildRequires: libtool >= 2:2.4 |
32 | BuildRequires: libxfce4ui-devel >= %{xfce_version} | |
bcf2d25f | 33 | BuildRequires: libxfce4util-devel >= %{xfce_version} |
ea3c5559 | 34 | BuildRequires: pcre-devel >= 6.0 |
ff8bf4aa | 35 | BuildRequires: pango-devel >= 1:1.38.0 |
ea3c5559 JB |
36 | BuildRequires: perl-base |
37 | BuildRequires: pkgconfig | |
ff8bf4aa | 38 | BuildRequires: rpm-build >= 4.6 |
2a82bef0 | 39 | BuildRequires: rpmbuild(macros) >= 2.011 |
614bb69c | 40 | BuildRequires: startup-notification-devel >= 0.8 |
5f4c896d | 41 | BuildRequires: xfce4-dev-tools >= %{xfce_version} |
6cf886ac | 42 | BuildRequires: xfce4-panel-devel >= %{xfce_version} |
25a8b921 | 43 | BuildRequires: xfconf-devel >= %{xfce_version} |
ff8bf4aa JB |
44 | BuildRequires: xorg-lib-libSM-devel |
45 | BuildRequires: xorg-lib-libX11-devel | |
0b4557ef | 46 | Requires(post,postun): desktop-file-utils |
ff8bf4aa | 47 | Requires(post,postun): gtk-update-icon-cache |
95d998ba | 48 | Requires(post,preun): systemd-units >= 1:250.1 |
614bb69c | 49 | Requires: %{name}-libs = %{version}-%{release} |
ff8bf4aa JB |
50 | Requires: exo >= 4.17.0 |
51 | Requires: gdk-pixbuf2 >= 2.40.0 | |
5f4c896d | 52 | Requires: hicolor-icon-theme |
ff8bf4aa JB |
53 | Requires: libnotify >= 0.4.0 |
54 | Requires: libxfce4ui >= %{xfce_version} | |
55 | Requires: libxfce4util >= %{xfce_version} | |
56 | Requires: pango >= 1:1.38.0 | |
614bb69c | 57 | Requires: shared-mime-info >= 0.15 |
95d998ba | 58 | Requires: systemd-units >= 1:250.1 |
5f4c896d | 59 | Requires: xfconf >= %{xfce_version} |
8ad9d0a9 | 60 | Suggests: tumbler |
49bafdf9 | 61 | Obsoletes: Thunar-thumbnailers < 0.5 |
614bb69c | 62 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
63 | ||
64 | %description | |
65 | Thunar is a modern file manager, aiming to be easy-to-use and fast. | |
66 | ||
43d73f39 JR |
67 | %description -l pl.UTF-8 |
68 | Thunar jest nowoczesnym zarządcą plików, nakierowanym na łatwość i | |
69 | szybkość użycia. | |
614bb69c | 70 | |
71 | %package libs | |
72 | Summary: Thunar libraries | |
457a5ea5 | 73 | Summary(pl.UTF-8): Biblioteki Thunar |
cf138d2b | 74 | Group: X11/Libraries |
ff8bf4aa JB |
75 | Requires: glib2 >= 1:2.66.0 |
76 | Requires: gtk+3 >= 3.24.0 | |
49bafdf9 | 77 | Obsoletes: thunar-vfs < 1.3 |
614bb69c | 78 | |
79 | %description libs | |
80 | Thunar libraries. | |
81 | ||
43d73f39 | 82 | %description libs -l pl.UTF-8 |
614bb69c | 83 | Biblioteki Thunar. |
84 | ||
85 | %package devel | |
86 | Summary: Header files for Thunar libraries | |
457a5ea5 | 87 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Thunar |
cf138d2b | 88 | Group: X11/Development/Libraries |
614bb69c | 89 | Requires: %{name}-libs = %{version}-%{release} |
ff8bf4aa JB |
90 | Requires: glib2-devel >= 1:2.66.0 |
91 | Requires: gtk+3-devel >= 3.24.0 | |
49bafdf9 | 92 | Obsoletes: thunar-vfs-devel < 1.3 |
614bb69c | 93 | |
94 | %description devel | |
95 | This is the package containing the header files for Thunar libraries. | |
96 | ||
43d73f39 JR |
97 | %description devel -l pl.UTF-8 |
98 | Ten pakiet zawiera pliki nagłówkowe biblioteki Thunar. | |
614bb69c | 99 | |
100 | %package static | |
6cf886ac | 101 | Summary: Static Thunar libraries |
457a5ea5 | 102 | Summary(pl.UTF-8): Statyczne biblioteki Thunar |
cf138d2b | 103 | Group: X11/Development/Libraries |
614bb69c | 104 | Requires: %{name}-devel = %{version}-%{release} |
49bafdf9 | 105 | Obsoletes: thunar-vfs-static < 1.3 |
614bb69c | 106 | |
107 | %description static | |
108 | Static Thunar libraries. | |
109 | ||
43d73f39 | 110 | %description static -l pl.UTF-8 |
6cf886ac | 111 | Statyczne biblioteki Thunar. |
614bb69c | 112 | |
ff8bf4aa JB |
113 | %package apidocs |
114 | Summary: Thunar API documentation | |
115 | Summary(pl.UTF-8): Dokumentacja API Thunar | |
116 | Group: Documentation | |
117 | Requires: gtk-doc-common | |
118 | Obsoletes: thunar-vfs-apidocs < 1.3 | |
119 | BuildArch: noarch | |
120 | ||
121 | %description apidocs | |
122 | Thunar API documentation. | |
123 | ||
124 | %description apidocs -l pl.UTF-8 | |
125 | Dokumentacja API Thunar. | |
126 | ||
614bb69c | 127 | %prep |
c8aa85fe | 128 | %setup -q -n thunar-%{version} |
0b4557ef | 129 | %patch0 -p1 |
614bb69c | 130 | |
131 | %build | |
68140051 | 132 | %{__gtkdocize} |
cf138d2b MB |
133 | %{__intltoolize} |
134 | %{__libtoolize} | |
135 | %{__aclocal} | |
136 | %{__automake} | |
137 | %{__autoheader} | |
138 | %{__autoconf} | |
614bb69c | 139 | %configure \ |
6cf886ac | 140 | --enable-exif \ |
4397f92c | 141 | --enable-gtk-doc \ |
ff8bf4aa | 142 | --disable-silent-rules \ |
5f4c896d | 143 | %{?with_static_libs:--enable-static} \ |
ff8bf4aa | 144 | --with-html-dir=%{_gtkdocdir} |
4397f92c | 145 | |
614bb69c | 146 | %{__make} |
147 | ||
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
614bb69c | 150 | %{__make} install \ |
151 | DESTDIR=$RPM_BUILD_ROOT | |
152 | ||
25a8b921 | 153 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/thunarx-3/*.{a,la} |
5f4c896d MB |
154 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/xfce4/panel/plugins/*.{a,la} |
155 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
614bb69c | 156 | |
ff8bf4aa JB |
157 | # unify |
158 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fa_IR,fa} | |
159 | # duplicate of hy,ur | |
160 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hy_AM,ur_PK} | |
161 | # not supported by glibc (as of 2.37) | |
162 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hye,ie} | |
80a1b42a | 163 | |
ff8bf4aa | 164 | %find_lang thunar |
614bb69c | 165 | |
166 | %clean | |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
bcf2d25f | 169 | %post |
0b4557ef | 170 | %update_desktop_database_post |
60f8e7d3 | 171 | %update_icon_cache hicolor |
2a82bef0 JR |
172 | %systemd_user_post thunar.service |
173 | ||
174 | %preun | |
175 | %systemd_user_preun thunar.service | |
bcf2d25f | 176 | |
177 | %postun | |
0b4557ef | 178 | %update_desktop_database_postun |
60f8e7d3 | 179 | %update_icon_cache hicolor |
bcf2d25f | 180 | |
614bb69c | 181 | %post libs -p /sbin/ldconfig |
182 | %postun libs -p /sbin/ldconfig | |
183 | ||
ff8bf4aa | 184 | %files -f thunar.lang |
614bb69c | 185 | %defattr(644,root,root,755) |
bba7f424 | 186 | %doc AUTHORS ChangeLog NEWS THANKS |
ff8bf4aa JB |
187 | %attr(755,root,root) %{_bindir}/Thunar |
188 | %attr(755,root,root) %{_bindir}/thunar | |
189 | %attr(755,root,root) %{_bindir}/thunar-settings | |
614bb69c | 190 | %dir %{_sysconfdir}/xdg/Thunar |
191 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/Thunar/*.xml | |
5f4c896d | 192 | %dir %{_libdir}/Thunar |
5f4c896d | 193 | %attr(755,root,root) %{_libdir}/Thunar/thunar-sendto-email |
25a8b921 | 194 | %dir %{_libdir}/thunarx-3 |
ff8bf4aa | 195 | %attr(755,root,root) %{_libdir}/thunarx-3/thunar-*.so |
5f4c896d | 196 | %attr(755,root,root) %{_libdir}/xfce4/panel/plugins/libthunar-tpa.so |
614bb69c | 197 | |
25a8b921 | 198 | %{systemduserunitdir}/thunar.service |
ff8bf4aa JB |
199 | %{_datadir}/dbus-1/services/org.xfce.FileManager.service |
200 | %{_datadir}/dbus-1/services/org.xfce.Thunar.service | |
201 | %{_datadir}/dbus-1/services/org.xfce.Thunar.FileManager1.service | |
25a8b921 | 202 | %{_datadir}/metainfo/org.xfce.thunar.appdata.xml |
3da8e729 | 203 | %{_datadir}/polkit-1/actions/org.xfce.thunar.policy |
ff8bf4aa JB |
204 | %{_datadir}/Thunar/sendto/thunar-sendto-email.desktop |
205 | %{_datadir}/xfce4/panel/plugins/thunar-tpa.desktop | |
206 | %{_desktopdir}/thunar.desktop | |
207 | %{_desktopdir}/thunar-bulk-rename.desktop | |
208 | %{_desktopdir}/thunar-settings.desktop | |
209 | %{_iconsdir}/hicolor/*x*/apps/org.xfce.thunar.png | |
210 | %{_iconsdir}/hicolor/*x*/stock/navigation/stock_folder-*.png | |
211 | %{_iconsdir}/hicolor/scalable/apps/org.xfce.thunar.svg | |
212 | %{_mandir}/man1/Thunar.1* | |
614bb69c | 213 | |
c8aa85fe | 214 | %dir %{_docdir}/thunar |
614bb69c | 215 | # move it to proper place |
c8aa85fe | 216 | %{_docdir}/thunar/README* |
4397f92c | 217 | |
614bb69c | 218 | %files libs |
219 | %defattr(644,root,root,755) | |
25a8b921 JR |
220 | %attr(755,root,root) %{_libdir}/libthunarx-3.so.*.*.* |
221 | %attr(755,root,root) %ghost %{_libdir}/libthunarx-3.so.0 | |
ff8bf4aa | 222 | %{_libdir}/girepository-1.0/Thunarx-3.0.typelib |
614bb69c | 223 | |
224 | %files devel | |
225 | %defattr(644,root,root,755) | |
25a8b921 JR |
226 | %attr(755,root,root) %{_libdir}/libthunarx-3.so |
227 | %{_includedir}/thunarx-3 | |
228 | %{_pkgconfigdir}/thunarx-3.pc | |
229 | %{_datadir}/gir-1.0/Thunarx-3.0.gir | |
614bb69c | 230 | |
19aadd7a | 231 | %if %{with static_libs} |
614bb69c | 232 | %files static |
233 | %defattr(644,root,root,755) | |
25a8b921 | 234 | %{_libdir}/libthunarx-3.a |
19aadd7a | 235 | %endif |
ff8bf4aa JB |
236 | |
237 | %files apidocs | |
238 | %defattr(644,root,root,755) | |
239 | %{_gtkdocdir}/thunar | |
240 | %{_gtkdocdir}/thunarx |