source: projects/specs/tags/6_0_REL/lib/libe/libedit/libedit-vl.spec @ 2513

Revision 2513, 3.6 KB checked in by daisuke, 13 years ago (diff)

libedit: add --enable-widec to support wide-char/UTF-8

Line 
1%define snap 20100424
2
3Summary:        The NetBSD Editline library
4Summary(ja):    NetBSD Editline ライブラリ
5Name:           libedit
6Version:        3.0
7Release:        3.%{snap}%{?_dist_release}
8License:        BSD
9Group:          System Environment/Libraries
10URL:            http://www.thrysoee.dk/editline/
11Source0:        http://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz
12
13# bz #575383
14Patch1:         libedit-3.0-sigwinch.patch
15
16BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
17
18BuildRequires:  gawk
19BuildRequires:  ncurses-devel
20
21%description
22Libedit is an autotool- and libtoolized port of the NetBSD Editline library.
23It provides generic line editing, history, and tokenization functions, similar
24to those found in GNU Readline.
25
26%package devel
27Summary:        Development files for %{name}
28Summary(ja):    %{name} の開発ファイル
29Group:          Development/Libraries
30
31Requires:       %{name} = %{version}-%{release}
32Requires:       pkgconfig
33Requires:       ncurses-devel
34
35%description devel
36This package contains development files for %{name}.
37
38%prep
39%setup -q -n %{name}-%{snap}-%{version}
40%patch1 -p1
41
42# Suppress rpmlint error.
43iconv --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
52make %{?_smp_mflags}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
57make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
58find $RPM_BUILD_ROOT -type f -name "*.la" -delete
59
60%clean
61rm -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.
Note: See TracBrowser for help on using the repository browser.