mousetweaks-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. %define pkg_version 2.30.2
  2. %define pkg_release 1%{?_dist_release}
  3. Summary: Mouse accessibility enhancements for GNOME desktop
  4. Summary(ja): GNOME デスクトップ用マウス利便性強化ツール
  5. Name: mousetweaks
  6. Version: %{pkg_version}
  7. Release: %{pkg_release}
  8. Source0: http://ftp.gnome.org/pub/GNOME/sources/mousetweaks/2.30/%{name}-%{version}.tar.bz2
  9. License: GPLv3, FDL
  10. Group: User Interface/Desktops
  11. URL: http://live.gnome.org/Mousetweaks/Home
  12. BuildRequires: gtk2-devel
  13. BuildRequires: GConf2-devel
  14. BuildRequires: dbus-glib-devel
  15. BuildRequires: at-spi-devel
  16. BuildRequires: libXcursor-devel
  17. BuildRequires: libXfixes-devel
  18. BuildRequires: libXtst-devel
  19. BuildRequires: gnome-panel
  20. BuildRequires: gnome-doc-utils
  21. Requires(post): GConf2
  22. Requires(pre): GConf2
  23. Requires(preun): GConf2
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. Vendor: Project Vine
  26. Distribution: Vine Linux
  27. Packager: Takemikaduchi
  28. %description
  29. The Mousetweaks package provides mouse accessibility enhancements for
  30. the GNOME desktop. These enhancements are:
  31. 1. It offers a way to perform the various clicks without using any
  32. hardware button.
  33. 2. It allows users to perform a right click by doing a click&hold
  34. of the left mousebutton. (For a left-handed mouse user, the termes
  35. left and right have to be inverted.)
  36. 3. It provides an applet that the user can install on a panel. This
  37. applet creates an area on the panel into which the pointer can
  38. be captured until the user releases it with a predefined button
  39. and modifier combination.
  40. The options can be accessed through the Accessibility tab of the
  41. Mouse Preferences of GNOME Control Center or through command-line.
  42. %prep
  43. %setup -q
  44. %build
  45. %configure --disable-scrollkeeper
  46. %{__make} %{?_smp_mflags}
  47. %install
  48. %{__rm} -rf ${RPM_BUILD_ROOT}
  49. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  50. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  51. unset export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  52. %find_lang %{name} --with-gnome
  53. %clean
  54. %{__rm} -rf ${RPM_BUILD_ROOT}
  55. %post
  56. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  57. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/mousetweaks.schemas > /dev/null
  58. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas > /dev/null
  59. %pre
  60. if [ "$1" -gt 1 ]; then
  61. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  62. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/mousetweaks.schemas > /dev/null
  63. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas > /dev/null
  64. fi
  65. %preun
  66. if [ "$1" -eq 0 ]; then
  67. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  68. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/mousetweaks.schemas > /dev/null
  69. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas > /dev/null
  70. fi
  71. %files -f %{name}.lang
  72. %defattr(-,root,root)
  73. %doc COPYING COPYING.FDL COPYING.GPL ChangeLog NEWS README
  74. %{_sysconfdir}/gconf/schemas/mousetweaks.schemas
  75. %{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas
  76. %{_bindir}/dwell-click-applet
  77. %{_bindir}/mousetweaks
  78. %{_bindir}/pointer-capture-applet
  79. %{_libdir}/bonobo/servers/DwellClick_Factory.server
  80. %{_libdir}/bonobo/servers/PointerCapture_Factory.server
  81. %{_datadir}/mousetweaks
  82. %{_mandir}/man1/*
  83. %changelog
  84. * Sat Jun 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.2-1
  85. - new upstream release
  86. * Sun May 09 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
  87. - initial build for Vine Linux