Blame SPECS/sed.spec

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