source: projects/specs/trunk/lib/libe/libedit/libedit-vl.spec @ 12356

Revision 12356, 5.6 KB checked in by tomop, 4 years ago (diff)

updated 8 packages

device-mapper-multipath-0.8.2-1

dmraid-1.0.0.rc16-4

jansson-2.12-2

libbsd-0.10.0-1

libedit-3.1-4.20191231

libnsl2-1.2.0-2

libxcrypt-4.4.15-1

sgpio-1.2.1-1

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