| 1 | %define snap 20100424 |
|---|
| 2 | |
|---|
| 3 | Summary: The NetBSD Editline library |
|---|
| 4 | Summary(ja): NetBSD Editline ライブラリ |
|---|
| 5 | Name: libedit |
|---|
| 6 | Version: 3.0 |
|---|
| 7 | Release: 3.%{snap}%{?_dist_release} |
|---|
| 8 | License: BSD |
|---|
| 9 | Group: System Environment/Libraries |
|---|
| 10 | URL: http://www.thrysoee.dk/editline/ |
|---|
| 11 | Source0: http://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz |
|---|
| 12 | |
|---|
| 13 | # bz #575383 |
|---|
| 14 | Patch1: libedit-3.0-sigwinch.patch |
|---|
| 15 | |
|---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|---|
| 17 | |
|---|
| 18 | BuildRequires: gawk |
|---|
| 19 | BuildRequires: ncurses-devel |
|---|
| 20 | |
|---|
| 21 | %description |
|---|
| 22 | Libedit is an autotool- and libtoolized port of the NetBSD Editline library. |
|---|
| 23 | It provides generic line editing, history, and tokenization functions, similar |
|---|
| 24 | to those found in GNU Readline. |
|---|
| 25 | |
|---|
| 26 | %package devel |
|---|
| 27 | Summary: Development files for %{name} |
|---|
| 28 | Summary(ja): %{name} の開発ファイル |
|---|
| 29 | Group: Development/Libraries |
|---|
| 30 | |
|---|
| 31 | Requires: %{name} = %{version}-%{release} |
|---|
| 32 | Requires: pkgconfig |
|---|
| 33 | Requires: ncurses-devel |
|---|
| 34 | |
|---|
| 35 | %description devel |
|---|
| 36 | This package contains development files for %{name}. |
|---|
| 37 | |
|---|
| 38 | %prep |
|---|
| 39 | %setup -q -n %{name}-%{snap}-%{version} |
|---|
| 40 | %patch1 -p1 |
|---|
| 41 | |
|---|
| 42 | # Suppress rpmlint error. |
|---|
| 43 | iconv --from-code ISO8859-1 --to-code UTF-8 ./ChangeLog \ |
|---|
| 44 | --output ChangeLog.utf-8 && mv ChangeLog.utf-8 ./ChangeLog |
|---|
| 45 | |
|---|
| 46 | %build |
|---|
| 47 | %configure --disable-static --enable-widec |
|---|
| 48 | |
|---|
| 49 | # Trying to omit unused direct shared library dependencies leads to |
|---|
| 50 | # undefined non-weak symbols. |
|---|
| 51 | |
|---|
| 52 | make %{?_smp_mflags} |
|---|
| 53 | |
|---|
| 54 | %install |
|---|
| 55 | rm -rf $RPM_BUILD_ROOT |
|---|
| 56 | |
|---|
| 57 | make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT |
|---|
| 58 | find $RPM_BUILD_ROOT -type f -name "*.la" -delete |
|---|
| 59 | |
|---|
| 60 | %clean |
|---|
| 61 | rm -rf $RPM_BUILD_ROOT |
|---|
| 62 | |
|---|
| 63 | %post -p /sbin/ldconfig |
|---|
| 64 | |
|---|
| 65 | %postun -p /sbin/ldconfig |
|---|
| 66 | |
|---|
| 67 | %files |
|---|
| 68 | %defattr(-,root,root,-) |
|---|
| 69 | %doc ChangeLog COPYING THANKS |
|---|
| 70 | %{_libdir}/%{name}.so.* |
|---|
| 71 | |
|---|
| 72 | %files devel |
|---|
| 73 | %defattr(-,root,root,-) |
|---|
| 74 | %doc examples/fileman.c examples/test.c |
|---|
| 75 | %doc %{_mandir}/man3/* |
|---|
| 76 | %doc %{_mandir}/man5/editrc.5* |
|---|
| 77 | %{_includedir}/histedit.h |
|---|
| 78 | %{_libdir}/%{name}.so |
|---|
| 79 | %{_libdir}/pkgconfig/%{name}.pc |
|---|
| 80 | |
|---|
| 81 | %dir %{_includedir}/editline |
|---|
| 82 | %{_includedir}/editline/readline.h |
|---|
| 83 | |
|---|
| 84 | %changelog |
|---|
| 85 | * Sun Jan 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0-3.20100424 |
|---|
| 86 | - add --enable-widec to support wide-chat/UTF-8 |
|---|
| 87 | |
|---|
| 88 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0-2.20100424 |
|---|
| 89 | - rebuild with rpm-4.8.1 for pkg-config file |
|---|
| 90 | |
|---|
| 91 | * Wed May 19 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0-1.20100424 |
|---|
| 92 | - initial build for Vine Linux |
|---|
| 93 | - update to 20100424 snap |
|---|
| 94 | |
|---|
| 95 | * Tue Mar 30 2010 Kamil Dudka <kdudka@redhat.com> 3.0-2.20090923cvs |
|---|
| 96 | - eliminated compile-time warnings |
|---|
| 97 | - fix to not break the read loop on SIGWINCH, patch contributed |
|---|
| 98 | by Edward Sheldrake (#575383) |
|---|
| 99 | |
|---|
| 100 | * Tue Nov 27 2009 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-1.20090923cvs |
|---|
| 101 | - Update to 3.0 (20090923 snap) |
|---|
| 102 | |
|---|
| 103 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-4.20080712cvs |
|---|
| 104 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
|---|
| 105 | |
|---|
| 106 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-3.20080712cvs |
|---|
| 107 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
|---|
| 108 | |
|---|
| 109 | * Thu Jan 22 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.11-2.20080712cvs |
|---|
| 110 | - Add ncurses-devel requires to -devel subpackage (BZ#481252) |
|---|
| 111 | |
|---|
| 112 | * Sun Jul 28 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.11-1.20080712cvs |
|---|
| 113 | - Version bump to 20080712-2.11. |
|---|
| 114 | |
|---|
| 115 | * Sat Feb 16 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.10-4.20070831cvs |
|---|
| 116 | - Rebuilding with gcc-4.3 in Rawhide. |
|---|
| 117 | |
|---|
| 118 | * Sun Nov 04 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-3.20070831cvs |
|---|
| 119 | - Removed 'Requires: ncurses-devel'. |
|---|
| 120 | |
|---|
| 121 | * Sat Nov 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-2.20070831cvs |
|---|
| 122 | - Changed character encoding of ChangeLog from ISO8859-1 to UTF-8. |
|---|
| 123 | |
|---|
| 124 | * Sun Sep 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-1.20070831cvs |
|---|
| 125 | - Initial build. Imported SPEC from Rawhide. |
|---|