Blame SPECS/sed.spec

9b3fbd
# -*- coding: utf-8 -*-
9b3fbd
9b3fbd
Summary: A GNU stream text editor
9b3fbd
Name: sed
9b3fbd
Version: 4.5
1becae
Release: 2%{?dist}
9b3fbd
License: GPLv3+
9b3fbd
Group: Applications/Text
9b3fbd
URL: http://sed.sourceforge.net/
9b3fbd
Source0: ftp://ftp.gnu.org/pub/gnu/sed/sed-%{version}.tar.xz
9b3fbd
Source1: http://sed.sourceforge.net/sedfaq.txt
9b3fbd
Patch0: sed-4.2.2-binary_copy_args.patch
9b3fbd
Patch1: sed-selinux.patch
1becae
Patch2: sed-fuse.patch
9b3fbd
BuildRequires: glibc-devel, libselinux-devel, libacl-devel, automake, autoconf
9b3fbd
BuildRequires: perl-Getopt-Long
9b3fbd
Requires(post): /sbin/install-info
9b3fbd
Requires(preun): /sbin/install-info
9b3fbd
9b3fbd
Provides: /bin/sed
9b3fbd
9b3fbd
#copylib
9b3fbd
Provides: bundled(gnulib)
9b3fbd
9b3fbd
%description
9b3fbd
The sed (Stream EDitor) editor is a stream or batch (non-interactive)
9b3fbd
editor.  Sed takes text as input, performs an operation or set of
9b3fbd
operations on the text and outputs the modified text.  The operations
9b3fbd
that sed performs (substitutions, deletions, insertions, etc.) can be
9b3fbd
specified in a script file or from the command line.
9b3fbd
9b3fbd
%prep
9b3fbd
%setup -q
9b3fbd
%patch0 -p1 -b .copy
9b3fbd
#%patch1 -p1 -b .selinux
1becae
%patch2 -p1
9b3fbd
9b3fbd
%build
9b3fbd
%configure --without-included-regex
9b3fbd
make %{_smp_mflags}
9b3fbd
install -m 644 -p %{SOURCE1} sedfaq.txt
9b3fbd
gzip -9 sedfaq.txt
9b3fbd
9b3fbd
%check
9b3fbd
echo ====================TESTING=========================
9b3fbd
make check
9b3fbd
echo ====================TESTING END=====================
9b3fbd
9b3fbd
%install
9b3fbd
rm -rf ${RPM_BUILD_ROOT}
9b3fbd
make DESTDIR=$RPM_BUILD_ROOT install
9b3fbd
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
9b3fbd
9b3fbd
%find_lang %{name}
9b3fbd
9b3fbd
%post
9b3fbd
/sbin/install-info %{_infodir}/sed.info.gz %{_infodir}/dir || &> /dev/null
9b3fbd
:
9b3fbd
9b3fbd
%preun
9b3fbd
if [ $1 = 0 ]; then
9b3fbd
   /sbin/install-info --delete %{_infodir}/sed.info.gz %{_infodir}/dir || &> /dev/null
9b3fbd
fi
9b3fbd
:
9b3fbd
9b3fbd
%files -f %{name}.lang
9b3fbd
%defattr(-,root,root)
9b3fbd
%{!?_licensedir:%global license %%doc}
9b3fbd
%license COPYING 
9b3fbd
%doc BUGS NEWS THANKS README AUTHORS sedfaq.txt.gz
9b3fbd
%{_bindir}/sed
9b3fbd
%{_infodir}/*.info*
9b3fbd
%{_mandir}/man*/*
9b3fbd
9b3fbd
%changelog
1becae
* Mon May 18 2020  Jakub Martisko <jamartis@redhat.com> - 4.5-2
1becae
- fix "in-place edits on FUSE filesystems create files with all-zero mode bits"
1becae
- Resolves: #1835761
1becae
9b3fbd
* Mon Apr 09 2018  Jakub Martisko <jamartis@redhat.com> - 4.5-1
9b3fbd
- Rebase to 4.5
9b3fbd
- Drop patch from 4.4-4 (is included in the upstream archive)
9b3fbd
9b3fbd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.4-5
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9b3fbd
9b3fbd
* Thu Jan 11 2018  Jakub Martisko <jamartis@redhat.com> - 4.4-4
9b3fbd
- When editing file inplace, the SELinux context should
9b3fbd
  be based on the link instead of the target file itself.
