author | jerrytan |
Thu, 24 Dec 2009 03:13:23 +0000 | |
changeset 17249 | 5cce1e64afd5 |
parent 16949 | 7800c41b1332 |
permissions | -rw-r--r-- |
11516 | 1 |
# |
11922 | 2 |
# spec file for packages SUNWdesktop-search |
11670 | 3 |
# |
11922 | 4 |
# includes module(s): tracker |
11670 | 5 |
# |
6 |
# Copyright 2008 Sun Microsystems, Inc. |
|
11516 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
16434 | 10 |
%define owner jerrytan |
11516 | 11 |
# |
12 |
||
13 |
%include Solaris.inc |
|
14 |
||
11715 | 15 |
%define ff_ext_magic \{fda00e13-8c62-4f63-9d19-d168115b11ca\} |
16 |
%define tb_ext_magic \{b656ef18-fd76-45e6-95cc-8043f26361e7\} |
|
11516 | 17 |
%use tracker = tracker.spec |
18 |
||
19 |
Name: SUNWdesktop-search |
|
20 |
Summary: Desktop search tool |
|
21 |
Version: %{default_pkg_version} |
|
22 |
SUNW_BaseDir: %{_basedir} |
|
11922 | 23 |
SUNW_Copyright: %{name}.copyright |
11516 | 24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
16681 | 25 |
Source0: %{name}-manpages-0.1.tar.gz |
11516 | 26 |
Source1: tracker-firefox-history-xesam.xpi |
27 |
Source2: tracker-thunderbird.xpi |
|
11922 | 28 |
|
11516 | 29 |
%include default-depend.inc |
15650 | 30 |
Requires: SUNWlibgnomecanvas |
11715 | 31 |
Requires: SUNWdesktop-search-root |
15545 | 32 |
Requires: SUNWgnome-media |
33 |
Requires: SUNWgnome-pdf-viewer |
|
13192 | 34 |
Requires: SUNWgnome-utility-applets |
11516 | 35 |
Requires: SUNWdbus |
15545 | 36 |
Requires: SUNWgamin |
37 |
Requires: SUNWhal |
|
38 |
Requires: SUNWlibexif |
|
11734
c90208580682
change dependency for SUNWdesktop-search,since SUNWgmime rename to SUNWlibgmime
jerrytan
parents:
11715
diff
changeset
|
39 |
Requires: SUNWlibgmime |
15545 | 40 |
Requires: SUNWlibgsf |
41 |
Requires: SUNWlxsl |
|
42 |
Requires: SUNWpng |
|
43 |
Requires: SUNWogg-vorbis |
|
11693 | 44 |
Requires: SUNWsqlite3 |
15473 | 45 |
Requires: SUNWunzip |
46 |
Requires: SUNWw3m |
|
15545 | 47 |
Requires: SUNWzlib |
16902 | 48 |
Requires: SUNWraptor |
15650 | 49 |
BuildRequires: SUNWlibgnomecanvas-devel |
16902 | 50 |
BuildRequires: SUNWraptor-devel |
15545 | 51 |
|
11516 | 52 |
%if %option_with_gnu_iconv |
53 |
Requires: SUNWgnu-libiconv |
|
54 |
Requires: SUNWgnu-gettext |
|
55 |
%else |
|
56 |
Requires: SUNWuiu8 |
|
57 |
%endif |
|
15545 | 58 |
|
59 |
BuildRequires: SUNWdbus-devel |
|
60 |
BuildRequires: SUNWgamin-devel |
|
11516 | 61 |
BuildRequires: SUNWgnome-media-devel |
15545 | 62 |
BuildRequires: SUNWgnome-pdf-viewer-devel |
63 |
BuildRequires: SUNWgnome-utility-applets-devel |
|
64 |
BuildRequires: SUNWhal |
|
11516 | 65 |
BuildRequires: SUNWlibexif-devel |
15545 | 66 |
BuildRequires: SUNWlibgmime-devel |
11516 | 67 |
BuildRequires: SUNWlxsl-devel |
12110 | 68 |
BuildRequires: SUNWlibgsf-devel |
15545 | 69 |
BuildRequires: SUNWogg-vorbis-devel |
70 |
BuildRequires: SUNWpng-devel |
|
71 |
BuildRequires: SUNWsqlite3 |
|
11516 | 72 |
|
73 |
%package devel |
|
74 |
Summary: %{summary} - development files |
|
75 |
SUNW_BaseDir: %{_basedir} |
|
76 |
%include default-depend.inc |
|
77 |
Requires: %name |
|
78 |
||
79 |
%package root |
|
80 |
Summary: %{summary} - / filesystem |
|
81 |
SUNW_BaseDir: / |
|
82 |
%include default-depend.inc |
|
83 |
||
84 |
%if %build_l10n |
|
85 |
%package l10n |
|
86 |
Summary: %{summary} - l10n files |
|
87 |
SUNW_BaseDir: %{_basedir} |
|
88 |
%include default-depend.inc |
|
89 |
Requires: %{name} |
|
90 |
%endif |
|
91 |
||
11715 | 92 |
%package firefox |
93 |
Summary: %{summary} - firefox extension files |
|
94 |
SUNW_BaseDir: %{_basedir} |
|
95 |
%include default-depend.inc |
|
96 |
Requires: %name |
|
97 |
Requires: SUNWfirefox |
|
98 |
||
99 |
%package thunderbird |
|
100 |
Summary: %{summary} - thunderbird extension files |
|
101 |
SUNW_BaseDir: %{_basedir} |
|
102 |
%include default-depend.inc |
|
103 |
Requires: %name |
|
104 |
Requires: SUNWthunderbird |
|
105 |
||
11516 | 106 |
%prep |
107 |
rm -rf %name-%version |
|
108 |
mkdir -p %name-%version |
|
109 |
%tracker.prep -d %name-%version |
|
16681 | 110 |
cd %{_builddir}/%name-%version |
111 |
gzcat %SOURCE0 | tar xf - |
|
11516 | 112 |
|
113 |
%build |
|
114 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
|
15463 | 115 |
export CFLAGS="%optflags -D__EXTENSIONS__" |
11516 | 116 |
%if %option_with_gnu_iconv |
15209 | 117 |
export CFLAGS="$CFLAGS -I/usr/gnu/include" |
118 |
export LDFLAGS="%_ldflags -L/usr/gnu/lib -R/usr/gnu/lib -lintl" |
|
11516 | 119 |
%endif |
120 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
121 |
%tracker.build -d %name-%version |
|
122 |
||
123 |
%install |
|
124 |
rm -rf $RPM_BUILD_ROOT |
|
125 |
%tracker.install -d %name-%version |
|
16681 | 126 |
#rm -r $RPM_BUILD_ROOT%{_mandir} |
127 |
cd %{_builddir}/%name-%version/sun-manpages |
|
128 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
129 |
||
11516 | 130 |
cd %{_builddir}/%name-%version |
131 |
||
132 |
# Install firefox extension |
|
16949 | 133 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/firefox/extensions |
134 |
cd $RPM_BUILD_ROOT%{_libdir}/firefox/extensions |
|
135 |
mkdir %{ff_ext_magic} |
|
136 |
cd %{ff_ext_magic} |
|
137 |
unzip %SOURCE1 |
|
11516 | 138 |
|
11715 | 139 |
# Install thunderbird extension |
15643
0777053390e7
remove thunderbird plugin for tracker since it does not work
jerrytan
parents:
15556
diff
changeset
|
140 |
#mkdir -p $RPM_BUILD_ROOT%{_libdir}/thunderbird/extensions |
0777053390e7
remove thunderbird plugin for tracker since it does not work
jerrytan
parents:
15556
diff
changeset
|
141 |
#cd $RPM_BUILD_ROOT%{_libdir}/thunderbird/extensions |
0777053390e7
remove thunderbird plugin for tracker since it does not work
jerrytan
parents:
15556
diff
changeset
|
142 |
#mkdir %{tb_ext_magic} |
0777053390e7
remove thunderbird plugin for tracker since it does not work
jerrytan
parents:
15556
diff
changeset
|
143 |
#cd %{tb_ext_magic} |
0777053390e7
remove thunderbird plugin for tracker since it does not work
jerrytan
parents:
15556
diff
changeset
|
144 |
#unzip %SOURCE2 |
11516 | 145 |
|
146 |
%if %build_l10n |
|
147 |
%else |
|
148 |
# REMOVE l10n FILES |
|
149 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
150 |
%endif |
|
151 |
||
152 |
%clean |
|
153 |
rm -rf $RPM_BUILD_ROOT |
|
154 |
||
155 |
%files |
|
13661 | 156 |
%doc -d tracker-%{tracker.version} README AUTHORS |
157 |
%doc(bzip2) -d tracker-%{tracker.version} COPYING ChangeLog NEWS po/ChangeLog |
|
13562 | 158 |
%dir %attr (0755, root, other) %{_datadir}/doc |
11516 | 159 |
%defattr (-, root, bin) |
160 |
%dir %attr (0755, root, bin) %{_bindir} |
|
161 |
%{_bindir}/* |
|
15329 | 162 |
#%dir %attr (0755, root, bin) %{_libexecdir} |
163 |
#%{_libexecdir}/* |
|
11516 | 164 |
%dir %attr (0755, root, bin) %{_libdir} |
165 |
%{_libdir}/*.so* |
|
15329 | 166 |
%{_libdir}/tracker* |
15732 | 167 |
#%dir %attr (0755, root, bin) %{_libdir}/evolution |
168 |
#%dir %attr (0755, root, bin) %{_libdir}/evolution/2.26 |
|
169 |
#%dir %attr (0755, root, bin) %{_libdir}/evolution/2.26/plugins/ |
|
170 |
#%{_libdir}/evolution/2.26/plugins/* |
|
11516 | 171 |
%dir %attr (0755, root, bin) %{_libdir}/deskbar-applet |
172 |
%dir %attr (0755, root, bin) %{_libdir}/deskbar-applet/modules-2.20-compatible |
|
173 |
%{_libdir}/deskbar-applet/modules-2.20-compatible/tracker-module.py |
|
174 |
%dir %attr (0755, root, sys) %{_datadir} |
|
175 |
%{_datadir}/tracker |
|
176 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
177 |
%{_datadir}/applications/*.desktop |
|
178 |
%dir %attr (0755, root, bin) %{_datadir}/dbus-1 |
|
179 |
%dir %attr (0755, root, bin) %{_datadir}/dbus-1/services |
|
15329 | 180 |
%{_datadir}/dbus-1/services/org.freedesktop.Tracker.* |
181 |
%dir %attr (0755, root, bin) %{_datadir}/gtk-doc |
|
182 |
%dir %attr (0755, root, bin) %{_datadir}/gtk-doc/html |
|
183 |
%dir %attr (0755, root, bin) %{_datadir}/gtk-doc/html/libtracker-common |
|
184 |
%{_datadir}/gtk-doc/html/libtracker-common/* |
|
185 |
%dir %attr (0755, root, bin) %{_datadir}/gtk-doc/html/libtracker-module |
|
186 |
%{_datadir}/gtk-doc/html/libtracker-module/* |
|
11516 | 187 |
%dir %attr (0755, root, bin) %{_mandir} |
188 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
189 |
%{_mandir}/*/* |
|
190 |
%defattr (-, root, other) |
|
191 |
%{_datadir}/icons |
|
192 |
||
193 |
%files devel |
|
194 |
%defattr (-, root, bin) |
|
195 |
%dir %attr (0755, root, bin) %{_includedir} |
|
196 |
%{_includedir}/* |
|
197 |
%dir %attr (0755, root, bin) %{_libdir} |
|
198 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
199 |
%{_libdir}/pkgconfig/* |
|
200 |
||
201 |
%files root |
|
202 |
%defattr (-, root, sys) |
|
203 |
%dir %attr (0755, root, sys) %{_sysconfdir} |
|
11715 | 204 |
%dir %attr (0755, root, sys) %{_sysconfdir}/xdg |
205 |
%dir %attr (0755, root, sys) %{_sysconfdir}/xdg/autostart |
|
206 |
%{_sysconfdir}/xdg/autostart/*.desktop |
|
11516 | 207 |
|
208 |
%if %build_l10n |
|
209 |
%files l10n |
|
210 |
%defattr (-, root, bin) |
|
211 |
%dir %attr (0755, root, sys) %{_datadir} |
|
212 |
%attr (-, root, other) %{_datadir}/locale |
|
213 |
%endif |
|
214 |
||
16949 | 215 |
%files firefox |
216 |
%defattr (-, root, bin) |
|
217 |
%dir %attr (0755, root, bin) %{_libdir} |
|
218 |
%{_libdir}/firefox |
|
11715 | 219 |
|
15643
0777053390e7
remove thunderbird plugin for tracker since it does not work
jerrytan
parents:
15556
diff
changeset
|
220 |
#%files thunderbird |
0777053390e7
remove thunderbird plugin for tracker since it does not work
jerrytan
parents:
15556
diff
changeset
|
221 |
#%defattr (-, root, bin) |
0777053390e7
remove thunderbird plugin for tracker since it does not work
jerrytan
parents:
15556
diff
changeset
|
222 |
#%dir %attr (0755, root, bin) %{_libdir} |
0777053390e7
remove thunderbird plugin for tracker since it does not work
jerrytan
parents:
15556
diff
changeset
|
223 |
#%{_libdir}/thunderbird |
11715 | 224 |
|
11516 | 225 |
%changelog |
15473 | 226 |
* Mon Mar 23 2009 - [email protected] |
227 |
- Add the dependencies on SUNWunzip, SUNWw3m, SUNWgnome-pdf-viewer and |
|
228 |
SUNWlxsl since xsltproc, unzip, w3m and pdf2text are used in the scripts |
|
229 |
under /usr/lib/tracker/filters/*/*filter |
|
13562 | 230 |
* Fri Sep 12 2008 - [email protected] |
231 |
- add doc for copyright |
|
13332 | 232 |
* Mon Sep 01 2008 - [email protected] |
233 |
- Remove extension part under %{_libdir}/firefox3 |
|
12110 | 234 |
* Mon Apr 14 2008 - [email protected] |
235 |
- Add Requires:SUNWlibgsf cause the pkg name change. |
|
11922 | 236 |
* Thu Mar 27 2008 - [email protected] |
237 |
- Add copyright file |
|
11715 | 238 |
* Tue Feb 26 2008 - [email protected] |
239 |
- Split -extension to -firefox and -thunderbird |
|
240 |
- Use macro for extension dir |
|
11693 | 241 |
* Thu Feb 21 2008 - [email protected] |
242 |
- Rename SUNWsqlite dependency to SUNWsqlite3 to match pkg from SFW. |
|
11525 | 243 |
* Fri Jan 25 2008 - [email protected] |
244 |
- Add Build/Requires SUNWgnome-utility-applets-devel so that deskbar-applet is |
|
245 |
available. This is required for the python module in tracker. |
|
11516 | 246 |
* Wed Jan 23 2008 - [email protected] |
247 |
- Add extension link to firefox3, remove it when FF3 rename to firefox. |
|
248 |
* Wed Jan 02 2008 - [email protected] |
|
249 |
- Rename from SFEtracker to SUNWdesktop-search. |
|
250 |
* Sun Nov 18 2007 - [email protected] |
|
251 |
- Add support for building on Indiana systems |
|
252 |
* Fri Nov 02 2007 - [email protected] |
|
253 |
- Split into base/tracker.spec |
|
254 |
- Remove GNOMOE 2.19/2.20 install compatible part. |
|
255 |
- Add package -extension to install firefox/thunderbird extensions. |
|
256 |
* Fri Sep 28 2007 - [email protected] |
|
257 |
- Add patch thunderbird.diff to enable thunderbird index. |
|
258 |
* Wed Sep 26 2007 - [email protected] |
|
259 |
- Bump to 0.6.3. |
|
260 |
- Move wv and libgsf to Requires. |
|
261 |
- Add patch w3m-crash to fix w3m crash on solaris. |
|
262 |
* Fri Sep 21 2007 - [email protected] |
|
263 |
- Fix install in GNOME 2.19/2.20 |
|
264 |
* Wed Sep 05 2007 - [email protected] |
|
265 |
- Bump to 0.6.2. |
|
266 |
- Move w3m to Requires. |
|
267 |
* Thu Aug 09 2007 - [email protected] |
|
268 |
- Bump to 0.6.1. |
|
269 |
* Mon Aug 06 2007 - [email protected] |
|
270 |
- Add --enable-external-sqlite |
|
271 |
* Fri Jul 24 2007 - [email protected] |
|
272 |
- Bump to 0.6.0. |
|
273 |
- Remove dependency on file. |
|
274 |
* Fri May 04 2007 - [email protected] |
|
275 |
- Add Requires to SFEsqlite |
|
276 |
- Add conditional Requires to SFEwv |
|
277 |
- Revert patch tracker-01-stdout.diff. |
|
278 |
- Add attr (0755, root, other) to %{_datadir}/pixmaps |
|
279 |
and %{_datadir}/applications |
|
280 |
* Fri May 04 2007 - [email protected] |
|
281 |
- Add conditional Require SFElibgsf SFEw3m |
|
282 |
- Remove upstreamed patch tracker-01-stdout.diff |
|
283 |
- Add URL and License. |
|
284 |
* Fri May 04 2007 - [email protected] |
|
285 |
- Initial spec |
|
15650 | 286 |