Name: libedit Summary: The NetBSD Editline library Version: 20090923_3.0 Release: 1 Group: System/Libraries License: BSD URL: http://www.thrysoee.dk/editline/ Source0: %{name}-%{version}.tar.bz2 Patch0: tgetent.patch Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig BuildRequires: pkgconfig(ncurses) BuildRequires: gawk %description 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. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains development files for %{name}. %prep %setup # tgetent.patch %patch0 -p1 %build autoreconf -f -i %configure --disable-static # Call make instruction with smp support make %{?jobs:-j%jobs} %install rm -rf %{buildroot} %make_install find $RPM_BUILD_ROOT -type f -name "*.la" -delete %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc COPYING %{_libdir}/%{name}.so.* %files devel %defattr(-,root,root,-) %doc %{_mandir}/man3/* %doc %{_mandir}/man5/editrc.5* %{_includedir}/histedit.h %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %dir %{_includedir}/editline %{_includedir}/editline/readline.h