Name: gpm Version: 1.20.7 Release: 1mamba Summary: A mouse server for the Linux console Group: System/Servers Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.nico.schottelius.org/software/gpm Source: http://www.nico.schottelius.org/software/gpm/archives/gpm-%{version}.tar.bz2 Source1: gpm-initscript Source2: gpm-root.conf Source3: mouse-sysconfig # patch from http://www.geocities.com/dt_or/gpm/patches/ Patch1: %{name}-1.20.1-evdev-cumulative.patch Patch2: %{name}-1.20.1-math.patch Patch3: %{name}-1.20.1-subscript.patch Patch4: %{name}-1.20.1-input.patch Patch5: %{name}-1.20.1-consolename.patch Patch6: %{name}-1.20.1-close-fds.patch Patch7: %{name}-1.20.1-aligned-sleep.patch Patch8: %{name}-1.20.1-deadsocket.patch Patch200: %{name}-1.20.1-nomessages.patch Patch201: %{name}-1.20.1-nolibmessages.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: chkconfig BuildRequires: glibc-devel ## AUTOBUILDREQ-END %if "%{stage1}" != "1" BuildRequires: emacs-nox >= 21.3 BuildRequires: emacs-X11 >= 21.3 %endif Requires: chkconfig Requires: libgpm = %{?epoch:%epoch:}%{version}-%{release} Requires(post): %{__install_info} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Gpm provides mouse support to text-based Linux applications like the emacs editor, the Midnight Commander file management system, and other programs. Gpm also provides console cut-and-paste operations using the mouse and includes a program to allow pop-up menus to appear at the click of a mouse button. %package -n libgpm Group: System/Libraries Summary: GPM libraries %description -n libgpm This package contains library files neccessary to run most of mouse-aware applications. %package -n libgpm-devel Group: Development/Libraries Summary: Library and header files for developing mouse driven programs. Requires: libgpm = %{?epoch:%epoch:}%{version}-%{release} %description -n libgpm-devel Library and header files for developing mouse driven programs. %prep [ "%{buildroot}" != / ] && rm -rf %{buildroot} %setup -q #%patch1 -p1 -b .evdev-cumulative #%patch2 -p1 -b .math #%patch3 -p1 -b .subscript #%patch4 -p1 -b .input #%patch5 -p1 -b .consolename #%patch6 -p1 -b .close-fds #%patch7 -p1 -b .aligned-sleep #%patch8 -p1 -b .deadsocket #%patch200 -p1 #%patch201 -p1 %build ./autogen.sh CFLAGS="-D_GNU_SOURCE %{optflags}" \ lispdir=%{buildroot}%{_datadir}/emacs/site-lisp \ %configure --without-curses # note: parallel build does not work %make -j1 %install %makeoldinstall lispdir=%{buildroot}%{_datadir}/emacs/site-lisp install -m755 -D %{S:1} %{buildroot}%{_initrddir}/gpm install -m644 -D %{S:2} %{buildroot}%{_sysconfdir}/gpm-root.conf install -m644 -D %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/mouse # fix strange permission chmod +x %{buildroot}%{_libdir}/libgpm.so.* ln -s libgpm.so.2 %{buildroot}%{_libdir}/libgpm.so %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %post if [ $1 -eq 1 ]; then /sbin/chkconfig --add gpm 2>/dev/null fi %install_info gpm.info exit 0 %preun if [ $1 -eq 0 ]; then /sbin/chkconfig --del gpm [ -e /var/lock/subsys/gpm ] && service gpm stop fi %uninstall_info gpm.info exit 0 %postun if [ $1 -eq 1 ]; then service gpm condrestart fi exit 0 %post -n libgpm -p /sbin/ldconfig %postun -n libgpm -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/display-buttons %{_bindir}/display-coords %{_bindir}/disable-paste %{_bindir}/get-versions %{_bindir}/gpm-root %{_bindir}/hltest %{_bindir}/mev %{_bindir}/mouse-test %{_sbindir}/gpm %if "%{stage1}" != "1" %{_datadir}/emacs/site-lisp/t-mouse.el %{_datadir}/emacs/site-lisp/t-mouse.elc %endif %{_initrddir}/gpm %{_infodir}/gpm.info.* %{_mandir}/man1/gpm-root.* %{_mandir}/man1/mev.* %{_mandir}/man1/mouse-test.* %{_mandir}/man7/gpm-types.* %{_mandir}/man8/gpm.* %config(noreplace) %{_sysconfdir}/gpm-root.conf %config(noreplace) %{_sysconfdir}/sysconfig/mouse %files -n libgpm %defattr(-,root,root) %{_libdir}/libgpm.so.* %doc COPYING %files -n libgpm-devel %defattr(-,root,root) %{_includedir}/gpm.h %{_libdir}/libgpm.a %{_libdir}/libgpm.so %doc README TODO %doc doc/README.* doc/FAQ doc/HACK_GPM %doc conf/*.conf %changelog * Fri Dec 21 2012 Automatic Build System 1.20.7-1mamba - update to 1.20.7 * Fri Feb 05 2010 Silvan Calarco 1.20.6-1mamba - update to 1.20.6 * Fri Dec 12 2008 Silvan Calarco 1.20.5-1mamba - update to 1.20.5 * Fri Sep 07 2007 Silvan Calarco 1.20.1-17mamba - initscript: start later (98) * Fri Aug 31 2007 Silvan Calarco 1.20.1-16mamba - initscript: enable repeater mode (-R) and add support for multiple USB devices * Mon Apr 16 2007 Davide Madrisan 1.20.1-15mamba - install info file - use service to call gpm initscript - updated ldconfig cache - initscript updated - fixes compilation fixes * Tue Feb 15 2005 Silvan Calarco 1.20.1-14qilnx - fixed detection of ImExPS/2 mouse * Wed Feb 02 2005 Silvan Calarco 1.20.1-13qilnx - added nolibmessage patch again * Tue Feb 01 2005 Silvan Calarco 1.20.1-12qilnx - added event device (kernel 2.6) support patches from http://www.geocities.com/dt_or/gpm/gpm.html - removed previous applied patches * Tue Feb 01 2005 Silvan Calarco 1.20.1-11qilnx - added patch not to print any message to standard error (unless debugging is on) * Fri Jan 28 2005 Silvan Calarco 1.20.1-10qilnx - added missing libgpm.so.1 symlink - added imps/2 mouse type detect in /proc/bus/input/devices * Thu Jan 27 2005 Davide Madrisan 1.20.1-9qilnx - updated gpm initscript to support kernel 2.6.x extensions - created devel package - added some basic documentation - fix wrong permissions of a few files * Tue Jan 04 2005 Silvan Calarco 1.20.1-8qilnx - don't activate service on install and restart/stop conditionally * Tue Aug 17 2004 Silvan Calarco 1.20.1-7qilnx - changed initscript to suppress annoying error messages * Mon Aug 09 2004 Silvan Calarco 1.20.1-6qilnx - added REPEAT_TYPE= default option to make gpm mouse work with XFree * Mon Jun 23 2003 Silvan Calarco 1.20.1-5qilnx - added correct %post and %pre scripts * Thu May 08 2003 Silvan Calarco 1.20.1-4qilnx - added libgpm package * Thu Apr 24 2003 Alessandro Ramazzina 1.20.1-3qilnx - added better service startup * Wed Apr 16 2003 Alessandro Ramazzina 1.20.1-2qilnx - added configuration files and service startup * Wed Apr 16 2003 Alessandro Ramazzina 1.20.1-1qilnx - creation of gpm package