1 # 2 # spec file for package SUNWgnome-a11y-mousetweaks 3 # 4 # includes module(s): mousetweaks 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 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 INCLUDED IN GNOME UMBRELLA ARC 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-applets 35 Requires: SUNWgnome-panel 36 Requires: SUNWgnome-a11y-libs 37 Requires: SUNWdbus-glib 38 Requires: SUNWgnome-libs 39 Requires: SUNWdesktop-cache 40 Requires: %{name}-root 41 42 BuildRequires: SUNWgnome-config-devel 43 BuildRequires: SUNWgnome-panel-devel 44 BuildRequires: SUNWgnome-a11y-libs-devel 45 BuildRequires: SUNWdbus-glib-devel 46 BuildRequires: SUNWgnome-libs-devel 47 48 %package root 49 Summary: %{summary} - / filesystem 50 SUNW_BaseDir: / 51 %include default-depend.inc 52 53 %if %build_l10n 54 %package l10n 55 Summary: %{summary} - l10n content 56 SUNW_BaseDir: %{_basedir} 57 %include default-depend.inc 58 Requires: %{name} 59 %endif 60 61 %prep 62 rm -rf %name-%version 63 mkdir %name-%version 64 %mousetweaks.prep -d %name-%version 65 cd %{_builddir}/%name-%version 66 gzcat %SOURCE0 | tar xf - 67 68 %build 69 export CFLAGS="%optflags" 70 export RPM_OPT_FLAGS="$CFLAGS" 71 export LDFLAGS="%_ldflags" 72 73 %mousetweaks.build -d %name-%version 74 75 %install 76 rm -rf $RPM_BUILD_ROOT 77 %mousetweaks.install -d %name-%version 78 rm -rf $RPM_BUILD_ROOT%{_mandir} 79 cd %{_builddir}/%name-%version/sun-manpages 80 make install DESTDIR=$RPM_BUILD_ROOT 81 82 %if %build_l10n 83 %else 84 # REMOVE l10n FILES 85 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 86 %endif 87 88 89 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 90 91 %clean 92 rm -rf $RPM_BUILD_ROOT 93 94 %post 95 %restart_fmri desktop-mime-cache gconf-cache 96 97 %postun 98 %restart_fmri desktop-mime-cache 99 100 %files 101 %defattr(-,root,bin) 102 %dir %attr (0755, root, bin) %{_bindir} 103 %{_bindir}/* 104 %dir %attr (0755, root, bin) %{_libdir} 105 %{_libdir}/* 106 %dir %attr(0755, root, sys) %{_datadir} 107 %{_datadir}/mousetweaks 108 %doc -d mousetweaks-%{mousetweaks.version} README AUTHORS 109 %doc(bzip2) -d mousetweaks-%{mousetweaks.version} COPYING.GPL COPYING.FDL NEWS ChangeLog src/mt-pidfile.c 110 %dir %attr (0755, root, other) %{_datadir}/doc 111 %dir %attr (0755, root, other) %{_datadir}/gnome 112 %dir %attr (0755, root, bin) %{_datadir}/gnome/help 113 %{_datadir}/gnome/help/* 114 %{_datadir}/omf/mousetweaks/* 115 %dir %attr(0755, root, bin) %{_mandir} 116 %dir %attr(0755, root, bin) %{_mandir}/man1 117 %{_mandir}/man1/* 118 119 120 %if %build_l10n 121 %files l10n 122 %defattr (-, root, bin) 123 %dir %attr (0755, root, sys) %{_datadir} 124 %attr (-, root, other) %{_datadir}/locale 125 %endif 126 127 %files root 128 %defattr (-, root, sys) 129 %attr (0755, root, sys) %dir %{_sysconfdir} 130 %{_sysconfdir}/gconf/schemas/mousetweaks.schemas 131 %{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas 132 133 %changelog 134 * Fri Apr 3 2009 - laca@sun.com 135 - use desktop-cache instead of postrun 136 * Thu Mar 05 2009 - brian.cameron@sun.com 137 - Change SUNWdbus-bindings to SUNWdbus-glib. 138 * Thu Oct 30 2008 - yue.wang@sun.com 139 - Remove the original manpages, and add new manpages. 140 * Thu Oct 30 2008 - li.yuan@sun.com 141 - Add copyright information. 142 * Fri Sep 05 2008 - christian.kelly@sun.com 143 - Fixed %files, added /usr/share/omf/mousetweaks dir. 144 * Thu Jun 12 2008 - li.yuan@sun.com 145 - Add missing dependency on the %{name}-root pacakge. 146 * Mon Mar 31 2008 - li.yuan@sun.com 147 - Add copyright file 148 * Mon Feb 04 2008 Li Yuan <li.yuan@sun.com> 149 - Remove mfversion patch and use autoconf/automake to avoid 150 build errors. Remove some unnecessary script. 151 * Tue Jan 29 2008 Li Yuan <li.yuan@sun.com> 152 - Initial version. 153