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