80e372
Summary:    The GNU shar utilities for packaging and unpackaging shell archives
80e372
Name:       sharutils
80e372
Version:    4.15.2
80e372
Release:    21%{?dist}
80e372
# The main code:                GPLv3+
80e372
# intl/dngettext.c:             LGPLv2+
80e372
# lib (gnulib):                 GPLv3+
80e372
# lib/md5.c:                    GPLv3+ and Public Domain
80e372
# libopts/file.c:               LGPLv3+ or BSD
80e372
# libopts/genshell.h:           LGPLv2+
80e372
# libopts/m4/libopts.m4:        GPLv3+
80e372
# doc/sharutils.texi:           GFDL
80e372
# src/uuencode.c:               GPLv3+ and BSD
80e372
## Not in the binary package
80e372
# ar-lib:                       GPLv2+
80e372
# config.rpath:                 FSFULLR
80e372
# INSTALL:                      FSFAPP
80e372
# install-sh:                   MIT
80e372
License:    GPLv3+ and (GPLv3+ and BSD) and (LGPLv3+ or BSD) and LGPLv2+ and Public Domain and GFDL
80e372
Source:     ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
80e372
# Pass compilation with -Werror=format-security, bug #1037323
80e372
Patch0:     %{name}-4.14.2-Pass-compilation-with-Werror-format-security.patch
80e372
# Fix CVE-2018-1000097 (a heap buffer overflow in find_archive()),
80e372
# bug #1548019,
80e372
# <http://lists.gnu.org/archive/html/bug-gnu-utils/2018-02/msg00004.html>
80e372
Patch1:     %{name}-4.15.2-Fix-a-heap-buffer-overflow-in-find_archive.patch
80e372
# Adapt bundled gnulib to glibc-2.28
80e372
Patch2:     %{name}-4.15.2-fflush-adjust-to-glibc-2.28-libio.h-removal.patch
80e372
# Fix building with GCC 10,
80e372
# <https://lists.gnu.org/archive/html/bug-gnu-utils/2020-01/msg00001.html>
80e372
Patch3:     %{name}-4.15.2-Fix-building-with-GCC-10.patch
80e372
# Fix building with GCC 10,
80e372
# <https://lists.gnu.org/archive/html/bug-gnu-utils/2020-01/msg00001.html>
80e372
Patch4:     %{name}-4.15.2-Do-not-include-lib-md5.c-into-src-shar.c.patch
80e372
URL:        http://www.gnu.org/software/%{name}/
80e372
BuildRequires:      binutils
80e372
BuildRequires:      coreutils
80e372
BuildRequires:      gcc
80e372
BuildRequires:      gettext
80e372
# glibc-common for iconv
80e372
BuildRequires:      glibc-common
80e372
BuildRequires:      make
80e372
BuildRequires:      sed
80e372
# Tests:
80e372
BuildRequires:      diffutils
80e372
Provides:           bundled(gnulib)
80e372
# See libopts/autoopts/options.h for OPTIONS_DOTTED_VERSION
80e372
Provides:           bundled(libopts) = 41.1
80e372
80e372
%description
80e372
The sharutils package contains the GNU shar utilities, a set of tools for
80e372
encoding and decoding packages of files (in binary or text format) in
80e372
a special plain text format called shell archives (shar).  This format can be
80e372
sent through e-mail (which can be problematic for regular binary files).  The
80e372
shar utility supports a wide range of capabilities (compressing, uuencoding,
80e372
splitting long files for multi-part mailings, providing check-sums), which
80e372
make it very flexible at creating shar files.  After the files have been sent,
80e372
the unshar tool scans mail messages looking for shar files.  Unshar
80e372
automatically strips off mail headers and introductory text and then unpacks
80e372
the shar files.
80e372
80e372
%prep
80e372
%setup -q
80e372
%patch0 -p1 -b .format
80e372
%patch1 -p1
80e372
%patch2 -p1
80e372
%patch3 -p1
80e372
%patch4 -p1
80e372
80e372
# convert TODO, THANKS to UTF-8
80e372
for i in TODO THANKS; do
80e372
  iconv -f iso-8859-1 -t utf-8 -o $i{.utf8,}
80e372
  mv $i{.utf8,}
