2008-08-07 Dave Lin <
[email protected]>
* closed/SUNWflash-player-plugin.spec: Hack the version number from
9.0.125 9.0.1250 to fix the integration issue, which was caused by
the incorrect version number(9.0.1124 should be 9.0.124) in the
previous version bump.
#
# spec file for package SUNWgnome-a11y-mousetweaks
#
# includes module(s): mousetweaks
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: liyuan
#
%include Solaris.inc
%use mousetweaks = mousetweaks.spec
Name: SUNWgnome-a11y-mousetweaks
Summary: provided mouse accessibility enhancements
Version: %{mousetweaks.version}
SUNW_BaseDir: %{_basedir}
SUNW_Copyright: %{name}.copyright
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: SUNWgnome-config
Requires: SUNWgnome-base-libs
Requires: SUNWgnome-applets
Requires: SUNWgnome-panel
Requires: SUNWgnome-a11y-libs
Requires: SUNWdbus-bindings
Requires: SUNWgnome-libs
Requires: SUNWpostrun
Requires: %{name}-root
BuildRequires: SUNWgnome-config-devel
BuildRequires: SUNWgnome-base-libs-devel
BuildRequires: SUNWgnome-panel-devel
BuildRequires: SUNWgnome-a11y-libs-devel
BuildRequires: SUNWdbus-bindings-devel
BuildRequires: SUNWgnome-libs-devel
%package root
Summary: %{summary} - / filesystem
SUNW_BaseDir: /
%include default-depend.inc
Requires: SUNWpostrun-root
Requires: SUNWgnome-config
%if %build_l10n
%package l10n
Summary: %{summary} - l10n content
SUNW_BaseDir: %{_basedir}
%include default-depend.inc
Requires: %{name}
%endif
%prep
rm -rf %name-%version
mkdir %name-%version
%mousetweaks.prep -d %name-%version
cd %{_builddir}/%name-%version
%build
export CFLAGS="%optflags"
export RPM_OPT_FLAGS="$CFLAGS"
export LDFLAGS="%_ldflags"
%mousetweaks.build -d %name-%version
%install
rm -rf $RPM_BUILD_ROOT
%mousetweaks.install -d %name-%version
%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
%endif
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%include desktop-database-install.script
%postun
test -x $BASEDIR/lib/postrun || exit 0
%include desktop-database-uninstall.script
%post root
%include gconf-install.script
%preun root
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
( echo 'test -x /usr/bin/gconftool-2 || {';
echo ' echo "ERROR: gconftool-2 not found"';
echo ' exit 0';
echo '}';
echo 'umask 0022';
echo 'GCONF_CONFIG_SOURCE=xml:merged:$PKG_INSTALL_ROOT/etc/gconf/gconf.xml.defaults';
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
echo 'SDIR=$PKG_INSTALL_ROOT%{_sysconfdir}/gconf/schemas';
echo 'schemas="$SDIR/mousetweaks.schemas';
echo ' $SDIR/pointer-capture-applet.schemas"';
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
%files
%defattr(-,root,bin)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/*
%dir %attr(0755, root, sys) %{_datadir}
%{_datadir}/mousetweaks
%dir %attr (0755, root, other) %{_datadir}/gnome
%dir %attr (0755, root, bin) %{_datadir}/gnome/help
%{_datadir}/gnome/help/*
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/man1
%{_mandir}/man1/*
%if %build_l10n
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%endif
%files root
%defattr (-, root, sys)
%attr (0755, root, sys) %dir %{_sysconfdir}
%{_sysconfdir}/gconf/schemas/mousetweaks.schemas
%{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas
%changelog
* Thu Jun 12 2008 - [email protected]
- Add missing dependency on root pkg
* Mon Mar 31 2008 - [email protected]
- Add copyright file
* Mon Feb 04 2008 Li Yuan <[email protected]>
- Remove mfversion patch and use autoconf/automake to avoid
build errors. Remove some unnecessary script.
* Tue Jan 29 2008 Li Yuan <[email protected]>
- Initial version.