1 Summary: An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator
8 # as it's just easier to get tarball
9 Source0: https://github.com/neovim/libvterm/archive/65dbda3/%{name}-%{version}.tar.gz
10 # Source0-md5: 4b28b9a2bd73b558e97b627cfd559678
11 # https://launchpad.net/libvterm
12 URL: http://www.leonerd.org.uk/code/libvterm/
14 BuildRequires: libtool
15 BuildRequires: pkgconfig
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 An abstract C99 library which implements a VT220 or xterm-like
20 terminal emulator. It doesn't use any particular graphics toolkit or
21 output system, instead it invokes callback function pointers that its
22 embedding program should provide it to draw on its behalf. It avoids
23 calling malloc() during normal running state, allowing it to be used
24 in embedded kernel situations.
27 Summary: Development files for %{name}
28 Group: Development/Libraries
29 Requires: %{name} = %{version}-%{release}
32 The %{name}-devel package contains libraries and header files for
33 developing applications that use %{name}.
36 %setup -q -c %{name}-%{version}
42 CFLAGS="%{optflags} -std=gnu99" \
43 INCDIR="%{_includedir}" \
49 rm -rf $RPM_BUILD_ROOT
51 CFLAGS="%{optflags} -std=gnu99" \
52 INCDIR="%{_includedir}" \
56 DESTDIR=$RPM_BUILD_ROOT
58 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvterm.a
59 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvterm.la
62 rm -rf $RPM_BUILD_ROOT
64 %post -p /sbin/ldconfig
65 %postun -p /sbin/ldconfig
68 %defattr(644,root,root,755)
70 %attr(755,root,root) %{_bindir}/unterm
71 %attr(755,root,root) %{_bindir}/vterm-ctrl
72 %attr(755,root,root) %{_bindir}/vterm-dump
73 %attr(755,root,root) %{_libdir}/libvterm.so.*.*.*
74 %ghost %{_libdir}/libvterm.so.0
77 %defattr(644,root,root,755)
78 %{_includedir}/vterm.h
79 %{_includedir}/vterm_keycodes.h
80 %{_libdir}/libvterm.so
81 %{_pkgconfigdir}/vterm.pc