80e372
done
80e372
80e372
%build
80e372
%configure
80e372
make %{?_smp_mflags}
80e372
80e372
%install
80e372
make DESTDIR=${RPM_BUILD_ROOT} install
80e372
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
80e372
chmod 644 AUTHORS ChangeLog COPYING NEWS README THANKS TODO
80e372
%find_lang %{name}
80e372
80e372
%check
80e372
make check
80e372
80e372
%files -f %{name}.lang
80e372
%license COPYING
80e372
%doc AUTHORS ChangeLog NEWS README THANKS TODO
80e372
%{_bindir}/*
80e372
%{_infodir}/*info*
80e372
%{_mandir}/man1/*
80e372
%{_mandir}/man5/*
80e372
80e372
%changelog
80e372
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 4.15.2-21
80e372
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
80e372
  Related: rhbz#1991688
80e372
80e372
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.15.2-20
80e372
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
80e372
80e372
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-19
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
80e372
80e372
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-18
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
80e372
80e372
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-17
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
80e372
80e372
* Thu Jan 23 2020 Petr Pisar <ppisar@redhat.com> - 4.15.2-16
80e372
- Fix building with GCC 10
80e372
80e372
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-15
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
80e372
80e372
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-14
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
80e372
80e372
* Tue Jul 24 2018 Petr Pisar <ppisar@redhat.com> - 4.15.2-13
80e372
- License corrected to "GPLv3+ and (GPLv3+ and BSD) and (LGPLv3+ or BSD) and
80e372
  LGPLv2+ and Public Domain and GFDL"
80e372
80e372
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-12
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
80e372
80e372
* Mon Jun 18 2018 Petr Pisar <ppisar@redhat.com> - 4.15.2-11
80e372
- Remove install-info from scriptlets
80e372
80e372
* Tue Apr 10 2018 Petr Pisar <ppisar@redhat.com> - 4.15.2-10
80e372
- Adapt bundled gnulib to glibc-2.28
80e372
80e372
* Thu Feb 22 2018 Petr Pisar <ppisar@redhat.com> - 4.15.2-9
80e372
- Fix CVE-2018-1000097 (a heap buffer overflow in find_archive())
80e372
  (bug #1548019)
80e372
80e372
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-8
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
80e372
80e372
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-7
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
80e372
80e372
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-6
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
80e372
80e372
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-5
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
80e372
80e372
* Thu Jun 09 2016 Petr Pisar <ppisar@redhat.com> - 4.15.2-4
80e372
- Build-require gcc instead of glibc-headers (bug #1230494)
80e372
80e372
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-3
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
80e372
80e372
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.15.2-2
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
80e372
80e372
* Mon Jun 01 2015 Petr Pisar <ppisar@redhat.com> - 4.15.2-1
80e372
- 4.15.2 bump
80e372
- Specify all dependencies
80e372
80e372
* Mon May 04 2015 Petr Pisar <ppisar@redhat.com> - 4.15.1-1
80e372
- 4.15.1 bump
80e372
80e372
* Mon Feb 09 2015 Petr Pisar <ppisar@redhat.com> - 4.15-1
80e372
- 4.15 bump
80e372
80e372
* Mon Dec 15 2014 Petr Pisar <ppisar@redhat.com> - 4.14.2-1
80e372
- 4.14.2 bump
80e372
- License changed from (GPLv3+ and LGPLv3+ and (LGPLv3+ or BSD) and LGPLv2+
80e372
  and Public Domain and GFDL) to (GPLv3+ and (LGPLv3+ or BSD) and LGPLv2+
80e372
  and Public Domain and GFDL)
80e372
80e372
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.14-4
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
80e372
80e372
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.14-3
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
80e372
80e372
* Wed Dec 04 2013 Petr Pisar <ppisar@redhat.com> - 4.14-2
80e372
- Pass compilation with -Werror=format-security (bug #1037323)
80e372
80e372
* Mon Oct 21 2013 Petr Pisar <ppisar@redhat.com> - 4.14-1
80e372
- 4.14 bump
80e372
80e372
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.13.5-3
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
80e372
80e372
* Tue May 28 2013 Petr Pisar <ppisar@redhat.com> - 4.13.5-2
80e372
- Correct license declaration (LGPLv3+ and (LGPLv3+ or BSD) and GFDL added)
80e372
80e372
* Mon Apr 15 2013 Petr Pisar <ppisar@redhat.com> - 4.13.5-1
80e372
- 4.13.5 bump
80e372
80e372
* Wed Apr 03 2013 Petr Pisar <ppisar@redhat.com> - 4.13.4-1
80e372
- 4.13.4 bump
80e372
80e372
* Fri Feb 08 2013 Petr Pisar <ppisar@redhat.com> - 4.13.3-3
80e372
- Collect message catalogs in install phase (bug #908967)
80e372
80e372
* Wed Jan 23 2013 Petr Pisar <ppisar@redhat.com> - 4.13.3-2
80e372
- Fix decoding from positional argument while overriding output file
80e372
  (bug #901895)
80e372
- Fix decoding to standard output when output file is - or /dev/stdout
80e372
  (bug #901895)
80e372
80e372
* Mon Jan 07 2013 Petr Pisar <ppisar@redhat.com> - 4.13.3-1
80e372
- 4.13.3 bump
80e372
80e372
* Thu Jan 03 2013 Petr Pisar <ppisar@redhat.com> - 4.13.1-2
80e372
- Fix MD5 checksum generation on big-endian machines
80e372
80e372
* Thu Jan 03 2013 Petr Pisar <ppisar@redhat.com> - 4.13.1-1
80e372
- 4.13.1 bump
80e372
80e372
* Thu Aug 02 2012 Petr Pisar <ppisar@redhat.com> - 4.11.1-5
80e372
- Fix building with glibc-2.16.6
80e372
80e372
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.11.1-4
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
80e372
80e372
* Tue May 15 2012 Petr Pisar <ppisar@redhat.com> - 4.11.1-3
80e372
- Export bundled(gnulib) (bug #821789)
80e372
80e372
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.11.1-2
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
80e372
80e372
* Fri May 06 2011 Petr Pisar <ppisar@redhat.com> - 4.11.1-1
80e372
- 4.11.1 bump
80e372
80e372
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.11-2
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
80e372
80e372
* Mon Feb 07 2011 Petr Pisar <ppisar@redhat.com> - 4.11-1
80e372
- 4.11 bump
80e372
- Do not install header files injected by gnulib-tool
80e372
- Remove BuildRoot stuff
80e372
80e372
* Mon Aug 30 2010 Petr Pisar <ppisar@redhat.com> - 4.10-1
80e372
- 4.10 bump (bug #628304)
80e372
80e372
* Thu Jun  3 2010 Petr Pisar <ppisar@redhat.com> - 4.9-1
80e372
- version bump to 4.9 (bug #569059, bug #583187)
80e372
80e372
* Mon Feb  1 2010 Stepan Kasal <skasal@redhat.com> - 4.7-6
80e372
- fix the License tag
80e372
80e372
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7-5
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
80e372
80e372
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7-4
80e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
80e372
80e372
* Thu Sep 04 2008 Jason L Tibbitts III <tibbs@math.uh.edu> - 4.7-3
80e372
- Requires(pre) should be Requires(post).
80e372
80e372
* Thu Sep  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4.7-2
80e372
- forgot the new source
80e372
80e372
* Thu Sep  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4.7-1
80e372
- update to 4.7
80e372
- fix license tag
80e372
- package cleanups
80e372
80e372
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.6.3-2
80e372
- Autorebuild for GCC 4.3
80e372
80e372
* Tue Apr 10 2007 Than Ngo <than@redhat.com> - 4.6.3-1
80e372
- 4.6.3
80e372
80e372
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> - 4.6.1-2
80e372
- rebuild
80e372
80e372
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.6.1-1.2
80e372
- bump again for double-long bug on ppc(64)
80e372
80e372
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.6.1-1.1
80e372
- rebuilt for new gcc4.1 snapshot and glibc changes
80e372
80e372
* Mon Feb 06 2006 Florian La Roche <laroche@redhat.com>
80e372
- 4.6.1
80e372
80e372
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
80e372
- rebuilt
80e372
80e372
* Thu Nov 03 2005 Than Ngo <than@redhat.com> 4.6-2
80e372
- fix wrong permission #171889
80e372
80e372
* Wed Oct 26 2005 Than Ngo <than@redhat.com> 4.6-1
80e372
- update to 4.6
80e372
80e372
* Mon Apr 11 2005 Than Ngo <than@redhat.com> 4.2.1-27
80e372
- apply debian patch to fix insecure temporary file creation
80e372
  in unshar #154049, CAN-2005-0990
80e372
80e372
* Thu Mar 31 2005 Than Ngo <than@redhat.com> 4.2.1-26
80e372
- apply patch to fix multiple buffer overflows #152571
80e372
80e372
* Mon Mar 07 2005 Than Ngo <than@redhat.com> 4.2.1-25
80e372
- cleanup
80e372
80e372
* Sat Mar 05 2005 Than Ngo <than@redhat.com> 4.2.1-24
80e372
- rebuilt
80e372
80e372
* Wed Feb 09 2005 Than Ngo <than@redhat.com> 4.2.1-23
80e372
- rebuilt
80e372
80e372
* Fri Oct 01 2004 Than Ngo <than@redhat.com> 4.2.1-22
80e372
- fix buffer overflow in shar, (from Ulf Harnhammer)
80e372
80e372
* Thu Jun 24 2004 Than Ngo <than@redhat.com> 4.2.1-21
80e372
- add builrequires on gettext, bug #126599
80e372
80e372
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
80e372
- rebuilt
80e372
80e372
* Fri May 21 2004 Than Ngo <than@redhat.com> 4.2.1-19
80e372
- add suse patch, which fixes buffer overflow in handling of -o option, #123230
80e372
80e372
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
80e372
- rebuilt
80e372
80e372
* Mon Jun 16 2003 Than Ngo <than@redhat.com> 4.2.1-17
80e372
- rebuilt
80e372
80e372
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
80e372
- rebuilt
80e372
80e372
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
80e372
- rebuilt
80e372
80e372
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 4.2.1-13
80e372
- rebuild on all arches
80e372
80e372
* Mon Jun 24 2002 Than Ngo <than@redhat.com> 4.2.1-12
80e372
- fixed #66892
80e372
80e372
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
80e372
- automated rebuild
80e372
80e372
* Thu May 23 2002 Tim Powers <timp@redhat.com>
80e372
- automated rebuild
80e372
80e372
* Sun Apr 14 2002 Than Ngo <than@redhat.com> 4.2.1-9
80e372
- added fix for Unsecure outputfile handling in uudecode (#63303)
80e372
- Copyright -> License
80e372
80e372
* Fri May 11 2001 Than Ngo <than@redhat.com>
80e372
- use find_lang macro
80e372
- use mktemp
80e372
80e372
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
80e372
- automatic rebuild
80e372
80e372
* Sun Jun 18 2000 Than Ngo <than@redhat.de>
80e372
- fix typo (Bug# 12447)
80e372
80e372
* Sun Jun 18 2000 Than Ngo <than@redhat.de>
80e372
- rebuilt in the new build environment
80e372
80e372
* Thu Jun 08 2000 Than Ngo <than@redhat.de>
80e372
- add %%defattr(-,root,root) (Bug# 11990)
80e372
- use rpm macros
80e372
80e372
* Sun May 21 2000 Ngo Than <than@redhat.de>
80e372
- rebuild to put man pages and info files in right place
80e372
80e372
* Mon Feb 07 2000 Preston Brown <pbrown@redhat.com>
80e372
- rebuild to gzip man pages
80e372
80e372
* Tue Dec 21 1999 Preston Brown <pbrown@redhat.com>
80e372
- sharutils 4.2.1 for Y2K (2 digit date) fix.
80e372
- ja message catalog move (#7878)
80e372
80e372
* Tue Sep  7 1999 Jeff Johnson <jbj@redhat.com>
80e372
- handle spaces in uuencoded file names (David Fox <dsfox@cogsci.ucsd.edu>).
80e372
80e372
* Wed Jul 28 1999 Cristian Gafton <gafton@redhat.com>
80e372
- use the /usr/share/locale for the localedir instead of /usr/lib/locale
80e372
  (#2998)
80e372
80e372
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
80e372
- auto rebuild in the new build environment (release 12)
80e372
80e372
* Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com>
80e372
- build for glibc 2.1
80e372
80e372
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
80e372
- translations modified for de, fr, tr
80e372
80e372
* Sat Apr 11 1998 Cristian Gafton <gafton@redhat.com>
80e372
- manhattan rebuild
80e372
80e372
* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
80e372
- ALRIGHT!  Woo-hoo!  Erik already did the install-info stuff!
80e372
- added BuildRoot
80e372
- spec file cleanups
80e372
80e372
* Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
80e372
- uses install-info
80e372
80e372
* Fri Jul 18 1997 Erik Troan <ewt@redhat.com>
80e372
- built against glibc
80e372