[sisyphus] Re: mc & gpm
Денис Смирнов
=?iso-8859-1?q?mithraen_=CE=C1_freesource=2Einfo?=
Чт Мар 25 00:44:13 MSK 2004
On Wed, Mar 24, 2004 at 04:01:48PM +0400, Mike Lykov wrote:
ML> на некоем компьютере у меня нет мыши, совсем. поэтому я выключил там сервис
ML> gpm. однако, запуская mc после этого, заметил внизу под панелями что-то про
ML> то, что он хочет умереть... (но продолжает работать).
Простой путь -- игнорировать.
Сложный -- пересобрать mc без libgpm.
_IMHO_ такие вещи как gpm, и прочие чисто юзерские да ещё и не всем нужные
прибабахи необходимо иметь возможность включать/выключать с помощью
--with/--without при сборке.
Используемый мною патч к mc.spec в аттаче.
--
С уважением, Денис
http://freesource.info
----------- следующая часть -----------
--- mc.spec.orig 2004-01-19 17:02:58 +0300
+++ mc.spec 2004-02-22 16:56:30 +0300
@@ -7,6 +7,35 @@
Packager: Kachalov Anton <mouse на altlinux.ru>
+%def_without server # predefined config for servers
+%def_without workstation # predefined config for workstations
+
+
+%if_with server
+
+# Server configuration
+%def_without gpm
+%def_without x
+%def_without samba
+
+%else
+%if_with workstation
+
+# Workstation configuratino
+%def_with gpm
+%def_with x
+%def_with samba
+
+%else
+
+# Default configuration
+%def_with gpm
+%def_without x
+%def_without samba
+
+%endif # with workstation
+%endif # with server
+
Source0: ftp://ftp.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-%version.tar.bz2
Source1: iso
Source2: mc.color
@@ -60,8 +89,20 @@
%build
+
+%if_with gpm
+GPM=--with-gpm-mouse
+%else
+GPM=--without-gpm-mouse
+%endif
+
+
%configure --without-gnome --without-debug --with-included-slang --without-included-gettext \
- --enable-charset --enable-largefile --without-x
+ --enable-charset --enable-largefile \
+ %{subst_with x} \
+ $GPM \
+ %{subst_with samba}
+
#Fix bzip2 warning
perl -p -i -e 's/--repetitive-best/-9/' lib/mc.menu
Подробная информация о списке рассылки Sisyphus