Пакет sharutils: Specfile

%define _unpackaged_files_terminate_build 1

Name: sharutils
Version: 4.15.2
Release: alt1

Summary: The GNU shar utilities for packaging and unpackaging shell archives
Summary(ru_RU.KOI8-R): \xf5\xd4\xc9\xcc\xc9\xd4\xd9 GNU \xc4\xcc\xd1 \xd3\xcf\xda\xc4\xc1\xce\xc9\xd1 \xc9 \xd2\xc1\xd3\xd0\xc1\xcb\xcf\xd7\xcb\xc9 \xd4\xc5\xcb\xd3\xd4\xcf\xd7\xd9\xc8 \xc1\xd2\xc8\xc9\xd7\xcf\xd7
License: GPL-3
Group: Archiving/Backup

URL: ftp://ftp.gnu.org/gnu/%name
Source: %name-%version.tar
Patch0: %name-%version-fflush-adjust-to-glibc-2.28-libio.h-removal.patch
Patch1: %name-%version-Fix-building-with-GCC-10.patch
Patch2: %name-%version-Fix-a-heap-buffer-overflow-in-find_archive.patch
Patch3: %name-%version-Do-not-include-lib-md5.c-into-src-shar.c.patch

BuildRequires: makeinfo

%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 \xd2\xc1\xd3\xdb\xc9\xc6\xd2\xcf\xd7\xd9\xd7\xc1\xc5\xd4\xd3\xd1 \xcb\xc1\xcb shell archive, \xd4.\xc5. \xd3\xc3\xc5\xce\xc1\xd2\xc9\xca \xc9\xce\xd4\xc5\xd2\xd0\xd2\xc5\xd4\xc1\xd4\xcf\xd2\xc1 \xcb\xcf\xcd\xc1\xce\xc4,
\xd7 \xd4\xc5\xcb\xd3\xd4\xcf\xd7\xcf\xcd \xd7\xc9\xc4\xc5 \xc8\xd2\xc1\xce\xd1\xdd\x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xd2\xc5\xda\xc1\xce\xc9\xc5 \xce\xc1 \xcb\xd5\xd3\xcb\xc9, \xd0\xcf\xc4\xd3ޣ\xd4 \xcb\xcf\xce\xd4\xd2\xcf\xcc\xd8\xce\xcf\xca \xd3\xd5\xcd\xcd\xd9,
\xc1\xd7\xd4\xcf\xcd\xc1\xd4\xc9\xde\xc5\xd3\xcb\xcf\xc5 \xc9\xda\xd7\xcc\xc5\xde\xc5\xce\xc9\xc5 \xc9\xda \xd0\xcf\xde\xd4\xcf\xd7\xd9\xc8 \xd3\xcf\xcf\xc2\xdd\xc5\xce\xc9\xca \xc9 \xd4.\xc4.


%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%autoreconf
%configure 
%make_build

%install
%makeinstall_std install-man

%find_lang %name

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

%changelog
* Fri Feb 19 2021 Egor Ignatov <egori@altlinux.org> 4.15.2-alt1
- updated to new version 4.15.2

* Thu Dec 03 2015 Igor Vlasenko <viy@altlinux.ru> 4.6.3-alt1.1.qa2.1
- NMU: added BR: texinfo

* Wed Apr 17 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 4.6.3-alt1.1.qa2
- NMU: rebuilt for debuginfo.

* Sat Nov 14 2009 Repocop Q. A. Robot <repocop@altlinux.org> 4.6.3-alt1.1.qa1
- NMU (by repocop): the following fixes applied:
  * obsolete-call-in-post-install-info for sharutils
  * postclean-05-filetriggers for spec file

