213 lines
6.9 KiB
RPMSpec
213 lines
6.9 KiB
RPMSpec
%define gitcommit %(echo %version | cut -d+ -f2 | cut -d. -f2)
|
|
Name: gpm
|
|
Version: 1.20.7+20200717git.e82d1a6
|
|
Release: 1mamba
|
|
Summary: A mouse server for the Linux console
|
|
Group: System/Servers
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan@openmamba.org>
|
|
URL: https://www.nico.schottelius.org/software/gpm/
|
|
Source: https://github.com/telmich/gpm.git/master@%{gitcommit}/gpm-%{version}.tar.bz2
|
|
Source1: gpm.service
|
|
Source2: gpm.path
|
|
Source3: gpm-profile.sh
|
|
Patch0: gpm-1.20.7+20200717git.e82d1a6-drop-broken-configure-code.patch
|
|
Patch1: gpm-1.20.7+20200717git.e82d1a6-src-daemon-remove-obvious-use-of-unitialized-data.patch
|
|
Patch2: gpm-1.20.7+20200717git.e82d1a6-src-daemon-reindent-switch-statement-to-avoid-compil.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libncurses-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: emacs-nox >= 21.3
|
|
BuildRequires: emacs-x11 >= 21.3
|
|
Requires: libgpm = %{?epoch:%epoch:}%{version}-%{release}
|
|
Requires(post): %{__install_info}
|
|
|
|
%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
|
|
%setup -q
|
|
%patch 0 -p1 -b .drop-broken-configure-code
|
|
%patch 1 -p1 -b .src-daemon-remove-obvious-use-of-unitialized-data
|
|
%patch 2 -p1 -b .src-daemon-reindent-switch-statement-to-avoid-compil
|
|
|
|
./autogen.sh
|
|
|
|
%build
|
|
export CFLAGS="-D_GNU_SOURCE %{optflags} -std=gnu17"
|
|
|
|
%configure
|
|
|
|
%make
|
|
|
|
%install
|
|
%makeinstall
|
|
|
|
install -m644 -D %{SOURCE1} %{buildroot}%{_unitdir}/gpm.service
|
|
install -m644 -D %{SOURCE2} %{buildroot}%{_unitdir}/gpm.path
|
|
install -m755 -D %{SOURCE3} %{buildroot}%{_sysconfdir}/profile.d/gpm.sh
|
|
|
|
# fix strange permission
|
|
chmod +x %{buildroot}%{_libdir}/libgpm.so.*
|
|
ln -s libgpm.so.2 %{buildroot}%{_libdir}/libgpm.so
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
%post
|
|
%install_info gpm.info
|
|
%systemd_post gpm.service
|
|
:
|
|
|
|
%preun
|
|
%systemd_preun gpm.service
|
|
%uninstall_info gpm.info
|
|
:
|
|
|
|
%postun
|
|
%systemd_postun_with_restart gpm.service
|
|
:
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_sysconfdir}/profile.d/gpm.sh
|
|
%{_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
|
|
%{_unitdir}/gpm.service
|
|
%{_unitdir}/gpm.path
|
|
%{_infodir}/gpm.info.*
|
|
%{_mandir}/man1/gpm-root.*
|
|
%{_mandir}/man1/mev.*
|
|
%{_mandir}/man1/mouse-test.*
|
|
%{_mandir}/man7/gpm-types.*
|
|
%{_mandir}/man8/gpm.*
|
|
|
|
%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
|
|
* Wed Dec 31 2025 Silvan Calarco <silvan@openmamba.org> 1.20.7+20200717git.e82d1a6-1mamba
|
|
- update to 1.20.7+20200717git.e82d1a6
|
|
|
|
* Wed Dec 31 2025 Automatic Build System <autodist@openmamba.org> 1.20.7.r38.ge82d1a6-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Sat Oct 24 2020 Automatic Build System <autodist@mambasoft.it> 1.20.7.r38.ge82d1a6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Oct 27 2019 Automatic Build System <autodist@mambasoft.it> 1.20.7.r27.g1fd1941-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Oct 26 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.20.7.20191026git-1mamba
|
|
- update to 1.20.7.20191026git
|
|
|
|
* Fri Dec 21 2012 Automatic Build System <autodist@mambasoft.it> 1.20.7-1mamba
|
|
- update to 1.20.7
|
|
|
|
* Fri Feb 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.20.6-1mamba
|
|
- update to 1.20.6
|
|
|
|
* Fri Dec 12 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.20.5-1mamba
|
|
- update to 1.20.5
|
|
|
|
* Fri Sep 07 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.20.1-17mamba
|
|
- initscript: start later (98)
|
|
|
|
* Fri Aug 31 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.20.1-16mamba
|
|
- initscript: enable repeater mode (-R) and add support for multiple USB devices
|
|
|
|
* Mon Apr 16 2007 Davide Madrisan <davide.madrisan@gmail.com> 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 <silvan.calarco@qinet.it> 1.20.1-14qilnx
|
|
- fixed detection of ImExPS/2 mouse
|
|
|
|
* Wed Feb 02 2005 Silvan Calarco <silvan.calarco@qinet.it> 1.20.1-13qilnx
|
|
- added nolibmessage patch again
|
|
|
|
* Tue Feb 01 2005 Silvan Calarco <silvan.calarco@qinet.it> 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 <silvan.calarco@mambasoft.it> 1.20.1-11qilnx
|
|
- added patch not to print any message to standard error (unless debugging is on)
|
|
|
|
* Fri Jan 28 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 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 <davide.madrisan@qilinux.it> 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 <silvan.calarco@mambasoft.it> 1.20.1-8qilnx
|
|
- don't activate service on install and restart/stop conditionally
|
|
|
|
* Tue Aug 17 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.20.1-7qilnx
|
|
- changed initscript to suppress annoying error messages
|
|
|
|
* Mon Aug 09 2004 Silvan Calarco <silvan.calarco@qinet.it> 1.20.1-6qilnx
|
|
- added REPEAT_TYPE=<empty> default option to make gpm mouse work with XFree
|
|
|
|
* Mon Jun 23 2003 Silvan Calarco <silvan.calarco@qinet.it> 1.20.1-5qilnx
|
|
- added correct %post and %pre scripts
|
|
|
|
* Thu May 08 2003 Silvan Calarco <silvan.calarco@qinet.it> 1.20.1-4qilnx
|
|
- added libgpm package
|
|
|
|
* Thu Apr 24 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 1.20.1-3qilnx
|
|
- added better service startup
|
|
|
|
* Wed Apr 16 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 1.20.1-2qilnx
|
|
- added configuration files and service startup
|
|
|
|
* Wed Apr 16 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 1.20.1-1qilnx
|
|
- creation of gpm package
|