diff --git a/.cvsignore b/.cvsignore index e69de29..fef9b8a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libedit-20060213-2.9.tar.gz diff --git a/libedit.spec b/libedit.spec new file mode 100644 index 0000000..0d274b3 --- /dev/null +++ b/libedit.spec @@ -0,0 +1,85 @@ +%define snap 20060213 + +Name: libedit +Version: 2.9 +Release: 2.%{snap}cvs%{?dist} +Summary: The NetBSD Editline library (libedit) + +Group: System Environment/Libraries +License: BSD +URL: http://www.thrysoee.dk/editline/ +Source0: http://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: ncurses-devel + +%description +This is an autotool- and libtoolized port of the NetBSD Editline +library (libedit). This Berkeley-style licensed command line +editor library provides generic line editing, history, and +tokenization functions, similar to those found in GNU Readline. + +%package devel +Summary: Development files for %{name} +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release} +Requires: ncurses-devel + +%description devel +This is an autotool- and libtoolized port of the NetBSD Editline +library (libedit). This Berkeley-style licensed command line +editor library provides generic line editing, history, and +tokenization functions, similar to those found in GNU Readline. + +This package contains development files for %{name}. + +%prep +%setup -q -n %{name}-%{snap}-%{version} + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} + +find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%post devel -p /sbin/ldconfig +%postun devel -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc ChangeLog INSTALL THANKS +%{_libdir}/*.so.* + +%files devel +%defattr(-,root,root,-) +%doc examples/*.c +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/*.a +%{_mandir}/man3/* +%{_mandir}/man5/* + +%changelog +* Thu Mar 23 2006 Michael J Knox 2.9-2.20060213cvs +- removed licence file I supplied, have requested upstream to provide one +- removed unrequire build dep + +* Tue Mar 14 2006 Michael J Knox 2.9-1.20060213cvs +- removed .la +- added post and postun calls. +- fixed package groups and release. +- added %{name}.COPYING to include NetBSD BSD license. + +* Tue Feb 14 2006 Michael J Knox 2.9-20060103cvs +- initial package for NetBSD's editline. diff --git a/sources b/sources index e69de29..fadac41 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +adda2335413c044ae89af8b0a4bd3b69 libedit-20060213-2.9.tar.gz