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

Revision 12542, 5.6 KB checked in by tomop, 3 years ago (diff)

updated 2 packages

libedit-3.1-5.20210216

libnl3-3.5.0-2

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