Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1574607
 поиск   регистрация   авторизация 
 
Группа :: Сети/Прочее
Пакет: url_handler

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

# Emacs, look here: -*- coding: cyrillic-cp1251 -*-
Name: url_handler
Version: 0.2.1
Release: alt1.M24.1

Group: Networking/Other
Summary: Opens URLs of common types with dedicated programs.
Summary(ru_RU.CP1251): нРЙПШБЮЕР URL-Ш НАШВМШУ РХОНБ ОПЕДМЮГМЮВЕММШЛХ ДКЪ МХУ ОПНЦПЮЛЛЮЛХ.
License: GPL

Packager: Ivan Zakharyaschev <imz at altlinux.ru>

BuildArch: noarch

# There was a single pkg before: it used to unite urlview & url_handler.

Conflicts: urlview < 0.9-ipl8mdk

%define confdir %_sysconfdir/urlview

Requires: common-licenses
# the script uses tr:
Requires: coreutils

# Probably something like this should be present, but not now.

#Requires: webclient
# Now very few pkgs provide webclient.

# We use 'mailx' command not present in older mailx

Conflicts: mailx < 8.1.2-alt1

# 2 scripts of our own.

Source0: url_handler-alt-0.2.1.tar.gz

# All the patches are not applied, because they are already there.

# (They are saved for the purpose of tracking the changes.)

# Our patch - not applied

Patch2: urlview-0.9-paths.ALT.patch

# From Debian - not applied:

Patch4: urlview-0.9-add-nohup-flag.debian.patch

# Add more url-handlers - applied

Patch5: url_handlers-alt-add-new-handlers.patch

%description
%name can be used as a uniform centralized handler for URLs of common types
by other programs (e.g., urlview) or human users.
It has a configurable list of programs
dedicated to handling each specific URL type:
it is initialized to the list of the most popular programs.

Examples:

\#1
url_handler.sh http://lrn.ru \# open it in a browser

\#2
url_handler.sh ./manual.html \# view the local file from the working dir

%description -l ru_RU.CP1251
%name ЛНФЕР АШРЭ ХЯОНКЭГНБЮМ ДПСЦХЛХ ОПНЦПЮЛЛЮЛХ (МЮОПХЛЕП, urlview)
ХКХ КЧДЭЛХ-ОНКЭГНБЮРЕКЪЛХ ДКЪ ЕДХМННАПЮГМНИ ЖЕМРПЮКХГНБЮММНИ НАПЮАНРЙХ URL-НБ
НАШВМШУ РХОНБ. хЛЕЕРЯЪ МЮЯРПЮХБЮЕЛШИ ЯОХЯНЙ ОПНЦПЮЛЛ, ОПЕДМЮГМЮВЕММШУ ДКЪ НАПЮАНРЙХ ЙЮФДНЦН НРДЕКЭМНЦН РХОЮ URL: ХГМЮВЮКЭМН СЯРЮМНБКЕМ ЯОХЯНЙ, ОЕПЕВХЯКЪЧЫХИ ЯЮЛШИ ОНОСКЪПМШЕ ОПНЦПЮЛЛШ.

оПХЛЕПШ:

\#1
url_handler.sh http://lrn.ru \# НРЙПШРЭ ЯЮИР Б АПЮСГЕПЕ

\#2
url_handler.sh ./manual.html \# ОНЯЛНРПЕРЭ КНЙЮКЭМШИ ТЮИК ХГ ПЮАНВЕИ ДХПЕЙРНПХХ

%prep
%setup
%patch5 -p1

%install
mkdir -p "$RPM_BUILD_ROOT"{%_bindir,%confdir}
install -p -m755 url_handler.sh \
   "$RPM_BUILD_ROOT"%confdir
%__ln_s %confdir/url_handler.sh \
   "$RPM_BUILD_ROOT"%_bindir/url_handler.sh
install -p -m644 url_handlers \
   "$RPM_BUILD_ROOT"%confdir/

# link the license

%__ln_s -f %_licensedir/GPL-2 COPYING


%files

%dir %_sysconfdir/urlview
%config %confdir/url_handler.sh
%config(noreplace) %confdir/url_handlers

%_bindir/*

# Hack for symlink ;-)

%doc --no-dereference COPYING

# %triggerpostun  -- urlview < 0.9-ipl8mdk

# [ -e %_sysconfdir/urlview/url_handlers.rpmsave ] \
# && echo 'Consider moving your old configuration to the new location: mv %_sysconfdir/urlview/url_handlers.rpmsave %_sysconfdir/%name/url_handlers!' ||:

# [ -e %_sysconfdir/urlview/url_handler.sh.rpmsave ] \

# && echo 'Consider moving your old configuration to the new location: mv %_sysconfdir/urlview/url_handler.sh.rpmsave %_sysconfdir/%name/url_handler.sh!' ||:

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005