[7064] | 1 | %define snap 20120601 |
---|
[1043] | 2 | |
---|
| 3 | Summary: The NetBSD Editline library |
---|
| 4 | Summary(ja): NetBSD Editline ライブラリ |
---|
| 5 | Name: libedit |
---|
| 6 | Version: 3.0 |
---|
[7064] | 7 | Release: 4.%{snap}%{?_dist_release} |
---|
[1043] | 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 |
---|
[2513] | 47 | %configure --disable-static --enable-widec |
---|
[1043] | 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 |
---|
[7064] | 85 | * Sat Nov 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0-4.20120601 |
---|
| 86 | - update to 20120601 snap |
---|
| 87 | |
---|
[2513] | 88 | * Sun Jan 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0-3.20100424 |
---|
| 89 | - add --enable-widec to support wide-chat/UTF-8 |
---|
| 90 | |
---|
[1901] | 91 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0-2.20100424 |
---|
| 92 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 93 | |
---|
[1043] | 94 | * Wed May 19 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0-1.20100424 |
---|
| 95 | - initial build for Vine Linux |
---|
| 96 | - update to 20100424 snap |
---|
| 97 | |
---|
| 98 | * Tue Mar 30 2010 Kamil Dudka <kdudka@redhat.com> 3.0-2.20090923cvs |
---|
| 99 | - eliminated compile-time warnings |
---|
| 100 | - fix to not break the read loop on SIGWINCH, patch contributed |
---|
| 101 | by Edward Sheldrake (#575383) |
---|
| 102 | |
---|
| 103 | * Tue Nov 27 2009 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-1.20090923cvs |
---|
| 104 | - Update to 3.0 (20090923 snap) |
---|
| 105 | |
---|
| 106 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-4.20080712cvs |
---|
| 107 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 108 | |
---|
| 109 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-3.20080712cvs |
---|
| 110 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 111 | |
---|
| 112 | * Thu Jan 22 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.11-2.20080712cvs |
---|
| 113 | - Add ncurses-devel requires to -devel subpackage (BZ#481252) |
---|
| 114 | |
---|
| 115 | * Sun Jul 28 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.11-1.20080712cvs |
---|
| 116 | - Version bump to 20080712-2.11. |
---|
| 117 | |
---|
| 118 | * Sat Feb 16 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.10-4.20070831cvs |
---|
| 119 | - Rebuilding with gcc-4.3 in Rawhide. |
---|
| 120 | |
---|
| 121 | * Sun Nov 04 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-3.20070831cvs |
---|
| 122 | - Removed 'Requires: ncurses-devel'. |
---|
| 123 | |
---|
| 124 | * Sat Nov 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-2.20070831cvs |
---|
| 125 | - Changed character encoding of ChangeLog from ISO8859-1 to UTF-8. |
---|
| 126 | |
---|
| 127 | * Sun Sep 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-1.20070831cvs |
---|
| 128 | - Initial build. Imported SPEC from Rawhide. |
---|