📄 gpm.spec
字号:
# $Id: gpm.spec,v 1.6 2001/06/27 00:12:54 solar Exp $# this defines the library version that this package builds.%define LIBVER 1.18.0%define BUILD_GPM_ROOT 'no'Summary: A mouse server for the Linux console.Name: gpmVersion: 1.19.3Release: 8owlLicense: GPLGroup: System Environment/DaemonsSource0: ftp://ftp.systemy.it/pub/develop/%{name}-%{version}.tar.gzSource1: gpm.initPatch0: gpm-1.19.3-rh-install-no-root.diffPatch1: gpm-1.19.3-rh-no-ps.diffPatch2: gpm-1.19.3-rh-doc.diffPatch3: gpm-1.19.3-rh-owl-socket-mode.diffPatch4: gpm-1.19.3-rh-gpm-root.diffPatch5: gpm-1.19.3-owl-gpm-root.diffPatch6: gpm-1.19.3-immunix-owl-tmp.diffPatch7: gpm-1.19.3-owl-liblow.diffPatch8: gpm-1.19.3-owl-warnings.diffPrereq: /sbin/chkconfig /sbin/ldconfig /sbin/install-info /etc/rc.d/init.dBuildRequires: bisonBuildRoot: /var/rpm-buildroot/%{name}-root%descriptiongpm provides mouse support to text-based Linux applications as well asconsole cut-and-paste operations using the mouse.%package develRequires: %{name} = %{version}-%{release}Summary: Libraries and header files for developing mouse driven programs.Group: Development/Libraries%description develThe gpm-devel package contains the libraries and header files neededfor the development of mouse driven programs for the console.%if "%{BUILD_GPM_ROOT}"=="'yes'"%package rootRequires: %{name} = %{version}-%{release}Summary: A mouse server add-on which draws pop-up menus on the console.Group: System Environment/Daemons%description rootThe gpm-root program allows pop-up menus to appear on a text consoleat the click of a mouse button.%endif%prep%setup -q%patch0 -p1%patch1 -p1%patch2 -p1%patch3 -p1%patch4 -p1%patch5 -p1%patch6 -p1%patch7 -p1%patch8 -p1%buildautoconfCFLAGS="-D_GNU_SOURCE $RPM_OPT_FLAGS" \ lispdir=%{buildroot}%{_datadir}/emacs/site-lisp \ %configurerm gpm-root.c doc/*.[178] doc/gpm.infomake CFLAGS="" CPPFLAGS=""%installrm -rf %{buildroot}mkdir -p %{buildroot}%{_sysconfdir}PATH=/sbin:/usr/sbin:$PATHmkdir -p %{buildroot}%{_datadir}/emacs/site-lisp%makeinstall lispdir=%{buildroot}%{_datadir}/emacs/site-lispinstall -m 644 doc/gpm-root.1 %{buildroot}%{_mandir}/man1install -m 644 gpm-root.conf %{buildroot}%{_sysconfdir}install -s -m 755 hltest %{buildroot}%{_bindir}make t-mouse.el t-mouse.elccp t-mouse.el* %{buildroot}%{_datadir}/emacs/site-lisppushd %{buildroot}chmod +x .%{_libdir}/libgpm.so.%{LIBVER}ln -sf libgpm.so.%{LIBVER} .%{_libdir}/libgpm.sogzip -9nf .%{_infodir}/gpm.info*popdmkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.dinstall -m 755 $RPM_SOURCE_DIR/gpm.init %{buildroot}%{_sysconfdir}/rc.d/init.d/gpm%cleanrm -rf %{buildroot}%prerm -f /var/run/gpm.restartif [ $1 -ge 2 ]; then /etc/rc.d/init.d/gpm status && touch /var/run/gpm.restart || : /etc/rc.d/init.d/gpm stop || :fi%postif [ $1 -eq 1 ]; then /sbin/chkconfig --add gpmfiif [ -f /var/run/gpm.restart ]; then /etc/rc.d/init.d/gpm startfirm -f /var/run/gpm.restart/sbin/ldconfig/sbin/install-info %{_infodir}/gpm.info.gz %{_infodir}/dir%preunif [ $1 -eq 0 ]; then /sbin/install-info %{_infodir}/gpm.info.gz --delete %{_infodir}/dir /etc/rc.d/init.d/gpm stop || : /sbin/chkconfig --del gpmfi%postun/sbin/ldconfig%files%defattr(-,root,root)%{_bindir}/mev%{_bindir}/hltest/usr/sbin/gpm%{_datadir}/emacs/site-lisp/t-mouse.el%{_datadir}/emacs/site-lisp/t-mouse.elc%{_infodir}/gpm.info*%{_mandir}/man1/mev.1*%{_mandir}/man8/gpm.8*%{_libdir}/libgpm.so.%{LIBVER}%config %{_sysconfdir}/rc.d/init.d/gpm%files devel%defattr(-,root,root)%{_includedir}/*%{_libdir}/libgpm.a%{_libdir}/libgpm.so%if "%{BUILD_GPM_ROOT}"=="'yes'"%files root%defattr(-,root,root)%config %{_sysconfdir}/gpm-root.conf%{_bindir}/gpm-root%{_mandir}/man1/gpm-root.1*%endif%changelog* Wed Jun 27 2001 Solar Designer <solar@owl.openwall.com>- Disabled packaging gpm-root by default.* Tue Jun 26 2001 Solar Designer <solar@owl.openwall.com>- Moved gpm-root to a separate subpackage.- Disabled support for ~/.gpm-root because of too many security issueswith this feature, updated the documentation accordingly.- Fixed many gpm-root reliability bugs including the format string bugreported by Colin Phipps to Debian (http://bugs.debian.org/102031) andseveral other bugs which were about as bad.* Sun May 27 2001 Alexandr D. Kanevskiy <kad@owl.openwall.com>- hack to avoid double use of $RPM_OPT_FLAGS* Sat Jan 06 2001 Solar Designer <solar@owl.openwall.com>- Updated the patches for fail-closeness in many cases.- Re-generate gpm-root.c at build time, to avoid maintaining two patches.- /tmp fixes in the documentation (don't suggest bad practices).- More startup script cleanups.- Restart after package upgrades in an owl-startup compatible way.* Fri Jan 05 2001 Alexandr D. Kanevskiy <kad@owl.openwall.com>- import mktemp patch from Immunix, fix strncpy* Sun Dec 24 2000 Alexandr D. Kanevskiy <kad@owl.openwall.com>- import from RH
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -