Re: Hallelujah! Hspell 1.0 is released.
Diego Iastrubni <[email protected]> Wed, 17 May 2006 09:45:33 +0300
| Newsgroups | gmane.linux.region.israel.ivrix.discuss |
|---|---|
| Message-ID | <[email protected]> |
=E1=E9=E5=ED =F8=E1=E9=F2=E9, 17 =E1=EE=E0=E9 2006, 01:10, =F0=EB=FA=E1 =F2=
=EC =E9=E3=E9 Dan Kenigsberg:
> The thing is, that I added hspell to Fedora Extras, and do not like the
> pain of maintaining two RPMS. You can dowload the hspell rpm using yum
> update, or directly from
> http://download.fedora.redhat.com/pub/fedora/linux/extras/4/i386/hspell=
-1.0
>-3.fc4.i386.rpm or similarily.
you will be surprised, but not everybody uses fedora ;-)
> I don't understand the question. Maybe it's because I don't know what t=
he
> "alternatives system" is.
man update-alternatives ...? (I assume it is available under fedora).
The main idea behind this, is that one functionality may be provided by=20
several applications. For example www-browser may be "mozilla" or=20
"mozilla-firefox" or "konqueror" or maybe "links" and in some rare cases =
even=20
"opera". Each application can install itself as an alternative to some gr=
oup,=20
and provide a priority, the application with the highest priority wil be=20
chosed automatically when it's installed, but users can change that manua=
lly.
This can help, for example, if in the future someone wakes up and writes =
an=20
"hspell2" or similar, which has the same interface, but works differently=
.=20
That new application can be an alternative to "hspell".
For example, what I am doing with hspell:
%post
update-alternatives --install /usr/bin/hspell hspell /usr/bin/hspell.real=
900
update-alternatives --install /usr/bin/hspell hspell /usr/bin/hspell-i =
700
update-alternatives --install /usr/bin/hspell hspell /usr/bin/multispell =
800
%preun
update-alternatives --remove hspell /usr/bin/hspell.real
update-alternatives --remove hspell /usr/bin/hspell-i
update-alternatives --remove hspell /usr/bin/multispell
This mean that the group "hspell" is contains the programs "hspell.real" =
(the=20
c application), "hspell-i" (a simple bash script which calls hspell.real =
-i),=20
and multispell. Users can change the application been used for "hspell" u=
sing=20
a simple command line. Here is a small example:
linux:~ # ls -l /usr/bin/hspell
lrwxrwxrwx 1 root root 24 2006-05-16 23:21 /usr/bin/hspell=20
-> /etc/alternatives/hspell
linux:~ # ls -l /etc/alternatives/hspell
lrwxrwxrwx 1 root root 17 2006-05-17 00:42 /etc/alternatives/hspell=20
-> /usr/bin/hspell-i
linux:~ # update-alternatives --display hspell
hspell - status is manual.
link currently points to /usr/bin/hspell-i
/usr/bin/hspell.real - priority 900
/usr/bin/hspell-i - priority 700
/usr/bin/multispell - priority 800
Current `best' version is /usr/bin/hspell.real.
linux:~ # update-alternatives --config hspell
There are 3 programs which provide `hspell'.
Selection Command
-----------------------------------------------
+ 1 /usr/bin/hspell.real
* 2 /usr/bin/hspell-i
3 /usr/bin/multispell
Enter to keep the default[*], or type selection number: 1
Using `/usr/bin/hspell.real' to provide `hspell'.
linux:~ # ls -l /etc/alternatives/hspell
lrwxrwxrwx 1 root root 20 2006-05-17 09:30 /etc/alternatives/hspell=20
-> /usr/bin/hspell.real
----
Ivrix-discuss list. See http://ivrix.org.il.
To unsubscribe, please send mail to [email protected] wi=
th
only the following line in the message body (NOT SUBJECT!): unsubscribe