Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-a11y-dasher
      3 #
      4 # includes module(s): dasher
      5 #
      6 # Copyright 2009 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 %define owner yippi
     11 #
     12 %include Solaris.inc
     13 
     14 %use dasher = dasher.spec
     15 
     16 Name:                    SUNWgnome-a11y-dasher
     17 Summary:                 Predictive text entry system
     18 Version:                 %{dasher.version}
     19 Source:                  %{name}-manpages-0.1.tar.gz
     20 SUNW_BaseDir:            %{_prefix}
     21 SUNW_Copyright:          %{name}.copyright
     22 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     23 %include default-depend.inc
     24 BuildRequires: SUNWlibglade-devel
     25 BuildRequires: SUNWgnome-libs-devel
     26 BuildRequires: SUNWgnome-a11y-libs-devel
     27 BuildRequires: SUNWgnome-a11y-speech-devel
     28 BuildRequires: SUNWgnome-component-devel
     29 BuildRequires: SUNWgnome-config-devel
     30 BuildRequires: SUNWgnome-vfs-devel
     31 BuildRequires: SUNWlibpopt-devel
     32 Requires: SUNWlibglade
     33 Requires: SUNWlexpt
     34 Requires: SUNWgnome-a11y-libs
     35 Requires: SUNWgnome-a11y-speech
     36 Requires: SUNWgnome-libs
     37 Requires: SUNWgnome-component
     38 Requires: SUNWgnome-config
     39 Requires: SUNWgnome-vfs
     40 Requires: SUNWlibpopt
     41 Requires: SUNWlibC
     42 Requires: SUNWlibms
     43 Requires: SUNWdesktop-cache
     44 Requires: %{name}-root
     45 
     46 %package root
     47 Summary:                 %{summary} - / filesystem
     48 SUNW_BaseDir:            /
     49 %include default-depend.inc
     50 
     51 %if %build_l10n
     52 %package l10n
     53 Summary:                 %{summary} - l10n files
     54 SUNW_BaseDir:            %{_basedir}
     55 %include default-depend.inc
     56 Requires:                %{name}
     57 %endif
     58 
     59 %prep
     60 rm -rf %name-%version
     61 mkdir %name-%version
     62 %dasher.prep -d %name-%version
     63 cd %{_builddir}/%name-%version
     64 gzcat %SOURCE0 | tar xf -
     65 
     66 %build
     67 export PKG_CONFIG_PATH=%{_pkg_config_path}
     68 export CFLAGS="%optflags -I/usr/sfw/include"
     69 export CPPFLAGS="-I/usr/sfw/include"
     70 export CXXFLAGS="%cxx_optflags -staticlib=stlport4"
     71 export RPM_OPT_FLAGS="$CFLAGS"
     72 export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib"
     73 %dasher.build -d %name-%version
     74 
     75 %install
     76 %dasher.install -d %name-%version
     77 rm -rf $RPM_BUILD_ROOT%{_mandir}
     78 cd %{_builddir}/%name-%version/sun-manpages
     79 make install DESTDIR=$RPM_BUILD_ROOT
     80 
     81 %if %build_l10n
     82 %else
     83 # REMOVE l10n FILES
     84 rm -r $RPM_BUILD_ROOT%{_datadir}/locale
     85 %endif
     86 rm -rf $RPM_BUILD_ROOT/var
     87 
     88 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):supported" $RPM_BUILD_ROOT}
     89 
     90 %clean
     91 rm -rf $RPM_BUILD_ROOT
     92 
     93 %post
     94 %restart_fmri desktop-mime-cache gconf-cache
     95 
     96 %postun
     97 %restart_fmri desktop-mime-cache
     98 
     99 %files
    100 %defattr (-, root, bin)
    101 %dir %attr (0755, root, bin) %{_bindir}
    102 %{_bindir}/*
    103 %dir %attr (0755, root, sys) %{_datadir}
    104 %dir %attr (0755, root, other) %{_datadir}/applications
    105 %{_datadir}/applications/*
    106 %{_datadir}/dasher
    107 %dir %attr (0755, root, other) %{_datadir}/gnome
    108 %{_datadir}/gnome/help
    109 %attr (-, root, other) %{_datadir}/icons
    110 %doc -d dasher-%{dasher.version} AUTHORS README
    111 %doc(bzip2) -d dasher-%{dasher.version} COPYING NEWS
    112 %doc(bzip2) -d dasher-%{dasher.version} ChangeLog po/ChangeLog
    113 %doc(bzip2) -d dasher-%{dasher.version} Data/Help/Gnome/ChangeLog
    114 %dir %attr (0755, root, other) %{_datadir}/doc
    115 %dir %attr (0755, root, bin) %{_datadir}/man
    116 %dir %attr (0755, root, bin) %{_datadir}/man/man1
    117 %{_datadir}/man/man1/*
    118 %{_datadir}/omf
    119 
    120 %files root
    121 %defattr (-, root, sys)
    122 %attr (0755, root, sys) %dir %{_sysconfdir}
    123 %{_sysconfdir}/gconf/schemas/dasher.schemas
    124 
    125 %if %build_l10n
    126 %files l10n
    127 %defattr (-, root, bin)
    128 %dir %attr (0755, root, sys) %{_datadir}
    129 %attr (-, root, other) %{_datadir}/locale
    130 %endif
    131 
    132 %changelog
    133 * Fri Apr  3 2009 - laca@sun.com
    134 - use desktop-cache instead of postrun
    135 * Fri Sep 11 2008 - brian.cameron@sun.com
    136 - Add new copyright files.
    137 * Wed Apr 02 2008 - brian.cameron@sun.com
    138 - Add SUNW_Copyright
    139 * Thu Jan  3 2008 - laca@sun.com
    140 - use gconf-install.script instead of an inline script
    141 * Fri Sep 28 2007 - laca@sun.com
    142 - delete Nevada X deps
    143 - delete some unneeded env vars
    144 * Sat Aug 18 2007 - damien.carbery@sun.com
    145 - Add -f to rm call to delete /var in %install.
    146 * Wed May 16 2007 - damien.carbery@sun.com
    147 - Set CPPFLAGS in %build so that expat.h under /usr/sfw/include can be found.
    148 * Tue Apr 24 2007 - laca@sun.com
    149 - s/0755/-/ in defattr so that files are not made all executable
    150 * Thu Jan 04 2007 - damien.carbery@sun.com
    151 - Remove '-f' from rm calls so that changes that require spec file changes are
    152   seen quickly.
    153 * Wed Dec 06 2006 - damien.carbery@sun.com
    154 - Add root package for dasher.schemas, and %post/%preun scripts to accompany
    155   the new package.
    156 * Mon Aug 28 2006 - brian.cameron@sun.com
    157 - install the NROFF manpage until we convert it to SGML.
    158 * Sat Aug 12 2006 - laca@sun.com
    159 - change datadir/icons permissions back to root:other since it's a stable
    160   interface and wasn't supposed to be changed
    161 * Thu Jul 27 2006 - damien.carbery@sun.com
    162 - Delete scrollkeeper files before packaging.
    163 * Fri Jul 14 2006 - laca@sun.com
    164 - update %post/%postun/etc scripts to support diskless client setup,
    165   part of 6448317
    166 * Thu Jun 29 2006 - laca@sun.com
    167 - update postrun scripts
    168 * Fri Jun 23 2006 - brian.cameron@sun.com
    169 - Remove '-library=stlport' from CXXFLAGS so it the library is not dynamically
    170   linked.
    171 * Sun Jun 11 2006 - laca@sun.com
    172 - change group from other to bin/sys
    173 * Thu May 04 2006 - laca@sun.com
    174 - merge -share pkg(s) into the base pkg(s)
    175 * Thu Feb 23 2006 - damien.carbery@sun.com
    176 - Update Build/Requires after running check-deps.pl script.
    177 * Tue Feb 14 2006 - damien.carbery@sun.com
    178 - Set CXXFLAGS to find stlport4.
    179 * Sat Dec  3 2005 - laca@sun.com
    180 - add %post script that runs update-desktop-database
    181 * Fri Sep 30 2005 - brian.cameron@sun.com
    182 - Correct packaging.
    183 * Tue Sep 20 2005 - laca@sun.com
    184 - add /usr/sfw/ to LDFLAGS and CFLAGS
    185 - add expat dependencies
    186 * Tue Sep 20 2005 - glynn.foster@sun.com
    187 - Initial SUNWgnome-a11y-dasher package
    188 
    189