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