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