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