289c49
%global snap 20210216
289c49
%global dir_snap 20210216
289c49
289c49
Summary:	The NetBSD Editline library
289c49
Name:		libedit
289c49
Version:	3.1
289c49
Release:	37.%{snap}cvs%{?dist}
289c49
License:	BSD
289c49
URL:		https://www.thrysoee.dk/editline/
289c49
Source0:	https://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz
289c49
BuildRequires:	gcc
289c49
BuildRequires:	groff-base
289c49
BuildRequires:	make
289c49
BuildRequires:	ncurses-devel
289c49
289c49
%description
289c49
Libedit is an autotool- and libtoolized port of the NetBSD Editline library.
289c49
It provides generic line editing, history, and tokenization functions, similar
289c49
to those found in GNU Readline.
289c49
289c49
%package devel
289c49
Summary:	Development files for %{name}
289c49
289c49
Requires:	%{name}%{?_isa} = %{version}-%{release}
289c49
Requires:	ncurses-devel%{?_isa}
289c49
289c49
%description devel
289c49
This package contains development files for %{name}.
289c49
289c49
%prep
289c49
%autosetup -n %{name}-%{dir_snap}-%{version}
289c49
289c49
# Fix unused direct shared library dependencies.
289c49
sed -i "s/lncurses/ltinfo/" configure
289c49
289c49
%build
289c49
%configure --disable-static --disable-silent-rules
289c49
289c49
%make_build
289c49
289c49
%install
289c49
%make_install
289c49
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
289c49
# See rhbz#1349671
289c49
rm -f $RPM_BUILD_ROOT%{_mandir}/man3/history.3*
289c49
289c49
%ldconfig_scriptlets
289c49
289c49
%files
289c49
%license COPYING
289c49
%doc ChangeLog THANKS
289c49
%{_mandir}/man5/editrc.5*
289c49
%{_libdir}/%{name}.so.0
289c49
%{_libdir}/%{name}.so.0.*
289c49
289c49
%files devel
289c49
%doc examples/fileman.c examples/tc1.c examples/wtc1.c
289c49
%{_mandir}/man3/*
289c49
%{_mandir}/man7/*
289c49
%{_includedir}/histedit.h
289c49
%{_libdir}/%{name}.so
289c49
%{_libdir}/pkgconfig/%{name}.pc
289c49
%dir %{_includedir}/editline
289c49
%{_includedir}/editline/readline.h
289c49
289c49
%changelog
289c49
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.1-37.20210216cvs
289c49
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
289c49
  Related: rhbz#1991688
289c49
289c49
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.1-36.20210216cvs
289c49
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
289c49
289c49
* Tue Feb 16 2021 Jerry James <loganjerry@gmail.com> - 3.1-35.20210216cvs
289c49
- New version (20210216-3.1)
289c49
289c49
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-34.20191231cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
289c49
289c49
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-33.20191231cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
289c49
289c49
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-32.20191231cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
289c49
289c49
* Fri Jan  3 2020 Jerry James <loganjerry@gmail.com> - 3.1-31.20191231cvs
289c49
- New version (20191231-3.1)
289c49
289c49
* Wed Dec 11 2019 Jerry James <loganjerry@gmail.com> - 3.1-30.20191211cvs
289c49
- New version (20191211-3.1)
289c49
289c49
* Sat Oct 26 2019 Jerry James <loganjerry@gmail.com> - 3.1-29.20191025cvs
289c49
- New version (20191025-3.1)
289c49
289c49
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-28.20190324cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
289c49
289c49
* Sat May 11 2019 Jerry James <loganjerry@gmail.com> - 3.1-27.20190324cvs
289c49
- New version (20190324-3.1), fixes bz 1677247
289c49
289c49
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-26.20181209cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
289c49
289c49
* Wed Jan 30 2019 Jerry James <loganjerry@gmail.com> - 3.1-25.20181209cvs
289c49
- New version (20181209-3.1)
289c49
- ChangeLog is now UTF-8, so drop conversion from ISO8859-1
289c49
- Drop man page fix, fixed upstream
289c49
- Drop pkgconfig file fix, fixed upstream
289c49
- Add groff-base BR for man page generation
289c49
289c49
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-24.20170329cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
289c49
289c49
* Sat Mar  3 2018 Jerry James <loganjerry@gmail.com> - 3.1-23.20170329cvs
289c49
- Add gcc BR
289c49
- Build verbosely
289c49
- Drop obsolete --enable-widec configure option
289c49
- Fix "unused direct shared library dependency" warning from rpmlint again
289c49
- Fix man page error due to BSD nroff macro that is not available on Linux
289c49
- Drop explicit R on pkgconfig from the -devel package, autogenerated
289c49
289c49
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-22.20170329cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
289c49
289c49
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.1-21.20170329cvs
289c49
- Switch to %%ldconfig_scriptlets
289c49
289c49
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-20.20170329cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
289c49
289c49
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-19.20170329cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
289c49
289c49
* Wed May 31 2017 Boris Ranto <branto@redhat.com> - 0:3.1-18.20170329cvs
289c49
- New version (0:3.1-18.20170329cvs)
289c49
289c49
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-17.20160618cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
289c49
289c49
* Tue Jun 28 2016 Boris Ranto <branto@redhat.com> - 0:3.1-16.20160618cvs
289c49
- Fix file conflict with readline (rhbz#1349671)
289c49
289c49
* Tue Jun 21 2016 Boris Ranto <branto@redhat.com> - 0:3.1-15.20160618cvs
289c49
- New version (0:3.1-15.20160618)
289c49
289c49
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-14.20150325cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
289c49
289c49
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-13.20150325cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
289c49
289c49
* Thu Mar 26 2015 Boris Ranto <branto@redhat.com> - 3.1-12.20150325cvs
289c49
- Rebase to latest upstream version
289c49
- We no longer need the patch to not ignore extchars on utf8 charset -- the patch was merged upstream
289c49
289c49
* Wed Mar 25 2015 Boris Ranto <branto@redhat.com> - 3.1-11.20141030cvs
289c49
- change the format of patches
289c49
- hide protected functions from other modules
289c49
289c49
* Wed Mar 18 2015 Boris Ranto <branto@redhat.com> - 3.1-10.20141030cvs
289c49
- ignore external characters in input only if not utf8
289c49
289c49
* Mon Jan 12 2015 Boris Ranto <branto@redhat.com> - 3.1-9.20141030cvs
289c49
- Rebase to latest upstream release
289c49
- Fix rhbz#1180529
289c49
289c49
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-8.20140213cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
289c49
289c49
* Thu Jul 17 2014 Tom Callaway <spot@fedoraproject.org> - 3.1-7.20140213cvs
289c49
- fix license handling
289c49
289c49
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-6.20140213cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
289c49
289c49
* Wed Mar 19 2014 Kamil Dudka <kdudka@redhat.com> - 3.1-1.20140213cvs
289c49
- Update to 20140213-3.1
289c49
289c49
* Tue Jan 21 2014 Kamil Dudka <kdudka@redhat.com> - 3.1-4.20130712cvs
289c49
- Avoid SIGSEGV in clear_history() if called prior to using_history() (#1055409)
289c49
289c49
* Thu Jan 02 2014 Kamil Dudka <kdudka@redhat.com> - 3.1-3.20130712cvs
289c49
- Update to 20130712-3.1 (#1045675)
289c49
- Do not mark man pages as %%doc (#1045675)
289c49
289c49
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2.20130601cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
289c49
289c49
* Mon Jun 03 2013 Kamil Dudka <kdudka@redhat.com> - 3.1-1.20130601cvs
289c49
- Update to 20121213-3.1 (#970084)
289c49
289c49
* Wed Feb 20 2013 Kamil Dudka <kdudka@redhat.com> - 3.0-10.20121213cvs
289c49
- Update to 20121213-3.0 (#912957)
289c49
289c49
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-9.20120601cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
289c49
289c49
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> - 3.0-8.20110802cvs
289c49
- fix specfile issues reported by the fedora-review script
289c49
289c49
* Wed Jul 18 2012 Kamil Dudka <kdudka@redhat.com> 3.0-7.20120601cvs
289c49
- Update to 3.0 (20120601 snap)
289c49
- fix crash of el_insertstr() on incomplete multi-byte sequence (#840598)
289c49
289c49
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-6.20110802cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
289c49
289c49
* Fri Nov 18 2011 Kamil Dudka <kdudka@redhat.com> - 3.0-5.20110802cvs
289c49
- fix code defects found by Coverity
289c49
289c49
* Wed Nov  9 2011 Adam Williamson <awilliam@redhat.com> 3.0-4.20110802cvs
289c49
- rebuild to keep it 'newer' than the f15 and f16 builds
289c49
289c49
* Fri Aug 26 2011 Kamil Dudka <kdudka@redhat.com> 3.0-3.20110802cvs
289c49
- Update to 3.0 (20110802 snap), fixes #732989
289c49
289c49
* Thu Mar 24 2011 Jerry James <loganjerry@gmail.com> - 3.0-3.20110227cvs
289c49
- Update to 3.0 (20110227 snap)
289c49
- Drop upstreamed -sigwinch patch
289c49
- Preserve ChangeLog timestamp when converting to UTF-8
289c49
- Fix "unused direct shared library dependency" warning from rpmlint
289c49
- Don't BR gawk; it is on the exceptions list
289c49
289c49
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-3.20100424cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
289c49
289c49
* Mon Feb  7 2011 Jerry James <loganjerry@gmail.com> - 3.0-2.20100424cvs
289c49
- Update to 3.0 (20100424 snap)
289c49
- Enable wide-character (Unicode) support
289c49
289c49
* Tue Mar 30 2010 Kamil Dudka <kdudka@redhat.com> 3.0-2.20090923cvs
289c49
- eliminated compile-time warnings
289c49
- fix to not break the read loop on SIGWINCH, patch contributed
289c49
  by Edward Sheldrake (#575383)
289c49
289c49
* Tue Nov 17 2009 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-1.20090923cvs
289c49
- Update to 3.0 (20090923 snap)
289c49
289c49
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-4.20080712cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
289c49
289c49
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-3.20080712cvs
289c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
289c49
289c49
* Thu Jan 22 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.11-2.20080712cvs
289c49
- Add ncurses-devel requires to -devel subpackage (BZ#481252)
289c49
289c49
* Sun Jul 27 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.11-1.20080712cvs
289c49
- Version bump to 20080712-2.11.
289c49
289c49
* Sat Feb 16 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.10-4.20070831cvs
289c49
- Rebuilding with gcc-4.3 in Rawhide.
289c49
289c49
* Sun Nov 04 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-3.20070831cvs
289c49
- Removed 'Requires: ncurses-devel'.
289c49
289c49
* Sat Nov 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-2.20070831cvs
289c49
- Changed character encoding of ChangeLog from ISO8859-1 to UTF-8.
289c49
289c49
* Sun Sep 02 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-1.20070831cvs
289c49
- Initial build. Imported SPEC from Rawhide.