9b3fbd
  --follow-symlinks option remains unchanged
9b3fbd
- Resolves: #1401442
9b3fbd
9b3fbd
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4-3
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9b3fbd
9b3fbd
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4-2
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9b3fbd
9b3fbd
* Thu Feb 09 2017  Jakub Martisko <jamartis@redhat.com> - 4.4-1
9b3fbd
- new version 4.4
9b3fbd
- removed COPYING.DOC license which is no longer in upstream
9b3fbd
- Resolves: #1410093
9b3fbd
9b3fbd
* Wed Jan 04 2017  Jakub Martisko <jamartis@redhat.com> - 4.3-1
9b3fbd
- new version 4.3
9b3fbd
- Resolves: #1410093
9b3fbd
9b3fbd
* Tue Feb 09 2016 Petr Stodulka <pstodulk@redhat.com> - 4.2.2-15
9b3fbd
- provides /bin/sed
9b3fbd
9b3fbd
* Tue Feb 09 2016 Petr Stodulka <pstodulk@redhat.com> - 4.2.2-14
9b3fbd
- remove meaningless redefinition of _bindir - it's standard macro now;
9b3fbd
  sed will be store in /usr/bin/sed
9b3fbd
  Resovles: #1305835
9b3fbd
9b3fbd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-13
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9b3fbd
9b3fbd
* Sat Dec 26 2015 Petr Stodulka <pstodulk@redhat.com> - 4.2.2-12
9b3fbd
- use global instead of define in spec file
9b3fbd
- added new build dependency on perl-Getopt-Long
9b3fbd
9b3fbd
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-11
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9b3fbd
9b3fbd
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 4.2.2-10
9b3fbd
- Rebuilt for Fedora 23 Change
9b3fbd
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
9b3fbd
9b3fbd
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-9
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9b3fbd
9b3fbd
* Mon Aug  4 2014 Tom Callaway <spot@fedoraproject.org> - 4.2.2-8
9b3fbd
- fix license handling
9b3fbd
9b3fbd
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-7
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9b3fbd
9b3fbd
* Mon Feb 10 2014 Jan Pacner <jpacner@redhat.com> - 4.2.2-6
9b3fbd
- Resolves: #1061367 (Dropping -b option breaks cross-platform compat.)
9b3fbd
- Related: #948598 (Man page scan results for sed)
9b3fbd
- introduce -c argument, add help for -b --binary arguments,
9b3fbd
  cleanup arguments & help)
9b3fbd
9b3fbd
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-5
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9b3fbd
9b3fbd
* Tue May 07 2013 Fridolin Pokorny <fpokorny@redhat.com> - 4.2.2-4
9b3fbd
- Added libacl-devel to BuildRequires for ACL support rhbz#959432
9b3fbd
9b3fbd
* Fri May 03 2013 Fridolin Pokorny <fpokorny@redhat.com> - 4.2.2-3
9b3fbd
- Fixed option handling rhbz#948598
9b3fbd
9b3fbd
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-2
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9b3fbd
9b3fbd
* Fri Jan 04 2013 Martin Briza <mbriza@redhat.com> - 4.2.2-1
9b3fbd
- New release
9b3fbd
- Dropping included patches: sed-4.2.1-data-loss.patch sed-4.2.1-fix-0x26-on-RHS.patch sed-4.2.1-makecheck.patch
9b3fbd
- Dropping unused patch sed-4.2.1-dummyparam.diff
9b3fbd
- Regenerated sed-4.2.{1,2}-copy.patch
9b3fbd
- Minor change to patching (creating backup files)
9b3fbd
9b3fbd
* Tue Jul 10 2012 Martin Briza <mbriza@redhat.com> - 4.2.1-10
9b3fbd
- Fixed the readded -c option
9b3fbd
  Resolves: #832855
