]> git.pld-linux.org Git - packages/libvterm.git/blame - libvterm.spec
up to 0.3
[packages/libvterm.git] / libvterm.spec
CommitLineData
057213ea
ER
1Summary: An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator
2Name: libvterm
59454a23
JP
3Version: 0.3
4Release: 1
057213ea
ER
5License: MIT
6Group: Libraries
dca940c7 7Source0: https://www.leonerd.org.uk/code/libvterm/%{name}-%{version}.tar.gz
59454a23 8# Source0-md5: 589034cdeec5d587d9a32eb10fc58022
057213ea 9URL: http://www.leonerd.org.uk/code/libvterm/
057213ea 10BuildRequires: libtool
057213ea
ER
11BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13%description
14An abstract C99 library which implements a VT220 or xterm-like
15terminal emulator. It doesn't use any particular graphics toolkit or
16output system, instead it invokes callback function pointers that its
17embedding program should provide it to draw on its behalf. It avoids
18calling malloc() during normal running state, allowing it to be used
19in embedded kernel situations.
20
21%package devel
22Summary: Development files for %{name}
23Group: Development/Libraries
24Requires: %{name} = %{version}-%{release}
25
26%description devel
27The %{name}-devel package contains libraries and header files for
28developing applications that use %{name}.
29
30%prep
dca940c7 31%setup -q
057213ea
ER
32
33%build
34%{__make} \
35 VERBOSE=1 \
36 CFLAGS="%{optflags} -std=gnu99" \
37 INCDIR="%{_includedir}" \
38 LIBDIR="%{_libdir}" \
39 MANDIR="%{_mandir}" \
40 PREFIX="%{_prefix}" \
41
42%install
43rm -rf $RPM_BUILD_ROOT
44%{__make} install \
45 CFLAGS="%{optflags} -std=gnu99" \
46 INCDIR="%{_includedir}" \
47 LIBDIR="%{_libdir}" \
48 MANDIR="%{_mandir}" \
49 PREFIX="%{_prefix}" \
50 DESTDIR=$RPM_BUILD_ROOT
51
52%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvterm.a
53%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvterm.la
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%post -p /sbin/ldconfig
59%postun -p /sbin/ldconfig
60
61%files
62%defattr(644,root,root,755)
63%doc LICENSE
64%attr(755,root,root) %{_bindir}/unterm
65%attr(755,root,root) %{_bindir}/vterm-ctrl
66%attr(755,root,root) %{_bindir}/vterm-dump
67%attr(755,root,root) %{_libdir}/libvterm.so.*.*.*
68%ghost %{_libdir}/libvterm.so.0
69
70%files devel
71%defattr(644,root,root,755)
72%{_includedir}/vterm.h
73%{_includedir}/vterm_keycodes.h
74%{_libdir}/libvterm.so
75%{_pkgconfigdir}/vterm.pc
This page took 0.171669 seconds and 4 git commands to generate.