Home | History | Annotate | Download | only in gnome-2-24
      1 #
      2 # spec file for package SUNWgnome-a11y-mousetweaks
      3 #
      4 # includes module(s): mousetweaks
      5 #
      6 # Copyright (c) 2005 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: liyuan
     11 #
     12 # We have removed mousetweaks from our builds since it is GPLv3.
     13 # For now, leave in the following comment so that our ARC scripts
     14 # recognize that we are not shipping this module starting with
     15 # the 2.24 release.  When we re-integrate this package, remove
     16 # the following line:
     17 # PACKAGE NOT ARC REVIEWED BY SUN JDS TEAM
     18 #
     19 
     20 %include Solaris.inc
     21 %use mousetweaks = mousetweaks.spec
     22 
     23 Name:                    SUNWgnome-a11y-mousetweaks
     24 Summary:                 provided mouse accessibility enhancements
     25 Version:                 %{mousetweaks.version}
     26 Source:                  %{name}-manpages-0.1.tar.gz
     27 SUNW_BaseDir:            %{_basedir}
     28 SUNW_Copyright:          %{name}.copyright
     29 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     30 
     31 %include default-depend.inc
     32 
     33 Requires: SUNWgnome-config
     34 Requires: SUNWgnome-base-libs
     35 Requires: SUNWgnome-applets
     36 Requires: SUNWgnome-panel
     37 Requires: SUNWgnome-a11y-libs
     38 Requires: SUNWdbus-bindings
     39 Requires: SUNWgnome-libs
     40 Requires: SUNWpostrun
     41 Requires: %{name}-root
     42 
     43 BuildRequires: SUNWgnome-config-devel
     44 BuildRequires: SUNWgnome-base-libs-devel
     45 BuildRequires: SUNWgnome-panel-devel
     46 BuildRequires: SUNWgnome-a11y-libs-devel
     47 BuildRequires: SUNWdbus-bindings-devel
     48 BuildRequires: SUNWgnome-libs-devel
     49 
     50 %package root
     51 Summary:                 %{summary} - / filesystem
     52 SUNW_BaseDir:            /
     53 %include default-depend.inc
     54 Requires: SUNWpostrun-root
     55 Requires: SUNWgnome-config
     56 
     57 %if %build_l10n
     58 %package l10n
     59 Summary:                 %{summary} - l10n content
     60 SUNW_BaseDir:            %{_basedir}
     61 %include default-depend.inc
     62 Requires: %{name}
     63 %endif
     64 
     65 %prep
     66 rm -rf %name-%version
     67 mkdir %name-%version
     68 %mousetweaks.prep -d %name-%version
     69 cd %{_builddir}/%name-%version
     70 gzcat %SOURCE0 | tar xf -
     71 
     72 %build
     73 export CFLAGS="%optflags"
     74 export RPM_OPT_FLAGS="$CFLAGS"
     75 export LDFLAGS="%_ldflags"
     76 
     77 %mousetweaks.build -d %name-%version
     78 
     79 %install
     80 rm -rf $RPM_BUILD_ROOT
     81 %mousetweaks.install -d %name-%version
     82 rm -rf $RPM_BUILD_ROOT%{_mandir}
     83 cd %{_builddir}/%name-%version/sun-manpages
     84 make install DESTDIR=$RPM_BUILD_ROOT
     85 
     86 %if %build_l10n
     87 %else
     88 # REMOVE l10n FILES
     89 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     90 %endif
     91 
     92 
     93 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     94 
     95 %clean
     96 rm -rf $RPM_BUILD_ROOT
     97 
     98 %post
     99 %include desktop-database-install.script
    100 
    101 %postun
    102 test -x $BASEDIR/lib/postrun || exit 0
    103 %include desktop-database-uninstall.script
    104 
    105 %post root
    106 %include gconf-install.script
    107 
    108 %preun root
    109 test -x $BASEDIR/var/lib/postrun/postrun || exit 0
    110 ( echo 'test -x /usr/bin/gconftool-2 || {';
    111   echo '  echo "ERROR: gconftool-2 not found"';
    112   echo '  exit 0';
    113   echo '}';
    114   echo 'umask 0022';
    115   echo 'GCONF_CONFIG_SOURCE=xml:merged:$PKG_INSTALL_ROOT/etc/gconf/gconf.xml.defaults';
    116   echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
    117   echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
    118   echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
    119   echo 'SDIR=$PKG_INSTALL_ROOT%{_sysconfdir}/gconf/schemas';
    120   echo 'schemas="$SDIR/mousetweaks.schemas';
    121   echo '         $SDIR/pointer-capture-applet.schemas"';
    122   echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
    123 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
    124 
    125 
    126 %files
    127 %defattr(-,root,bin)
    128 %dir %attr (0755, root, bin) %{_bindir}
    129 %{_bindir}/*
    130 %dir %attr (0755, root, bin) %{_libdir}
    131 %{_libdir}/*
    132 %dir %attr(0755, root, sys) %{_datadir}
    133 %{_datadir}/mousetweaks
    134 %doc -d mousetweaks-%{mousetweaks.version} README AUTHORS
    135 %doc(bzip2) -d mousetweaks-%{mousetweaks.version} COPYING.GPL COPYING.FDL NEWS ChangeLog src/mt-pidfile.c
    136 %dir %attr (0755, root, other) %{_datadir}/doc
    137 %dir %attr (0755, root, other) %{_datadir}/gnome
    138 %dir %attr (0755, root, bin) %{_datadir}/gnome/help
    139 %{_datadir}/gnome/help/*
    140 %{_datadir}/omf/mousetweaks/*
    141 %dir %attr(0755, root, bin) %{_mandir}
    142 %dir %attr(0755, root, bin) %{_mandir}/man1
    143 %{_mandir}/man1/*
    144 
    145 
    146 %if %build_l10n
    147 %files l10n
    148 %defattr (-, root, bin)
    149 %dir %attr (0755, root, sys) %{_datadir}
    150 %attr (-, root, other) %{_datadir}/locale
    151 %endif
    152 
    153 %files root
    154 %defattr (-, root, sys)
    155 %attr (0755, root, sys) %dir %{_sysconfdir}
    156 %{_sysconfdir}/gconf/schemas/mousetweaks.schemas
    157 %{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas
    158 
    159 
    160 
    161 %changelog
    162 * Thu Oct 30 2008 - yue.wang@sun.com
    163 - Remove the original manpages, and add new manpages.
    164 * Thu Oct 30 2008 - li.yuan@sun.com
    165 - Add copyright information.
    166 * Fri Sep 05 2008 - christian.kelly@sun.com
    167 - Fixed %files, added /usr/share/omf/mousetweaks dir. 
    168 * Thu Jun 12 2008 - li.yuan@sun.com
    169 - Add missing dependency on the %{name}-root pacakge.
    170 * Mon Mar 31 2008 - li.yuan@sun.com
    171 - Add copyright file
    172 * Mon Feb 04 2008 Li Yuan <li.yuan@sun.com>
    173 - Remove mfversion patch and use autoconf/automake to avoid
    174   build errors. Remove some unnecessary script.
    175 * Tue Jan 29 2008 Li Yuan <li.yuan@sun.com>
    176 - Initial version.
    177