[9469] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
[11461] | 2 | %define snap 20170329 |
---|
[1043] | 3 | |
---|
| 4 | Summary: The NetBSD Editline library |
---|
| 5 | Summary(ja): NetBSD Editline ライブラリ |
---|
| 6 | Name: libedit |
---|
[8758] | 7 | Version: 3.1 |
---|
[11461] | 8 | Release: 3.%{snap}%{?_dist_release} |
---|
[1043] | 9 | License: BSD |
---|
| 10 | Group: System Environment/Libraries |
---|
[11092] | 11 | URL: http://thrysoee.dk/editline/ |
---|
[9469] | 12 | |
---|
[11092] | 13 | Source0: http://thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz |
---|
[1043] | 14 | |
---|
[9469] | 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[1043] | 16 | BuildRequires: gawk |
---|
| 17 | BuildRequires: ncurses-devel |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | Libedit is an autotool- and libtoolized port of the NetBSD Editline library. |
---|
| 21 | It provides generic line editing, history, and tokenization functions, similar |
---|
| 22 | to those found in GNU Readline. |
---|
| 23 | |
---|
| 24 | %package devel |
---|
| 25 | Summary: Development files for %{name} |
---|
| 26 | Summary(ja): %{name} の開発ファイル |
---|
| 27 | Group: Development/Libraries |
---|
| 28 | |
---|
| 29 | Requires: %{name} = %{version}-%{release} |
---|
| 30 | Requires: pkgconfig |
---|
| 31 | Requires: ncurses-devel |
---|
| 32 | |
---|
| 33 | %description devel |
---|
| 34 | This package contains development files for %{name}. |
---|
| 35 | |
---|
[9469] | 36 | |
---|
| 37 | %package -n compat32-%{name} |
---|
| 38 | Summary: The NetBSD Editline library |
---|
| 39 | Summary(ja): NetBSD Editline ライブラリ |
---|
| 40 | Group: System Environment/Libraries |
---|
| 41 | Requires: %{name} = %{version}-%{release} |
---|
| 42 | |
---|
| 43 | %description -n compat32-%{name} |
---|
| 44 | Libedit is an autotool- and libtoolized port of the NetBSD Editline library. |
---|
| 45 | It provides generic line editing, history, and tokenization functions, similar |
---|
| 46 | to those found in GNU Readline. |
---|
| 47 | |
---|
| 48 | %package -n compat32-%{name}-devel |
---|
| 49 | Summary: Development files for %{name} |
---|
| 50 | Summary(ja): %{name} の開発ファイル |
---|
| 51 | Group: Development/Libraries |
---|
| 52 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 53 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 54 | Requires: compat32-pkgconfig |
---|
| 55 | Requires: compat32-ncurses-devel |
---|
| 56 | |
---|
| 57 | %description -n compat32-%{name}-devel |
---|
| 58 | This package contains development files for %{name}. |
---|
| 59 | |
---|
[1043] | 60 | %prep |
---|
| 61 | %setup -q -n %{name}-%{snap}-%{version} |
---|
| 62 | |
---|
| 63 | # Suppress rpmlint error. |
---|
| 64 | iconv --from-code ISO8859-1 --to-code UTF-8 ./ChangeLog \ |
---|
| 65 | --output ChangeLog.utf-8 && mv ChangeLog.utf-8 ./ChangeLog |
---|
| 66 | |
---|
| 67 | %build |
---|
[2513] | 68 | %configure --disable-static --enable-widec |
---|
[1043] | 69 | |
---|
| 70 | # Trying to omit unused direct shared library dependencies leads to |
---|
| 71 | # undefined non-weak symbols. |
---|
| 72 | |
---|
| 73 | make %{?_smp_mflags} |
---|
| 74 | |
---|
| 75 | %install |
---|
| 76 | rm -rf $RPM_BUILD_ROOT |
---|
| 77 | |
---|
| 78 | make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT |
---|
| 79 | find $RPM_BUILD_ROOT -type f -name "*.la" -delete |
---|
| 80 | |
---|
[11092] | 81 | %__mv $RPM_BUILD_ROOT%{_mandir}/man3/history.3 $RPM_BUILD_ROOT%{_mandir}/man3/history_libedit.3 |
---|
| 82 | |
---|
[1043] | 83 | %clean |
---|
| 84 | rm -rf $RPM_BUILD_ROOT |
---|
| 85 | |
---|
| 86 | %post -p /sbin/ldconfig |
---|
| 87 | %postun -p /sbin/ldconfig |
---|
| 88 | |
---|
[9469] | 89 | %if %{build_compat32} |
---|
| 90 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 91 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 92 | %endif |
---|
| 93 | |
---|
[1043] | 94 | %files |
---|
| 95 | %defattr(-,root,root,-) |
---|
| 96 | %doc ChangeLog COPYING THANKS |
---|
| 97 | %{_libdir}/%{name}.so.* |
---|
[11092] | 98 | %{_mandir}/man5/editrc.5* |
---|
| 99 | %{_mandir}/man7/editline.7* |
---|
[1043] | 100 | |
---|
| 101 | %files devel |
---|
| 102 | %defattr(-,root,root,-) |
---|
[9469] | 103 | %doc examples/*.c |
---|
| 104 | %{_includedir}/histedit.h |
---|
| 105 | %dir %{_includedir}/editline |
---|
| 106 | %{_includedir}/editline/readline.h |
---|
| 107 | %{_libdir}/%{name}.so |
---|
| 108 | %{_libdir}/pkgconfig/%{name}.pc |
---|
[11092] | 109 | %{_mandir}/man3/* |
---|
[9469] | 110 | |
---|
| 111 | %if %{build_compat32} |
---|
| 112 | %files -n compat32-%{name} |
---|
| 113 | %defattr(-,root,root) |
---|
| 114 | %{_libdir}/%{name}.so.* |
---|
| 115 | |
---|
| 116 | %files -n compat32-%{name}-devel |
---|
| 117 | %defattr(-,root,root) |
---|
[1043] | 118 | %{_libdir}/%{name}.so |
---|
| 119 | %{_libdir}/pkgconfig/%{name}.pc |
---|
[9469] | 120 | %endif |
---|
[1043] | 121 | |
---|
| 122 | |
---|
| 123 | %changelog |
---|
[11461] | 124 | * Fri Feb 02 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1-3.20170329 |
---|
| 125 | - updated to 3.1-20170329. |
---|
| 126 | |
---|
[11092] | 127 | * Wed Mar 29 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 3.1-2.20160903 |
---|
| 128 | - update to 20160903 snap |
---|
| 129 | - drop SIGWINCH patch (Patch1); upstream fixed |
---|
| 130 | - move editrc.5 to main package |
---|
| 131 | - add editline.7 |
---|
| 132 | |
---|
[9469] | 133 | * Tue Mar 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.1-2.20140620 |
---|
| 134 | - added compat32 subpackage |
---|
| 135 | |
---|
[8758] | 136 | * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1-1.20140620 |
---|
| 137 | - update to 20140620 snap |
---|
| 138 | |
---|
[7064] | 139 | * Sat Nov 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0-4.20120601 |
---|
| 140 | - update to 20120601 snap |
---|
| 141 | |
---|
[2513] | 142 | * Sun Jan 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0-3.20100424 |
---|
| 143 | - add --enable-widec to support wide-chat/UTF-8 |
---|
| 144 | |
---|
[1901] | 145 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0-2.20100424 |
---|
| 146 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 147 | |
---|
[1043] | 148 | * Wed May 19 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0-1.20100424 |
---|
| 149 | - initial build for Vine Linux |
---|
| 150 | - update to 20100424 snap |
---|
| 151 | |
---|
| 152 | * Tue Mar 30 2010 Kamil Dudka <kdudka@redhat.com> 3.0-2.20090923cvs |
---|
| 153 | - eliminated compile-time warnings |
---|
| 154 | - fix to not break the read loop on SIGWINCH, patch contributed |
---|
| 155 | by Edward Sheldrake (#575383) |
---|
| 156 | |
---|
[8758] | 157 | * Fri Nov 27 2009 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-1.20090923cvs |
---|
[1043] | 158 | - Update to 3.0 (20090923 snap) |
---|
| 159 | |
---|
| 160 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-4.20080712cvs |
---|
| 161 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 162 | |
---|
| 163 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-3.20080712cvs |
---|
| 164 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 165 | |
---|
| 166 | * Thu Jan 22 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.11-2.20080712cvs |
---|
| 167 | - Add ncurses-devel requires to -devel subpackage (BZ#481252) |
---|
| 168 | |
---|
[8758] | 169 | * Mon Jul 28 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.11-1.20080712cvs |
---|
[1043] | 170 | - Version bump to 20080712-2.11. |
---|
| 171 | |
---|
| 172 | * Sat Feb 16 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.10-4.20070831cvs |
---|
| 173 | - Rebuilding with gcc-4.3 in Rawhide. |
---|
| 174 | |
---|
| 175 | * Sun Nov 04 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-3.20070831cvs |
---|
| 176 | - Removed 'Requires: ncurses-devel'. |
---|
| 177 | |
---|
| 178 | * Sat Nov 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-2.20070831cvs |
---|
| 179 | - Changed character encoding of ChangeLog from ISO8859-1 to UTF-8. |
---|
| 180 | |
---|
[8758] | 181 | * Mon Sep 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-1.20070831cvs |
---|
[1043] | 182 | - Initial build. Imported SPEC from Rawhide. |
---|