* Tue May 22 2007 ALT QA Team Robot <qa-robot@altlinux.org> 4.6.3-alt1.1
- Automated rebuild (#11785).

* Tue Jul 25 2006 Ilya Evseev <evseev@altlinux.ru> 4.6.3-alt1
- updated to new version 4.6.3

* Tue May  2 2006 Ilya Evseev <evseev@altlinux.ru> 4.6.2-alt1
- updated to new version 4.6.2

* Thu Jan 12 2006 Ilya Evseev <evseev@altlinux.ru> 4.6-alt1
- updated to new version 4.6

* Tue Aug 30 2005 Ilya Evseev <evseev@altlinux.ru> 4.5.1-alt1
- updated to new version 4.5.1

* Thu Jul 28 2005 Ilya Evseev <evseev@altlinux.ru> 4.4-alt1
- updated to new version 4.4
- bugfix #7264 (reported to upstream and fixed by him)
- specfile: restyle japanese fix

* Fri Jun  3 2005 Ilya Evseev <evseev@altlinux.ru> 4.3.80-alt1
- updated to new version 4.3.80
- patch #0 is no more needed

* Sun Apr  3 2005 Ilya Evseev <evseev@altlinux.ru> 4.3.78-alt2
- added patch #0 for exploitable temporary file race in unshar,
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=302412

* Wed Jan 26 2005 Ilya Evseev <evseev@altlinux.ru> 4.3.78-alt1
- 4.3.78

* Sat Jan  8 2005 Ilya Evseev <evseev@altlinux.ru> 4.3.77-alt1
- 4.3.77
- all old patches except alt-tmp are no more needed
  because they are included to upstream;
  so, we don't need automake/autoconf at build stage.
- remsync is packaged separately for reducing requirements of base stuff

* Mon Oct 06 2003 Dmitry V. Levin <ldv@altlinux.org> 4.2.1-ipl11mdk
- Updated package dependencies.
- Updated package build dependencies.

* Mon Nov 18 2002 Rider <rider@altlinux.ru> 4.2.1-ipl10mdk
- rebuild

* Tue May 14 2002 Dmitry V. Levin <ldv@altlinux.org> 4.2.1-ipl9mdk
- Really update to version 4.2.1
- Merged in RH and MDK patches (the code still have problems).
- Built without libintl (never used).

* Mon Apr 15 2002 Rider <rider@altlinux.ru> 4.2.1-ipl8mdk
- rebuild

* Thu Dec 14 2000 Dmitry V. Levin <ldv@fandra.org> 4.2.1-ipl7mdk
- Fixed texinfo documentation.

* Thu Aug  3 2000 Dmitry V. Levin <ldv@fandra.org> 4.2.1-ipl6mdk
- RE adaptions.

* Fri Jul 28 2000 Francis Galiegue <fg@mandrakesoft.com> 4.2.1-6mdk
- More macros

* Fri Jul 21 2000 Frederic Lepied <flepied@mandrakesoft.com> 4.2.1-5mdk
- use %%make for SMP build.
- corrected %%install_info and %%uninstall_info calls to expand correctly.

* Wed Jul 19 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 4.2.1-4mdk
- bugfix for uudecode and filenames with spaces on them
- BM

* Sun Jun 04 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 4.2.1-3mdk
- fixed the mess with the catalog files.

* Sat Mar 18 2000 Francis Galiegue <francis@mandrakesoft.com> 4.2.1-2mdk
- Let spec helper do its job
- Some spec file changes

* Sun Oct 31 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
_ SMP check/build
- 4.2.1

* Wed Aug 25 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- Remove gzip -9nf stuff, so they info's aren't .gz.bz2
- add %%defattr, (builds as none root)

* Fri Aug 13 1999 Thierry Vignaud <tvignaud@mandrakesoft.com>
- bzip2 info

* Wed May 05 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- auto rebuild in the new build environment (release 12)

* Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com>
- build for glibc 2.1

* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Sat Apr 11 1998 Cristian Gafton <gafton@redhat.com>
- manhattan rebuild

* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
- ALRIGHT!  Woo-hoo!  Erik already did the install-info stuff!
- added BuildRoot
- spec file cleanups

* Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
- uses install-info

* Fri Jul 18 1997 Erik Troan <ewt@redhat.com>
- built against glibc