]>
Commit | Line | Data |
---|---|---|
19aadd7a KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
8b3d7f13 | 4 | |
bba7f424 | 5 | %define xfce_version 4.16.0 |
614bb69c | 6 | Summary: Xfce file manager |
457a5ea5 | 7 | Summary(pl.UTF-8): Zarządca plików Xfce |
614bb69c | 8 | Name: Thunar |
14c1944a | 9 | Version: 4.16.9 |
2a82bef0 | 10 | Release: 2 |
614bb69c | 11 | License: GPL v2 / LGPL v2 |
60f8e7d3 | 12 | Group: X11/Applications |
bba7f424 | 13 | Source0: http://archive.xfce.org/src/xfce/thunar/4.16/thunar-%{version}.tar.bz2 |
14c1944a | 14 | # Source0-md5: 83a5e6504dd6678b07e733ad162a59eb |
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 |
bba7f424 | 21 | BuildRequires: exo-devel >= 4.15.3 |
25a8b921 | 22 | BuildRequires: gdk-pixbuf2-devel |
d53468fd | 23 | BuildRequires: gettext-tools |
bba7f424 | 24 | BuildRequires: glib2-devel >= 1:2.50.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 |
bba7f424 | 33 | BuildRequires: libxfce4ui-devel >= 4.16.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 \ |
6cf886ac | 136 | --enable-pcre \ |
4397f92c | 137 | --with-html-dir=%{_gtkdocdir} \ |
5f4c896d MB |
138 | %{?with_static_libs:--enable-static} \ |
139 | --disable-silent-rules | |
4397f92c | 140 | |
614bb69c | 141 | %{__make} |
142 | ||
143 | %install | |
144 | rm -rf $RPM_BUILD_ROOT | |
614bb69c | 145 | %{__make} install \ |
146 | DESTDIR=$RPM_BUILD_ROOT | |
147 | ||
25a8b921 | 148 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/thunarx-3/*.{a,la} |
5f4c896d MB |
149 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/xfce4/panel/plugins/*.{a,la} |
150 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
614bb69c | 151 | |
539006b9 | 152 | # duplicate of ur |
af9e7c47 | 153 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK |
de0fd64f | 154 | |
2c595d84 | 155 | # unknown / unsupported |
bba7f424 | 156 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{fa_IR,hye,hy_AM,ie} |
80a1b42a | 157 | |
614bb69c | 158 | %find_lang %{name} --all-name |
159 | ||
160 | %clean | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
bcf2d25f | 163 | %post |
0b4557ef | 164 | %update_desktop_database_post |
60f8e7d3 | 165 | %update_icon_cache hicolor |
2a82bef0 JR |
166 | %systemd_user_post thunar.service |
167 | ||
168 | %preun | |
169 | %systemd_user_preun thunar.service | |
bcf2d25f | 170 | |
171 | %postun | |
0b4557ef | 172 | %update_desktop_database_postun |
60f8e7d3 | 173 | %update_icon_cache hicolor |
bcf2d25f | 174 | |
614bb69c | 175 | %post libs -p /sbin/ldconfig |
176 | %postun libs -p /sbin/ldconfig | |
177 | ||
178 | %files -f %{name}.lang | |
179 | %defattr(644,root,root,755) | |
bba7f424 | 180 | %doc AUTHORS ChangeLog NEWS THANKS |
614bb69c | 181 | %attr(755,root,root) %{_bindir}/* |
182 | %dir %{_sysconfdir}/xdg/Thunar | |
183 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/Thunar/*.xml | |
5f4c896d | 184 | %dir %{_libdir}/Thunar |
5f4c896d | 185 | %attr(755,root,root) %{_libdir}/Thunar/thunar-sendto-email |
25a8b921 JR |
186 | %dir %{_libdir}/thunarx-3 |
187 | %attr(755,root,root) %{_libdir}/thunarx-3/*.so | |
5f4c896d | 188 | %attr(755,root,root) %{_libdir}/xfce4/panel/plugins/libthunar-tpa.so |
614bb69c | 189 | |
25a8b921 JR |
190 | %{systemduserunitdir}/thunar.service |
191 | %{_libdir}/girepository-1.0/Thunarx-3.0.typelib | |
192 | %{_datadir}/metainfo/org.xfce.thunar.appdata.xml | |
3da8e729 | 193 | %{_datadir}/polkit-1/actions/org.xfce.thunar.policy |
3bb15703 | 194 | %{_datadir}/Thunar/sendto/*.desktop |
3da8e729 | 195 | %{_datadir}/xfce4/panel/plugins/*.desktop |
614bb69c | 196 | %{_datadir}/dbus-1/services/*.service |
197 | %{_desktopdir}/*.desktop | |
198 | %{_iconsdir}/hicolor/*/*/* | |
60f8e7d3 | 199 | %{_mandir}/man1/Thunar* |
614bb69c | 200 | |
c8aa85fe | 201 | %dir %{_docdir}/thunar |
614bb69c | 202 | # move it to proper place |
c8aa85fe | 203 | %{_docdir}/thunar/README* |
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 |