1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
#
# Conditional build:
%bcond_without static_libs # don't build static library
#
%define snap 20150325
%define rel 1
Summary: Editline Library
Summary(pl.UTF-8): Biblioteka Editline (edytor linii poleceń)
Name: libedit
Version: 3.1
Release: 1.%{snap}.%{rel}
Epoch: 0
License: BSD
Group: Libraries
Source0: http://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz
# Source0-md5: 43cdb5df3061d78b5e9d59109871b4f6
Patch0: %{name}-man.patch
URL: http://www.thrysoee.dk/editline/
BuildRequires: autoconf >= 2.61
BuildRequires: automake
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Port of the NetBSD Editline library (libedit). This Berkeley-style
licensed command line editor library provides generic line editing,
history, and tokenization functions, similar to those found in GNU
Readline.
%description -l pl.UTF-8
Port biblioteki Editline z NetBSD (libedit). Jest to biblioteka
edytora linii poleceń na licencji w stylu BSD udostępniająca
funkcjonalność ogólnego modyfikowania linii, historii oraz tokenizacji
podobną do obecnych w GNU Readline.
%package devel
Summary: Header files and development documentation for libedit
Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do libedit
Group: Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: ncurses-devel
Conflicts: heimdal-devel <= 0.6.3-1
%description devel
Header files and development documentation for libedit.
%description devel -l pl.UTF-8
Pliki nagłówkowe i dokumentacja programisty do libedit.
%package static
Summary: Static libedit library
Summary(pl.UTF-8): Statyczna biblioteka libedit
Group: Development/Libraries
Requires: %{name}-devel = %{epoch}:%{version}-%{release}
%description static
Static libedit library.
%description static -l pl.UTF-8
Statyczna biblioteka libedit.
%prep
%setup -q -n %{name}-%{snap}-%{version}
%patch0 -p1
%build
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
LANG=C; export LANG
LC_ALL=C; export LC_ALL
CPPFLAGS="-I/usr/include/ncurses"
%configure \
--enable-widec \
--disable-silent-rules \
%{!?with_static_libs:--disable-static}
%{__make} -C src vi.h emacs.h common.h
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc ChangeLog THANKS
%attr(755,root,root) %{_libdir}/libedit.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libedit.so.0
%{_mandir}/man5/editrc.5*
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libedit.so
%{_libdir}/libedit.la
%{_includedir}/editline
%{_includedir}/histedit.h
%{_pkgconfigdir}/libedit.pc
%{_mandir}/man3/editline.3*
%{_mandir}/man3/el_*.3*
%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libedit.a
%endif
|