b11406
%global snap 20121213
b11406
b11406
Summary:	The NetBSD Editline library
b11406
Name:		libedit
b11406
Version:	3.0
e1c5f0
Release:	12.%{snap}cvs%{?dist}
b11406
License:	BSD
b11406
Group:		System Environment/Libraries
b11406
URL:		http://www.thrysoee.dk/editline/
b11406
Source0:	http://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz
b11406
b11406
BuildRequires:	ncurses-devel
b11406
b11406
%description
b11406
Libedit is an autotool- and libtoolized port of the NetBSD Editline library.
b11406
It provides generic line editing, history, and tokenization functions, similar
b11406
to those found in GNU Readline.
b11406
b11406
%package devel
b11406
Summary:	Development files for %{name}
b11406
Group:		Development/Libraries
b11406
b11406
Requires:	%{name} = %{version}-%{release}
b11406
Requires:	pkgconfig
b11406
Requires:	ncurses-devel
b11406
b11406
%description devel
b11406
This package contains development files for %{name}.
b11406
b11406
%prep
b11406
%setup -q -n %{name}-%{snap}-%{version}
b11406
b11406
# Suppress rpmlint error.
b11406
iconv -f ISO8859-1 -t UTF-8 -o ChangeLog.utf-8 ChangeLog
b11406
touch -r ChangeLog ChangeLog.utf-8
b11406
mv -f ChangeLog.utf-8 ChangeLog
b11406
b11406
%build
b11406
%configure --disable-static --enable-widec
b11406
b11406
# Fix unused direct shared library dependencies.
b11406
sed -i "s/lcurses/ltinfo/" src/Makefile
b11406
b11406
make %{?_smp_mflags}
b11406
b11406
%install
b11406
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
b11406
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
b11406
b11406
%post -p /sbin/ldconfig
b11406
b11406
%postun -p /sbin/ldconfig
b11406
b11406
%files
b11406
%doc ChangeLog COPYING THANKS
b11406
%{_libdir}/%{name}.so.*
b11406
b11406
%files devel
b11406
%doc examples/fileman.c examples/tc1.c examples/wtc1.c
b11406
%doc %{_mandir}/man3/*
b11406
%doc %{_mandir}/man5/editrc.5*
b11406
%{_includedir}/histedit.h
b11406
%{_libdir}/%{name}.so
b11406
%{_libdir}/pkgconfig/%{name}.pc
b11406
b11406
%dir %{_includedir}/editline
b11406
%{_includedir}/editline/readline.h
b11406
b11406
%changelog
e1c5f0
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.0-12.20121213cvs
e1c5f0
- Mass rebuild 2014-01-24
e1c5f0
e1c5f0
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.0-11.20121213cvs
e1c5f0
- Mass rebuild 2013-12-27
e1c5f0
b11406
* Wed Feb 20 2013 Kamil Dudka <kdudka@redhat.com> - 3.0-10.20121213cvs
b11406
- Update to 20121213-3.0 (#912957)
b11406
b11406
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-9.20120601cvs
b11406
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b11406
b11406
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> - 3.0-8.20110802cvs
b11406
- fix specfile issues reported by the fedora-review script
b11406
b11406
* Wed Jul 18 2012 Kamil Dudka <kdudka@redhat.com> 3.0-7.20120601cvs
b11406
- Update to 3.0 (20120601 snap)
b11406
- fix crash of el_insertstr() on incomplete multi-byte sequence (#840598)
b11406
b11406
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-6.20110802cvs
b11406
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b11406
b11406
* Fri Nov 18 2011 Kamil Dudka <kdudka@redhat.com> - 3.0-5.20110802cvs
b11406
- fix code defects found by Coverity
b11406
b11406
* Wed Nov  9 2011 Adam Williamson <awilliam@redhat.com> 3.0-4.20110802cvs
b11406
- rebuild to keep it 'newer' than the f15 and f16 builds
b11406
b11406
* Fri Aug 26 2011 Kamil Dudka <kdudka@redhat.com> 3.0-3.20110802cvs
b11406
- Update to 3.0 (20110802 snap), fixes #732989
b11406
b11406
* Thu Mar 24 2011 Jerry James <loganjerry@gmail.com> - 3.0-3.20110227cvs
b11406
- Update to 3.0 (20110227 snap)
b11406
- Drop upstreamed -sigwinch patch
b11406
- Preserve ChangeLog timestamp when converting to UTF-8
b11406
- Fix "unused direct shared library dependency" warning from rpmlint
b11406
- Don't BR gawk; it is on the exceptions list
b11406
b11406
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-3.20100424cvs
b11406
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b11406
b11406
* Mon Feb  7 2011 Jerry James <loganjerry@gmail.com> - 3.0-2.20100424cvs
b11406
- Update to 3.0 (20100424 snap)
b11406
- Enable wide-character (Unicode) support
b11406
b11406
* Tue Mar 30 2010 Kamil Dudka <kdudka@redhat.com> 3.0-2.20090923cvs
b11406
- eliminated compile-time warnings
b11406
- fix to not break the read loop on SIGWINCH, patch contributed
b11406
  by Edward Sheldrake (#575383)
b11406
b11406
* Tue Nov 27 2009 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-1.20090923cvs
b11406
- Update to 3.0 (20090923 snap)
b11406
b11406
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-4.20080712cvs
b11406
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b11406
b11406
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-3.20080712cvs
b11406
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b11406
b11406
* Thu Jan 22 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.11-2.20080712cvs
b11406
- Add ncurses-devel requires to -devel subpackage (BZ#481252)
b11406
b11406
* Sun Jul 28 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.11-1.20080712cvs
b11406
- Version bump to 20080712-2.11.
b11406
b11406
* Sat Feb 16 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.10-4.20070831cvs
b11406
- Rebuilding with gcc-4.3 in Rawhide.
b11406
b11406
* Sun Nov 04 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-3.20070831cvs
b11406
- Removed 'Requires: ncurses-devel'.
b11406
b11406
* Sat Nov 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-2.20070831cvs
b11406
- Changed character encoding of ChangeLog from ISO8859-1 to UTF-8.
b11406
b11406
* Sun Sep 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-1.20070831cvs
b11406
- Initial build. Imported SPEC from Rawhide.