b4584a209d
Modified Files: devel/.cvsignore devel/libedit.spec devel/sources
73 lines
1.6 KiB
RPMSpec
73 lines
1.6 KiB
RPMSpec
%define snap 20070831
|
|
|
|
Summary: The NetBSD Editline library
|
|
Name: libedit
|
|
Version: 2.10
|
|
Release: 1.%{snap}cvs%{?dist}
|
|
License: BSD
|
|
Group: System Environment/Libraries
|
|
URL: http://www.thrysoee.dk/editline/
|
|
Source0: http://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
BuildRequires: gawk
|
|
BuildRequires: ncurses-devel
|
|
|
|
%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: System Environment/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: ncurses-devel
|
|
Requires: pkgconfig
|
|
|
|
%description devel
|
|
This package contains development files for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{snap}-%{version}
|
|
|
|
%build
|
|
%configure --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc ChangeLog COPYING THANKS
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%doc examples/fileman.c examples/test.c
|
|
%{_includedir}/histedit.h
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_mandir}/man3/*
|
|
%{_mandir}/man5/editrc.5.gz
|
|
|
|
%dir %{_includedir}/editline
|
|
%{_includedir}/editline/readline.h
|
|
|
|
%changelog
|
|
* Sun Sep 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-1.20070831cvs
|
|
- Initial build. Imported SPEC from Rawhide.
|