]>
Commit | Line | Data |
---|---|---|
19aadd7a KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
8b3d7f13 | 4 | |
3da8e729 | 5 | %define xfce_version 4.12.0 |
614bb69c | 6 | Summary: Xfce file manager |
457a5ea5 | 7 | Summary(pl.UTF-8): Zarządca plików Xfce |
614bb69c | 8 | Name: Thunar |
c8aa85fe | 9 | Version: 1.8.15 |
b3e0f774 | 10 | Release: 1 |
614bb69c | 11 | License: GPL v2 / LGPL v2 |
60f8e7d3 | 12 | Group: X11/Applications |
c8aa85fe KM |
13 | Source0: http://archive.xfce.org/src/xfce/thunar/1.8/thunar-%{version}.tar.bz2 |
14 | # Source0-md5: 303010f4959fa23f7c13c0ccd9b8527e | |
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 |
25a8b921 JR |
21 | BuildRequires: exo-devel >= 0.12.0 |
22 | BuildRequires: gdk-pixbuf2-devel | |
d53468fd | 23 | BuildRequires: gettext-tools |
3da8e729 | 24 | BuildRequires: glib2-devel >= 1:2.30.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 |
479b5cae | 33 | BuildRequires: libxfce4ui-devel >= 4.12.0 |
bcf2d25f | 34 | BuildRequires: libxfce4util-devel >= %{xfce_version} |
ea3c5559 JB |
35 | BuildRequires: pcre-devel >= 6.0 |
36 | BuildRequires: perl-base | |
37 | BuildRequires: pkgconfig | |
5f4c896d | 38 | BuildRequires: rpmbuild(macros) >= 1.601 |
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 |
614bb69c | 44 | Requires: %{name}-libs = %{version}-%{release} |
25a8b921 | 45 | Requires: exo >= 0.12.0 |
5f4c896d MB |
46 | Requires: gtk-update-icon-cache |
47 | Requires: hicolor-icon-theme | |
614bb69c | 48 | Requires: shared-mime-info >= 0.15 |
5f4c896d | 49 | Requires: xfconf >= %{xfce_version} |
8ad9d0a9 | 50 | Suggests: tumbler |
f8635ac7 | 51 | Obsoletes: Thunar-thumbnailers |
614bb69c | 52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
54 | %description | |
55 | Thunar is a modern file manager, aiming to be easy-to-use and fast. | |
56 | ||
43d73f39 JR |
57 | %description -l pl.UTF-8 |
58 | Thunar jest nowoczesnym zarządcą plików, nakierowanym na łatwość i | |
59 | szybkość użycia. | |
614bb69c | 60 | |
4397f92c MB |
61 | %package apidocs |
62 | Summary: Thunar API documentation | |
457a5ea5 | 63 | Summary(pl.UTF-8): Dokumentacja API Thunar |
4397f92c MB |
64 | Group: Documentation |
65 | Requires: gtk-doc-common | |
9fb03e63 | 66 | Obsoletes: thunar-vfs-apidocs |
af9e7c47 ER |
67 | %if "%{_rpmversion}" >= "5" |
68 | BuildArch: noarch | |
69 | %endif | |
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 |
9fb03e63 | 81 | Obsoletes: thunar-vfs |
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} |
25a8b921 JR |
94 | Requires: exo-devel >= 0.12.0 |
95 | Requires: gtk+3-devel >= 3.22.0 | |
9fb03e63 | 96 | Obsoletes: thunar-vfs-devel |
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} |
9fb03e63 | 109 | Obsoletes: thunar-vfs-static |
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 MB |
134 | --enable-dbus \ |
135 | --enable-exif \ | |
4397f92c | 136 | --enable-gtk-doc \ |
6cf886ac MB |
137 | --enable-pcre \ |
138 | --enable-startup-notification \ | |
4397f92c | 139 | --with-html-dir=%{_gtkdocdir} \ |
5f4c896d MB |
140 | %{?with_static_libs:--enable-static} \ |
141 | --disable-silent-rules | |
4397f92c | 142 | |
614bb69c | 143 | %{__make} |
144 | ||
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
614bb69c | 147 | %{__make} install \ |
148 | DESTDIR=$RPM_BUILD_ROOT | |
149 | ||
25a8b921 | 150 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/thunarx-3/*.{a,la} |
5f4c896d MB |
151 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/xfce4/panel/plugins/*.{a,la} |
152 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
614bb69c | 153 | |
539006b9 | 154 | # duplicate of ur |
af9e7c47 | 155 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK |
de0fd64f | 156 | |
2c595d84 JR |
157 | # unknown / unsupported |
158 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{fa_IR,hy_AM,ie} | |
80a1b42a | 159 | |
614bb69c | 160 | %find_lang %{name} --all-name |
161 | ||
162 | %clean | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
bcf2d25f | 165 | %post |
0b4557ef | 166 | %update_desktop_database_post |
60f8e7d3 | 167 | %update_icon_cache hicolor |
bcf2d25f | 168 | |
169 | %postun | |
0b4557ef | 170 | %update_desktop_database_postun |
60f8e7d3 | 171 | %update_icon_cache hicolor |
bcf2d25f | 172 | |
614bb69c | 173 | %post libs -p /sbin/ldconfig |
174 | %postun libs -p /sbin/ldconfig | |
175 | ||
176 | %files -f %{name}.lang | |
177 | %defattr(644,root,root,755) | |
178 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
179 | %attr(755,root,root) %{_bindir}/* | |
180 | %dir %{_sysconfdir}/xdg/Thunar | |
181 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/Thunar/*.xml | |
5f4c896d MB |
182 | %dir %{_libdir}/Thunar |
183 | %attr(755,root,root) %{_libdir}/Thunar/ThunarBulkRename | |
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/*/*/* | |
198 | %{_pixmapsdir}/Thunar | |
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 |