]>
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 |
cecd4d67 | 9 | Version: 4.16.6 |
b3e0f774 | 10 | Release: 1 |
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 |
cecd4d67 | 14 | # Source0-md5: eab974609004395c2af42d466b3f3bca |
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 | |
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} |
bba7f424 | 45 | Requires: exo >= 4.15.3 |
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 |
49bafdf9 | 51 | Obsoletes: Thunar-thumbnailers < 0.5 |
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 | |
49bafdf9 | 66 | Obsoletes: thunar-vfs-apidocs < 1.3 |
af9e7c47 | 67 | BuildArch: noarch |
4397f92c MB |
68 | |
69 | %description apidocs | |
70 | Thunar API documentation. | |
71 | ||
43d73f39 | 72 | %description apidocs -l pl.UTF-8 |
4397f92c MB |
73 | Dokumentacja API Thunar. |
74 | ||
614bb69c | 75 | %package libs |
76 | Summary: Thunar libraries | |
457a5ea5 | 77 | Summary(pl.UTF-8): Biblioteki Thunar |
cf138d2b | 78 | Group: X11/Libraries |
49bafdf9 | 79 | Obsoletes: thunar-vfs < 1.3 |
614bb69c | 80 | |
81 | %description libs | |
82 | Thunar libraries. | |
83 | ||
43d73f39 | 84 | %description libs -l pl.UTF-8 |
614bb69c | 85 | Biblioteki Thunar. |
86 | ||
87 | %package devel | |
88 | Summary: Header files for Thunar libraries | |
457a5ea5 | 89 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Thunar |
cf138d2b | 90 | Group: X11/Development/Libraries |
614bb69c | 91 | Requires: %{name}-libs = %{version}-%{release} |
bba7f424 | 92 | Requires: exo-devel >= 4.15.3 |
25a8b921 | 93 | Requires: gtk+3-devel >= 3.22.0 |
49bafdf9 | 94 | Obsoletes: thunar-vfs-devel < 1.3 |
614bb69c | 95 | |
96 | %description devel | |
97 | This is the package containing the header files for Thunar libraries. | |
98 | ||
43d73f39 JR |
99 | %description devel -l pl.UTF-8 |
100 | Ten pakiet zawiera pliki nagłówkowe biblioteki Thunar. | |
614bb69c | 101 | |
102 | %package static | |
6cf886ac | 103 | Summary: Static Thunar libraries |
457a5ea5 | 104 | Summary(pl.UTF-8): Statyczne biblioteki Thunar |
cf138d2b | 105 | Group: X11/Development/Libraries |
614bb69c | 106 | Requires: %{name}-devel = %{version}-%{release} |
49bafdf9 | 107 | Obsoletes: thunar-vfs-static < 1.3 |
614bb69c | 108 | |
109 | %description static | |
110 | Static Thunar libraries. | |
111 | ||
43d73f39 | 112 | %description static -l pl.UTF-8 |
6cf886ac | 113 | Statyczne biblioteki Thunar. |
614bb69c | 114 | |
115 | %prep | |
c8aa85fe | 116 | %setup -q -n thunar-%{version} |
0b4557ef | 117 | %patch0 -p1 |
614bb69c | 118 | |
3da8e729 JR |
119 | mkdir -p m4 |
120 | ||
8b3d7f13 ER |
121 | %{__sed} -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac |
122 | ||
614bb69c | 123 | %build |
68140051 | 124 | %{__gtkdocize} |
cf138d2b MB |
125 | %{__intltoolize} |
126 | %{__libtoolize} | |
127 | %{__aclocal} | |
128 | %{__automake} | |
129 | %{__autoheader} | |
130 | %{__autoconf} | |
614bb69c | 131 | %configure \ |
6cf886ac | 132 | --enable-exif \ |
4397f92c | 133 | --enable-gtk-doc \ |
6cf886ac | 134 | --enable-pcre \ |
4397f92c | 135 | --with-html-dir=%{_gtkdocdir} \ |
5f4c896d MB |
136 | %{?with_static_libs:--enable-static} \ |
137 | --disable-silent-rules | |
4397f92c | 138 | |
614bb69c | 139 | %{__make} |
140 | ||
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
614bb69c | 143 | %{__make} install \ |
144 | DESTDIR=$RPM_BUILD_ROOT | |
145 | ||
25a8b921 | 146 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/thunarx-3/*.{a,la} |
5f4c896d MB |
147 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/xfce4/panel/plugins/*.{a,la} |
148 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
614bb69c | 149 | |
539006b9 | 150 | # duplicate of ur |
af9e7c47 | 151 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK |
de0fd64f | 152 | |
2c595d84 | 153 | # unknown / unsupported |
bba7f424 | 154 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{fa_IR,hye,hy_AM,ie} |
80a1b42a | 155 | |
614bb69c | 156 | %find_lang %{name} --all-name |
157 | ||
158 | %clean | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
bcf2d25f | 161 | %post |
0b4557ef | 162 | %update_desktop_database_post |
60f8e7d3 | 163 | %update_icon_cache hicolor |
bcf2d25f | 164 | |
165 | %postun | |
0b4557ef | 166 | %update_desktop_database_postun |
60f8e7d3 | 167 | %update_icon_cache hicolor |
bcf2d25f | 168 | |
614bb69c | 169 | %post libs -p /sbin/ldconfig |
170 | %postun libs -p /sbin/ldconfig | |
171 | ||
172 | %files -f %{name}.lang | |
173 | %defattr(644,root,root,755) | |
bba7f424 | 174 | %doc AUTHORS ChangeLog NEWS THANKS |
614bb69c | 175 | %attr(755,root,root) %{_bindir}/* |
176 | %dir %{_sysconfdir}/xdg/Thunar | |
177 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/Thunar/*.xml | |
5f4c896d | 178 | %dir %{_libdir}/Thunar |
5f4c896d | 179 | %attr(755,root,root) %{_libdir}/Thunar/thunar-sendto-email |
25a8b921 JR |
180 | %dir %{_libdir}/thunarx-3 |
181 | %attr(755,root,root) %{_libdir}/thunarx-3/*.so | |
5f4c896d | 182 | %attr(755,root,root) %{_libdir}/xfce4/panel/plugins/libthunar-tpa.so |
614bb69c | 183 | |
25a8b921 JR |
184 | %{systemduserunitdir}/thunar.service |
185 | %{_libdir}/girepository-1.0/Thunarx-3.0.typelib | |
186 | %{_datadir}/metainfo/org.xfce.thunar.appdata.xml | |
3da8e729 | 187 | %{_datadir}/polkit-1/actions/org.xfce.thunar.policy |
3bb15703 | 188 | %{_datadir}/Thunar/sendto/*.desktop |
3da8e729 | 189 | %{_datadir}/xfce4/panel/plugins/*.desktop |
614bb69c | 190 | %{_datadir}/dbus-1/services/*.service |
191 | %{_desktopdir}/*.desktop | |
192 | %{_iconsdir}/hicolor/*/*/* | |
60f8e7d3 | 193 | %{_mandir}/man1/Thunar* |
614bb69c | 194 | |
c8aa85fe | 195 | %dir %{_docdir}/thunar |
614bb69c | 196 | # move it to proper place |
c8aa85fe | 197 | %{_docdir}/thunar/README* |
614bb69c | 198 | |
4397f92c MB |
199 | %files apidocs |
200 | %defattr(644,root,root,755) | |
cf138d2b | 201 | %{_gtkdocdir}/thunarx |
4397f92c | 202 | |
614bb69c | 203 | %files libs |
204 | %defattr(644,root,root,755) | |
25a8b921 JR |
205 | %attr(755,root,root) %{_libdir}/libthunarx-3.so.*.*.* |
206 | %attr(755,root,root) %ghost %{_libdir}/libthunarx-3.so.0 | |
614bb69c | 207 | |
208 | %files devel | |
209 | %defattr(644,root,root,755) | |
25a8b921 JR |
210 | %attr(755,root,root) %{_libdir}/libthunarx-3.so |
211 | %{_includedir}/thunarx-3 | |
212 | %{_pkgconfigdir}/thunarx-3.pc | |
213 | %{_datadir}/gir-1.0/Thunarx-3.0.gir | |
614bb69c | 214 | |
19aadd7a | 215 | %if %{with static_libs} |
614bb69c | 216 | %files static |
217 | %defattr(644,root,root,755) | |
25a8b921 | 218 | %{_libdir}/libthunarx-3.a |
19aadd7a | 219 | %endif |