Home | History | Annotate | Download | only in gnome-2-24
      1 #
      2 # spec file for packages SUNWdesktop-search
      3 #
      4 # includes module(s): tracker
      5 #
      6 # Copyright 2008 Sun Microsystems, Inc.
      7 # This file and all modifications and additions to the pristine
      8 # package are under the same license as the package itself.
      9 #
     10 # Owner:jerrytan
     11 #
     12 
     13 %include Solaris.inc
     14 
     15 %define ff_ext_magic \{fda00e13-8c62-4f63-9d19-d168115b11ca\}
     16 %define tb_ext_magic \{b656ef18-fd76-45e6-95cc-8043f26361e7\}
     17 %use tracker = tracker.spec
     18 
     19 Name:           SUNWdesktop-search
     20 Summary:        Desktop search tool
     21 Version:        %{default_pkg_version}
     22 SUNW_BaseDir:   %{_basedir}
     23 SUNW_Copyright: %{name}.copyright
     24 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
     25 Source1:        tracker-firefox-history-xesam.xpi
     26 Source2:        tracker-thunderbird.xpi
     27 
     28 %include default-depend.inc
     29 Requires:       SUNWdesktop-search-root
     30 Requires:       SUNWgnome-utility-applets
     31 Requires:       SUNWgnome-base-libs
     32 Requires:       SUNWdbus
     33 Requires:       SUNWzlib
     34 Requires:       SUNWlibgmime
     35 Requires:       SUNWgamin
     36 Requires:       SUNWsqlite3
     37 BuildRequires:  SUNWgnome-base-libs-devel
     38 BuildRequires:  SUNWgnome-utility-applets-devel
     39 BuildRequires:  SUNWdbus-devel
     40 BuildRequires:  SUNWlibgmime-devel
     41 BuildRequires:  SUNWgamin-devel
     42 BuildRequires:  SUNWsqlite3
     43 %if %option_with_gnu_iconv
     44 Requires: SUNWgnu-libiconv
     45 Requires: SUNWgnu-gettext
     46 %else
     47 Requires: SUNWuiu8
     48 %endif
     49 Requires:       SUNWgnome-media
     50 Requires:       SUNWpng
     51 Requires:       SUNWogg-vorbis
     52 Requires:       SUNWlibexif
     53 Requires:       SUNWgnome-pdf-viewer
     54 Requires:       SUNWlxsl
     55 Requires:       SUNWlibgsf
     56 Requires:       SUNWw3m
     57 BuildRequires:  SUNWgnome-media-devel
     58 BuildRequires:  SUNWpng-devel
     59 BuildRequires:  SUNWogg-vorbis-devel
     60 BuildRequires:  SUNWlibexif-devel
     61 BuildRequires:  SUNWgnome-pdf-viewer-devel
     62 BuildRequires:  SUNWlxsl-devel
     63 BuildRequires:  SUNWlibgsf-devel
     64 
     65 %package devel
     66 Summary:        %{summary} - development files
     67 SUNW_BaseDir:   %{_basedir}
     68 %include default-depend.inc
     69 Requires: %name
     70 
     71 %package root
     72 Summary:                 %{summary} - / filesystem
     73 SUNW_BaseDir:            /
     74 %include default-depend.inc
     75 Requires: SUNWpostrun-root
     76 
     77 %if %build_l10n
     78 %package l10n
     79 Summary:                 %{summary} - l10n files
     80 SUNW_BaseDir:            %{_basedir}
     81 %include default-depend.inc
     82 Requires:                %{name}
     83 %endif
     84 
     85 %package firefox
     86 Summary:        %{summary} - firefox extension files
     87 SUNW_BaseDir:   %{_basedir}
     88 %include default-depend.inc
     89 Requires: %name
     90 Requires: SUNWfirefox
     91 
     92 %package thunderbird
     93 Summary:        %{summary} - thunderbird extension files
     94 SUNW_BaseDir:   %{_basedir}
     95 %include default-depend.inc
     96 Requires: %name
     97 Requires: SUNWthunderbird
     98 
     99 %prep
    100 rm -rf %name-%version
    101 mkdir -p %name-%version
    102 %tracker.prep -d %name-%version
    103 
    104 %build
    105 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
    106 export CFLAGS="%optflags -I/usr/gnu/include"
    107 %if %option_with_gnu_iconv
    108 export CFLAGS="$CFLAGS -I/usr/gnu/include -L/usr/gnu/lib -R/usr/gnu/lib -lintl"
    109 %endif
    110 export LDFLAGS="%_ldflags -L/usr/gnu/lib -R/usr/gnu/lib"
    111 export RPM_OPT_FLAGS="$CFLAGS"
    112 %tracker.build -d %name-%version
    113 
    114 %install
    115 rm -rf $RPM_BUILD_ROOT
    116 %tracker.install -d %name-%version
    117 cd %{_builddir}/%name-%version
    118 
    119 # Install firefox extension
    120 mkdir -p $RPM_BUILD_ROOT%{_libdir}/firefox/extensions
    121 cd $RPM_BUILD_ROOT%{_libdir}/firefox/extensions
    122 mkdir %{ff_ext_magic}
    123 cd %{ff_ext_magic}
    124 unzip %SOURCE1
    125 
    126 # Install thunderbird extension
    127 mkdir -p $RPM_BUILD_ROOT%{_libdir}/thunderbird/extensions
    128 cd $RPM_BUILD_ROOT%{_libdir}/thunderbird/extensions
    129 mkdir %{tb_ext_magic}
    130 cd %{tb_ext_magic}
    131 unzip %SOURCE2
    132 
    133 %if %build_l10n
    134 %else
    135 # REMOVE l10n FILES
    136 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
    137 %endif
    138 
    139 %clean
    140 rm -rf $RPM_BUILD_ROOT
    141 
    142 %files
    143 %doc -d tracker-%{tracker.version} README AUTHORS
    144 %doc(bzip2) -d tracker-%{tracker.version} COPYING ChangeLog NEWS po/ChangeLog
    145 %dir %attr (0755, root, other) %{_datadir}/doc
    146 %defattr (-, root, bin)
    147 %dir %attr (0755, root, bin) %{_bindir}
    148 %{_bindir}/*
    149 %dir %attr (0755, root, bin) %{_libdir}
    150 %{_libdir}/*.so*
    151 %{_libdir}/tracker
    152 %dir %attr (0755, root, bin) %{_libdir}/deskbar-applet
    153 %dir %attr (0755, root, bin) %{_libdir}/deskbar-applet/modules-2.20-compatible
    154 %{_libdir}/deskbar-applet/modules-2.20-compatible/tracker-module.py
    155 %dir %attr (0755, root, sys) %{_datadir}
    156 %{_datadir}/tracker
    157 %dir %attr (0755, root, other) %{_datadir}/applications
    158 %{_datadir}/applications/*.desktop
    159 %dir %attr (0755, root, bin) %{_datadir}/dbus-1
    160 %dir %attr (0755, root, bin) %{_datadir}/dbus-1/services
    161 %{_datadir}/dbus-1/services/tracker.service
    162 %dir %attr (0755, root, bin) %{_mandir}
    163 %dir %attr(0755, root, bin) %{_mandir}/*
    164 %{_mandir}/*/*
    165 %defattr (-, root, other)
    166 %{_datadir}/icons
    167 
    168 %files devel
    169 %defattr (-, root, bin)
    170 %dir %attr (0755, root, bin) %{_includedir}
    171 %{_includedir}/*
    172 %dir %attr (0755, root, bin) %{_libdir}
    173 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    174 %{_libdir}/pkgconfig/*
    175 
    176 %files root
    177 %defattr (-, root, sys)
    178 %dir %attr (0755, root, sys) %{_sysconfdir}
    179 %dir %attr (0755, root, sys) %{_sysconfdir}/xdg
    180 %dir %attr (0755, root, sys) %{_sysconfdir}/xdg/autostart
    181 %{_sysconfdir}/xdg/autostart/*.desktop
    182 
    183 %if %build_l10n
    184 %files l10n
    185 %defattr (-, root, bin)
    186 %dir %attr (0755, root, sys) %{_datadir}
    187 %attr (-, root, other) %{_datadir}/locale
    188 %endif
    189 
    190 %files firefox
    191 %defattr (-, root, bin)
    192 %dir %attr (0755, root, bin) %{_libdir}
    193 %{_libdir}/firefox
    194 
    195 %files thunderbird
    196 %defattr (-, root, bin)
    197 %dir %attr (0755, root, bin) %{_libdir}
    198 %{_libdir}/thunderbird
    199 
    200 
    201 %changelog
    202 * Fri Sep 12 2008 - jerry.tan@sun.com
    203 - add doc for copyright
    204 * Mon Sep 01 2008 - halton.huo@sun.com
    205 - Remove extension part under %{_libdir}/firefox3
    206 * Mon Apr 14 2008 - nonsea@users.sourceforge.net
    207 - Add Requires:SUNWlibgsf cause the pkg name change.
    208 * Thu Mar 27 2008 - halton.huo@sun.com
    209 - Add copyright file
    210 * Tue Feb 26 2008 - halton.huo@sun.com
    211 - Split -extension to -firefox and -thunderbird
    212 - Use macro for extension dir
    213 * Thu Feb 21 2008 - damien.carbery@sun.com
    214 - Rename SUNWsqlite dependency to SUNWsqlite3 to match pkg from SFW.
    215 * Fri Jan 25 2008 - nonsea@users.sourceforge.net
    216 - Add Build/Requires SUNWgnome-utility-applets-devel so that deskbar-applet is
    217   available. This is required for the python module in tracker.
    218 * Wed Jan 23 2008 - nonsea@users.sourceforge.net
    219 - Add extension link to firefox3, remove it when FF3 rename to firefox.
    220 * Wed Jan 02 2008 - nonsea@users.sourceforge.net
    221 - Rename from SFEtracker to SUNWdesktop-search.
    222 * Sun Nov 18 2007 - daymobrew@users.sourceforge.net
    223 - Add support for building on Indiana systems
    224 * Fri Nov 02 2007 - nonsea@users.sourceforge.net
    225 - Split into base/tracker.spec
    226 - Remove GNOMOE 2.19/2.20 install compatible part.
    227 - Add package -extension to install firefox/thunderbird extensions.
    228 * Fri Sep 28 2007 - nonsea@users.sourceforge.net
    229 - Add patch thunderbird.diff to enable thunderbird index.
    230 * Wed Sep 26 2007 - nonsea@users.sourceforge.net
    231 - Bump to 0.6.3.
    232 - Move wv and libgsf to Requires.
    233 - Add patch w3m-crash to fix w3m crash on solaris.
    234 * Fri Sep 21 2007 - trisk@acm.jhu.edu
    235 - Fix install in GNOME 2.19/2.20
    236 * Wed Sep 05 2007 - nonsea@users.sourceforge.net
    237 - Bump to 0.6.2.
    238 - Move w3m to Requires.
    239 * Thu Aug 09 2007 - nonsea@users.sourceforge.net
    240 - Bump to 0.6.1.
    241 * Mon Aug 06 2007 - nonsea@users.sourceforge.net
    242 - Add --enable-external-sqlite
    243 * Fri Jul 24 2007 - nonsea@users.sourceforge.net
    244 - Bump to 0.6.0.
    245 - Remove dependency on file.
    246 * Fri May 04 2007 - nonsea@users.sourceforge.net
    247 - Add Requires to SFEsqlite
    248 - Add conditional Requires to SFEwv
    249 - Revert patch tracker-01-stdout.diff.
    250 - Add attr (0755, root, other) to %{_datadir}/pixmaps
    251   and %{_datadir}/applications
    252 * Fri May 04 2007 - nonsea@users.sourceforge.net
    253 - Add conditional Require SFElibgsf SFEw3m
    254 - Remove upstreamed patch tracker-01-stdout.diff
    255 - Add URL and License.
    256 * Fri May 04 2007 - nonsea@users.sourceforge.net
    257 - Initial spec
    258