9b3fbd
9b3fbd
* Wed Jun 13 2012 Martin Briza <mbriza@redhat.com> - 4.2.1-9
9b3fbd
- Backported commit from upstream to fix treating "x26" as "&" character
9b3fbd
- Added virtual provide for gnulib according to http://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries
9b3fbd
  Resolves: #812067 #821776
9b3fbd
9b3fbd
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.1-8
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9b3fbd
9b3fbd
* Tue Jul 12 2011 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 4.2.1-7
9b3fbd
- avoid silent data loss when an input line is 2^31 bytes or longer
9b3fbd
  Resolves: #720438
9b3fbd
9b3fbd
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.1-6
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9b3fbd
9b3fbd
* Wed Mar 17 2010 Jan Görig <jgorig@redhat.com> 4.2.1-5
9b3fbd
- fixed make check on non UTF-8 locale - upstream patch rhbz#550731
9b3fbd
- readded -c option (thanks Paolo Bonzini) rhbz#566455
9b3fbd
- removed previous -c dummy patch
9b3fbd
- changed license to GPLv3+
9b3fbd
9b3fbd
* Fri Oct 16 2009 Jiri Moskovcak <jmoskovc@redhat.com> 4.2.1-4
9b3fbd
- added libselinux-devel to buildrequires rhbz#514182
9b3fbd
- fixed problem with --excludedocs rhbz#515913
9b3fbd
9b3fbd
* Tue Aug 11 2009 Ville Skyttä <ville.skytta@iki.fi> - 4.2.1-3
9b3fbd
- Use bzipped upstream tarball.
9b3fbd
9b3fbd
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.1-2
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9b3fbd
9b3fbd
* Mon Jun 29 2009  Jiri Moskovcak <jmoskovc@redhat.com> - 4.2.1-1
9b3fbd
- new version
9b3fbd
- obsoletes previous patches
9b3fbd
- added patch to maintain backwards compatibility for scripts using -c/--copy
9b3fbd
- Resolves: #502934
9b3fbd
9b3fbd
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.5-12
9b3fbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9b3fbd
9b3fbd
* Thu Nov 13 2008 Jiri Moskovcak <jmoskovc@redhat.com> 4.1.5-11
9b3fbd
- improved follow.patch (thanks to Arkadiusz Miskiewicz for initial patch)
9b3fbd
- Resolves: #470912
9b3fbd
9b3fbd
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.1.5-10
9b3fbd
- Autorebuild for GCC 4.3
9b3fbd
9b3fbd
* Thu Oct  4 2007 Petr Machata <pmachata@redhat.com> - 4.1.5-9
9b3fbd
- Fix licensing tag.
9b3fbd
- Clean up per merge review comments.
9b3fbd
- Resolves: #226404
9b3fbd
9b3fbd
* Wed Feb  7 2007 Petr Machata <pmachata@redhat.com> - 4.1.5-8
9b3fbd
- tidy up the specfile per rpmlint comments
9b3fbd
- use utf-8 and fix national characters in contributor's names
9b3fbd
9b3fbd
* Thu Jan 25 2007 Petr Machata <pmachata@redhat.com> - 4.1.5-7
9b3fbd
- Ville Skyttä: patch for non-failing %%post, %%preun
9b3fbd
- Resolves: #223716
9b3fbd
9b3fbd
* Fri Dec  8 2006 Petr Machata <pmachata@redhat.com> - 4.1.5-6
9b3fbd
- Split confused patches "copy+symlink" and "relsymlink" into discrete
9b3fbd
  "copy" and "symlink".
