Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37536198
en ru br
ALT Linux repos
S:4.15.2-alt1
5.0: 4.6.3-alt1.1
4.1: 4.6.3-alt1.1
4.0: 4.6.3-alt1.1
3.0: 4.4-alt1

Group :: Archiving/Backup
RPM: sharutils

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: sharutils
Version: 4.6.3
Release: alt1.1.qa2.1

Summary: The GNU shar utilities for packaging and unpackaging shell archives
License: GPL
Group: Archiving/Backup

URL: ftp://ftp.gnu.org/gnu/%name/REL-%version
Source: %url/%name-%version.tar.bz2
Patch0: %name-4.3.78-alt-tmpfile.patch
Patch8: %name-4.3.77-alt-tmp.patch

BuildPreReq: help2man

Summary(ru_RU.KOI8-R): Утилиты GNU для создания и распаковки текстовых архивов
# explicitly added texinfo for info files
BuildRequires: texinfo

%package -n remsync
Summary: Remote synchronization of directories
Summary(ru_RU.KOI8-R): Утилита синхронизации двух каталогов
Group: Archiving/Backup
Requires: %name = %version-%release, perl-base, tar, findutils, gzip-utils

%description
The %name package contains the GNU shar utilities, a set of tools
for encoding and decoding packages of files (in binary or text format)
in a special plain text format called shell archives (shar).  This
format can be sent through email (which can be problematic for
regular binary files).  The shar utility supports a wide range of
capabilities (compressing, uuencoding, splitting long files for
multi-part mailings, providing checksums), which make it very flexible
at creating shar files.  After the files have been sent, the unshar
tool scans mail messages looking for shar files.  Unshar automatically
strips off mail headers and introductory text and then unpacks the shar
files.

%description -l ru_RU.KOI8-R
shar расшифровывается как shell archive, т.е. сценарий интерпретатора команд,
в текстовом виде хранящий в своём теле набор данных, которые он при запуске
распаковывает в файлы. Такие архивы имеют три достоинства:
* благодаря полностью 7-битному содержимому их можно передавать
  любыми коммуникационными программами, включая mail, xmodem и т.д.;
* формат архива и код самораспаковки являются полностью независимыми
  от операционной системы и аппаратной архитектуры;
* на целевом компьютере нужен только интерпретатор команд, совместимый с sh.
Недостатками шелл-архивов являются большой размер и низкая скорость обработки.

Утилиты GNU в данном пакете предназначены для создания и управления
шелл-архивами, включая сжатие, нарезание на куски, подсчёт контрольной суммы,
автоматическое извлечение из почтовых сообщений и т.д.

%description -n remsync
The remsync program tries to maintain up-to-date copies of whole
hierarchy of files over many loosely connected sites,
provided there is at least some slow electronic mail between them.

It prepares and sends out specially packaged files called
"synchronization packages", and is able to processes them after reception.
There is no _master_ site, each site has an equal opportunity
to modify files, and modified files are propagated.

People deciding to cooperate in keeping a synchronized set of files
must have trust each other, as each participant has the power
of modifying the contents of files at other sites.

%description -n remsync -l ru_RU.KOI8-R
Утилита Remsync служит для синхронизации содержимого каталогов
на разных компьютерах через почтовые сообщения.

С её помощью производится как подготовка т.н. пакетов синхронизации
на отправляющей почту стороне, так и их обработка на приёмной.
Отметки синхронизации сохраняются в служебных файлах с именем '.remsync'
внутри синхронизируемых каталогов.

Все узлы, обменивающиеся файлами посредством remsync,
являются равноправными и полноправными,
т.е. пользователь-получатель должен проверять полномочия отправителя вручную.
Вместе с тем, Remsync отслеживает конфликты, связанные с получением
нескольких независимо изменённых вариантов одного файла.

%prep
%setup -q
#patch0
%patch8 -p1

%build
export ac_cv_lib_intl_main=no
export ac_cv_path_MAILER=/bin/mail
%configure
%make_build

%install
%makeinstall install-man

# fix japanese catalog file


%define old_jpdir %buildroot%_datadir/locale/ja_JP.EUC/LC_MESSAGES
%define new_jpdir %buildroot%_datadir/locale/ja/LC_MESSAGES

if [ -d %old_jpdir ]; then
%__mkdir_p %new_jpdir
mv %old_jpdir/*.mo %new_jpdir
rm -rf %old_jpdir
fi

%find_lang %name

# Manual page for remsync

cd %buildroot%_man1dir
help2man %buildroot%_bindir/remsync > remsync.1
subst 's,info remsync,info sharutils,' remsync.1

%files -f %name.lang
%exclude %_bindir/remsync*
%exclude %_mandir/man?/remsync*
%_bindir/*
%_infodir/*.info*
%_mandir/man?/*

%files -n remsync
%_bindir/remsync
%_mandir/man?/remsync*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin