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