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