2009-11-17 21:29:27 +00:00
|
|
|
%define snap 20090923
|
2006-04-23 02:18:21 +00:00
|
|
|
|
2007-11-03 12:34:01 +00:00
|
|
|
Summary: The NetBSD Editline library
|
|
|
|
Name: libedit
|
2009-11-17 21:29:27 +00:00
|
|
|
Version: 3.0
|
2010-03-30 11:36:44 +00:00
|
|
|
Release: 2.%{snap}cvs%{?dist}
|
2007-11-03 12:34:01 +00:00
|
|
|
License: BSD
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
URL: http://www.thrysoee.dk/editline/
|
|
|
|
Source0: http://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz
|
2006-04-23 02:18:21 +00:00
|
|
|
|
2010-03-30 11:36:44 +00:00
|
|
|
# eliminate compile-time warnings
|
|
|
|
Patch0: libedit-3.0-warnings.patch
|
|
|
|
|
|
|
|
# bz #575383
|
|
|
|
Patch1: libedit-3.0-sigwinch.patch
|
|
|
|
|
2007-11-03 12:34:01 +00:00
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
2006-04-23 02:18:21 +00:00
|
|
|
|
2010-03-30 11:36:44 +00:00
|
|
|
BuildRequires: gawk
|
|
|
|
BuildRequires: ncurses-devel
|
2006-04-23 02:18:21 +00:00
|
|
|
|
|
|
|
%description
|
2007-09-04 03:42:48 +00:00
|
|
|
Libedit is an autotool- and libtoolized port of the NetBSD Editline library.
|
|
|
|
It provides generic line editing, history, and tokenization functions, similar
|
|
|
|
to those found in GNU Readline.
|
2006-04-23 02:18:21 +00:00
|
|
|
|
2007-09-04 03:42:48 +00:00
|
|
|
%package devel
|
2007-11-03 12:34:01 +00:00
|
|
|
Summary: Development files for %{name}
|
2008-01-02 19:41:14 +00:00
|
|
|
Group: Development/Libraries
|
2007-09-04 03:42:48 +00:00
|
|
|
|
2007-11-03 12:34:01 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
2009-01-23 05:28:05 +00:00
|
|
|
Requires: ncurses-devel
|
2007-09-04 03:42:48 +00:00
|
|
|
|
|
|
|
%description devel
|
2006-04-23 02:18:21 +00:00
|
|
|
This package contains development files for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{snap}-%{version}
|
2010-03-30 11:36:44 +00:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2006-04-23 02:18:21 +00:00
|
|
|
|
2007-11-03 12:34:01 +00:00
|
|
|
# Suppress rpmlint error.
|
|
|
|
iconv --from-code ISO8859-1 --to-code UTF-8 ./ChangeLog \
|
|
|
|
--output ChangeLog.utf-8 && mv ChangeLog.utf-8 ./ChangeLog
|
|
|
|
|
2006-04-23 02:18:21 +00:00
|
|
|
%build
|
2007-09-04 03:42:48 +00:00
|
|
|
%configure --disable-static
|
2008-07-27 18:54:30 +00:00
|
|
|
|
|
|
|
# Trying to omit unused direct shared library dependencies leads to
|
|
|
|
# undefined non-weak symbols.
|
|
|
|
|
2006-04-23 02:18:21 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2007-09-04 03:42:48 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2006-04-23 02:18:21 +00:00
|
|
|
|
2008-01-21 19:20:10 +00:00
|
|
|
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
|
2007-09-04 03:42:48 +00:00
|
|
|
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
|
2006-04-23 02:18:21 +00:00
|
|
|
|
|
|
|
%clean
|
2007-09-04 03:42:48 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2006-04-23 02:18:21 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
2007-09-04 03:42:48 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
2006-04-23 02:18:21 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-09-04 03:42:48 +00:00
|
|
|
%doc ChangeLog COPYING THANKS
|
|
|
|
%{_libdir}/%{name}.so.*
|
2006-04-23 02:18:21 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2007-09-04 03:42:48 +00:00
|
|
|
%doc examples/fileman.c examples/test.c
|
2008-07-27 18:54:30 +00:00
|
|
|
%doc %{_mandir}/man3/*
|
|
|
|
%doc %{_mandir}/man5/editrc.5*
|
2007-09-04 03:42:48 +00:00
|
|
|
%{_includedir}/histedit.h
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2006-06-29 05:44:59 +00:00
|
|
|
|
2007-09-04 03:42:48 +00:00
|
|
|
%dir %{_includedir}/editline
|
|
|
|
%{_includedir}/editline/readline.h
|
2006-04-23 02:18:21 +00:00
|
|
|
|
2007-09-04 03:42:48 +00:00
|
|
|
%changelog
|
2010-03-30 11:36:44 +00:00
|
|
|
* Tue Mar 30 2010 Kamil Dudka <kdudka@redhat.com> 3.0-2.20090923cvs
|
|
|
|
- eliminated compile-time warnings
|
|
|
|
- fix to not break the read loop on SIGWINCH, patch contributed
|
|
|
|
by Edward Sheldrake (#575383)
|
|
|
|
|
2009-11-17 21:29:27 +00:00
|
|
|
* Tue Nov 27 2009 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-1.20090923cvs
|
|
|
|
- Update to 3.0 (20090923 snap)
|
|
|
|
|
2009-07-25 05:33:38 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-4.20080712cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-25 14:30:31 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-3.20080712cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-01-23 05:28:05 +00:00
|
|
|
* Thu Jan 22 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.11-2.20080712cvs
|
|
|
|
- Add ncurses-devel requires to -devel subpackage (BZ#481252)
|
|
|
|
|
2008-07-27 18:54:30 +00:00
|
|
|
* Sun Jul 28 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.11-1.20080712cvs
|
|
|
|
- Version bump to 20080712-2.11.
|
|
|
|
|
2008-02-16 16:23:25 +00:00
|
|
|
* Sat Feb 16 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.10-4.20070831cvs
|
|
|
|
- Rebuilding with gcc-4.3 in Rawhide.
|
|
|
|
|
2007-11-04 12:21:56 +00:00
|
|
|
* Sun Nov 04 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-3.20070831cvs
|
|
|
|
- Removed 'Requires: ncurses-devel'.
|
|
|
|
|
2007-11-03 12:34:01 +00:00
|
|
|
* Sat Nov 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-2.20070831cvs
|
|
|
|
- Changed character encoding of ChangeLog from ISO8859-1 to UTF-8.
|
|
|
|
|
2007-09-04 03:42:48 +00:00
|
|
|
* Sun Sep 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-1.20070831cvs
|
|
|
|
- Initial build. Imported SPEC from Rawhide.
|