9b3fbd
9b3fbd
* Mon Sep  4 2006 Petr Machata <pmachata@redhat.com> - 4.1.5-5
9b3fbd
- Fix handling of relative symlinks (#205122)
9b3fbd
9b3fbd
* Thu Aug  3 2006 Petr Machata <pmachata@redhat.com> - 4.1.5-4
9b3fbd
- remove superfluous multibyte processing in str_append for UTF-8
9b3fbd
  encoding (thanks Paolo Bonzini, #177246)
9b3fbd
9b3fbd
* Mon Jul 17 2006 Petr Machata <pmachata@redhat.com> - 4.1.5-3
9b3fbd
- use dist tag
9b3fbd
9b3fbd
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.1.5-2.2.1
9b3fbd
- rebuild
9b3fbd
9b3fbd
* Thu Jun 29 2006 Petr Machata <pmachata@redhat.com> - 4.1.5-2.2
9b3fbd
- typo in patch name
9b3fbd
9b3fbd
* Thu Jun 29 2006 Petr Machata <pmachata@redhat.com> - 4.1.5-2.1
9b3fbd
- rebuild
9b3fbd
9b3fbd
* Thu Jun 29 2006 Petr Machata <pmachata@redhat.com> - 4.1.5-2
9b3fbd
- #185374:
9b3fbd
  - Follow symlinks before rename (avoid symlink overwrite)
9b3fbd
  - Add -c flag for copy instead of rename (avoid ownership change)
9b3fbd
9b3fbd
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.1.5-1.2
9b3fbd
- bump again for double-long bug on ppc(64)
9b3fbd
9b3fbd
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.1.5-1.1
9b3fbd
- rebuilt for new gcc4.1 snapshot and glibc changes
9b3fbd
9b3fbd
* Mon Feb 06 2006 Florian La Roche <laroche@redhat.com>
9b3fbd
- 4.1.5
9b3fbd
9b3fbd
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
9b3fbd
- rebuilt
9b3fbd
9b3fbd
* Thu Mar 17 2005 Jakub Jelinek <jakub@redhat.com> 4.1.4-1
9b3fbd
- update to 4.1.4
9b3fbd
9b3fbd
* Sat Mar  5 2005 Jakub Jelinek <jakub@redhat.com> 4.1.2-5
9b3fbd
- rebuilt with GCC 4
9b3fbd
9b3fbd
* Fri Oct  8 2004 Jakub Jelinek <jakub@redhat.com> 4.1.2-4
9b3fbd
- fix up make check to run sed --version with LC_ALL=C
9b3fbd
  in the environment (#129014)
9b3fbd
9b3fbd
* Sat Oct  2 2004 Jakub Jelinek <jakub@redhat.com> 4.1.2-3
9b3fbd
- add sedfaq.txt to %%{_docdir} (#16202)
9b3fbd
9b3fbd
* Mon Aug 23 2004 Florian La Roche <Florian.LaRoche@redhat.de>
9b3fbd
- update to 4.1.2
9b3fbd
9b3fbd
* Thu Jul  8 2004 Jakub Jelinek <jakub@redhat.com> 4.1.1-1
9b3fbd
- update to 4.1.1
9b3fbd
9b3fbd
* Mon Jun 21 2004 Jakub Jelinek <jakub@redhat.com> 4.1-1
9b3fbd
- update to 4.1
9b3fbd
9b3fbd
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
9b3fbd
- rebuilt
9b3fbd
9b3fbd
* Tue May 25 2004 Jakub Jelinek <jakub@redhat.com> 4.0.9-1
9b3fbd
- update to 4.0.9
9b3fbd
- BuildRequire recent glibc and glibc-devel (#123043)
9b3fbd
9b3fbd
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
9b3fbd
- rebuilt
9b3fbd
9b3fbd
* Wed Jan  7 2004 Jakub Jelinek <jakub@redhat.com> 4.0.8-3
9b3fbd
- if not -n, print current buffer after N command on the last line
9b3fbd
  unless POSIXLY_CORRECT (#112952)
9b3fbd
- adjust XFAIL_TESTS for the improved glibc regex implementation
9b3fbd
  (#112642)
9b3fbd
9b3fbd
* Fri Nov 14 2003 Jakub Jelinek <jakub@redhat.com> 4.0.8-2
9b3fbd
- enable --without-included-regex again
9b3fbd
- use fastmap for regex searching
9b3fbd
9b3fbd
* Sat Oct 25 2003 Florian La Roche <Florian.LaRoche@redhat.de>
9b3fbd
- update to 4.0.8
9b3fbd
- simplify specfile
9b3fbd
- disable --without-included-regex to pass the testsuite
9b3fbd
9b3fbd
* Thu Jun 26 2003 Jakub Jelinek <jakub@redhat.com> 4.0.7-3
9b3fbd
- rebuilt
9b3fbd
9b3fbd
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
9b3fbd
- rebuilt
9b3fbd
9b3fbd
* Sat Apr 12 2003 Florian La Roche <Florian.LaRoche@redhat.de>
9b3fbd
- update to 4.0.7
9b3fbd
- use "--without-included-regex"
9b3fbd
- do not gzip info pages in spec file, "TODO" is not present anymore
9b3fbd
9b3fbd
* Thu Jan 23 2003 Jakub Jelinek <jakub@redhat.com> 4.0.5-1
9b3fbd
- update to 4.0.5
9b3fbd
9b3fbd
* Tue Oct 22 2002 Jakub Jelinek <jakub@redhat.com>
9b3fbd
- rebuilt to fix x86-64 miscompilation
9b3fbd
- run make check in %%build
9b3fbd
9b3fbd
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
9b3fbd
- automated rebuild
9b3fbd
9b3fbd
* Thu May 23 2002 Tim Powers <timp@redhat.com>
9b3fbd
- automated rebuild
9b3fbd
9b3fbd
* Fri Apr  5 2002 Jakub Jelinek <jakub@redhat.com>
9b3fbd
- Remove stale URLs from documentation (#62519)
9b3fbd
9b3fbd
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
9b3fbd
- Bump release + rebuild.
9b3fbd
9b3fbd
* Mon Dec 18 2000 Yukihiro Nakai <ynakai@redhat.com>
9b3fbd
- Update to 2000.11.28 patch
9b3fbd
- Rebuild for 7.1 tree
9b3fbd
9b3fbd
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
9b3fbd
- automatic rebuild
9b3fbd
9b3fbd
* Mon Jun  5 2000 Jeff Johnson <jbj@redhat.com>
9b3fbd
- FHS packaging.
9b3fbd
9b3fbd
* Mon Feb  7 2000 Jeff Johnson <jbj@redhat.com>
9b3fbd
- compress man pages.
9b3fbd
9b3fbd
* Tue Jan 18 2000 Jakub Jelinek <jakub@redhat.com>
9b3fbd
- rebuild with glibc 2.1.3 to fix an mmap64 bug in sys/mman.h
9b3fbd
9b3fbd
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
9b3fbd
- auto rebuild in the new build environment (release 4)
9b3fbd
9b3fbd
* Tue Aug 18 1998 Jeff Johnson <jbj@redhat.com>
9b3fbd
- update to 3.02
9b3fbd
9b3fbd
* Sun Jul 26 1998 Jeff Johnson <jbj@redhat.com>
9b3fbd
- update to 3.01
9b3fbd
9b3fbd
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
9b3fbd
- translations modified for de, fr, tr
9b3fbd
9b3fbd
* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
9b3fbd
- removed references to the -g option from the man page that we add
9b3fbd
9b3fbd
* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
9b3fbd
- spec file cleanups
9b3fbd
- added BuildRoot
9b3fbd
9b3fbd
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
9b3fbd
- built against glibc