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