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