SHA256
8
0
forked from pool/libvterm
Files
libvterm/libvterm.spec

105 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package libvterm
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Accepting request 730249 from home:mcepl:branches:devel:libraries:c_c++ - Update to 0~bzr755: - 755 t/run-test.pl option to abort on first fail - 754 Accept convenience formatting in ?screen_chars assertions; makes unit tests more readable - 753 Include test script line number in t/run-test.pl output - 752 Add a short unit test that resize on altscreen at least doesn't crash - 751 Only enable altscreen during unit tests that need it - 750 Better handling of resize to try to avoid the final memmove(), and not drag scrollback in unnecessarily - 749 Can't lazy-allocate state->lineinfos[BUFIDX_ALTSCREEN] because that allocs during byte run - 748 Initial hack at tracking 'continuation' marks per line in lineinfo - 747 Allow run-test.pl to cope with empty assertion results - 746 Be sure to clear DWL/DHL status for blank lines caused by scroll - 745 Pass 'state fields' as a struct into resize callback in case of other things it needs to edit - 744 Remember to store a state->lineinfo array for both buffers - 743 Do all the initialising of VTermState in vterm_state_new() - 742 Rename realloc_buffer() to just alloc_buffer() since it doesn't need to realloc now - 741 Rewrite of resize handling logic to hopefully cope much better with reflow - 739 Recognise an __END__ marker in a unit test file - 738 Add a version check macro - 737 Bump version to 0.1 - 736 Recognise SGR 4:3 for curly underline - 735 Recognise subparameters in SGR 4:x to set off/single/double - 734 Define some enum{} constants for pen.underline field values - 733 Run unit tests on outfunc instead of buffering logic; truncation test is no longer valid now OBS-URL: https://build.opensuse.org/request/show/730249 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvterm?expand=0&rev=11
2019-09-17 08:59:59 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define sover 0
%{?!make_build:%define make_build %{__make} %{_make_output_sync} %{?_smp_mflags} %{_make_verbose}}
%{?!_make_output_sync:%define _make_output_sync %(! %{__make} --version -O >/dev/null 2>&1 || echo -O)}
%{?!_make_verbose:%define _make_verbose V=1 VERBOSE=1}
Name: libvterm
Version: 0.3.3
Release: 0
Summary: An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator
License: MIT
Group: Development/Libraries/C and C++
Accepting request 730249 from home:mcepl:branches:devel:libraries:c_c++ - Update to 0~bzr755: - 755 t/run-test.pl option to abort on first fail - 754 Accept convenience formatting in ?screen_chars assertions; makes unit tests more readable - 753 Include test script line number in t/run-test.pl output - 752 Add a short unit test that resize on altscreen at least doesn't crash - 751 Only enable altscreen during unit tests that need it - 750 Better handling of resize to try to avoid the final memmove(), and not drag scrollback in unnecessarily - 749 Can't lazy-allocate state->lineinfos[BUFIDX_ALTSCREEN] because that allocs during byte run - 748 Initial hack at tracking 'continuation' marks per line in lineinfo - 747 Allow run-test.pl to cope with empty assertion results - 746 Be sure to clear DWL/DHL status for blank lines caused by scroll - 745 Pass 'state fields' as a struct into resize callback in case of other things it needs to edit - 744 Remember to store a state->lineinfo array for both buffers - 743 Do all the initialising of VTermState in vterm_state_new() - 742 Rename realloc_buffer() to just alloc_buffer() since it doesn't need to realloc now - 741 Rewrite of resize handling logic to hopefully cope much better with reflow - 739 Recognise an __END__ marker in a unit test file - 738 Add a version check macro - 737 Bump version to 0.1 - 736 Recognise SGR 4:3 for curly underline - 735 Recognise subparameters in SGR 4:x to set off/single/double - 734 Define some enum{} constants for pen.underline field values - 733 Run unit tests on outfunc instead of buffering logic; truncation test is no longer valid now OBS-URL: https://build.opensuse.org/request/show/730249 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvterm?expand=0&rev=11
2019-09-17 08:59:59 +00:00
URL: https://launchpad.net/libvterm
Accepting request 1007734 from home:mcepl:branches:editors - Update to 0.3.0 (unfortunately, upstream doesn't provide correct changelog so this is just log of VCS): - Pass lineinfos into screen resize callback; make it responsible for reshaping them - getchar() into unsigned char in vterm-ctrl.c to avoid complaints of comparison signedness (LP1894806) - Avoid remaining VLA by bounding the combining-char search to the max supported chars per cell - Avoid putting a potentially-unbounded VLA on the stack as temporary working space for character decode, by using the tmpbuffer in on_text instead - Set a much larger default out/tmpbuffer size (4096bytes), because now a size-constrained caller could make them smaller - Permit overriding size of outbuffer / tmpbuffer as builder params - Create struct VTermBuilder and vterm_build() - VTermAllocator field can be const in struct VTerm - Store INCDIR directly in .pc file rather than indirecting it via PREFIX - Version bump to v0.2 - Selection send and recv should use independent partial-state storage - Also support sending the selection - Replace vterm_push_output_sprintf_dcs with a more generic _str version that can independently control introduction C1 vs terminating ST - Add a selection callback for query - Don't emit any mouse sequences when mouse reporting disabled - Remember to reset mouse flags as part of overall vterm_state_reset() OBS-URL: https://build.opensuse.org/request/show/1007734 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvterm?expand=0&rev=22
2022-10-03 17:41:01 +00:00
Source: https://launchpad.net/libvterm/trunk/v0.3/+download/libvterm-%{version}.tar.gz
BuildRequires: libtool
BuildRequires: pkgconfig
%description
An abstract C99 library which implements a VT220 or xterm-like terminal
emulator.
%package -n %{name}%{sover}
Summary: Shared library package of libvterm
Group: System/Libraries
%description -n %{name}%{sover}
An abstract C99 library which implements a VT220 or xterm-like
terminal emulator. It does not use any particular graphics toolkit or
output system. Instead, it invokes callback function pointers that
its embedding program should provide it to draw on its behalf.
%package devel
Summary: Development files of libvterm
Group: Development/Libraries/C and C++
Requires: %{name}%{sover} = %{version}
%description devel
This package contains the development files of libvterm.
%package tools
Summary: Tools for libvterm
Group: System/Console
%description tools
This package contains tools for libvterm.
%prep
%setup -q
%build
%make_build PREFIX=%{_prefix} \
LIBDIR=%{_libdir} \
CFLAGS="%{optflags}"
%install
make PREFIX=%{_prefix} \
LIBDIR=%{_libdir} \
DESTDIR=%{buildroot} \
install
# Remove libtool files.
find %{buildroot} -type f -name "*.la" -delete -print
# Remove static library file.
rm -vf %{buildroot}%{_libdir}/%{name}.a
Accepting request 1007734 from home:mcepl:branches:editors - Update to 0.3.0 (unfortunately, upstream doesn't provide correct changelog so this is just log of VCS): - Pass lineinfos into screen resize callback; make it responsible for reshaping them - getchar() into unsigned char in vterm-ctrl.c to avoid complaints of comparison signedness (LP1894806) - Avoid remaining VLA by bounding the combining-char search to the max supported chars per cell - Avoid putting a potentially-unbounded VLA on the stack as temporary working space for character decode, by using the tmpbuffer in on_text instead - Set a much larger default out/tmpbuffer size (4096bytes), because now a size-constrained caller could make them smaller - Permit overriding size of outbuffer / tmpbuffer as builder params - Create struct VTermBuilder and vterm_build() - VTermAllocator field can be const in struct VTerm - Store INCDIR directly in .pc file rather than indirecting it via PREFIX - Version bump to v0.2 - Selection send and recv should use independent partial-state storage - Also support sending the selection - Replace vterm_push_output_sprintf_dcs with a more generic _str version that can independently control introduction C1 vs terminating ST - Add a selection callback for query - Don't emit any mouse sequences when mouse reporting disabled - Remember to reset mouse flags as part of overall vterm_state_reset() OBS-URL: https://build.opensuse.org/request/show/1007734 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvterm?expand=0&rev=22
2022-10-03 17:41:01 +00:00
%check
make test
%post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{sover} -p /sbin/ldconfig
%files -n %{name}%{sover}
Accepting request 730249 from home:mcepl:branches:devel:libraries:c_c++ - Update to 0~bzr755: - 755 t/run-test.pl option to abort on first fail - 754 Accept convenience formatting in ?screen_chars assertions; makes unit tests more readable - 753 Include test script line number in t/run-test.pl output - 752 Add a short unit test that resize on altscreen at least doesn't crash - 751 Only enable altscreen during unit tests that need it - 750 Better handling of resize to try to avoid the final memmove(), and not drag scrollback in unnecessarily - 749 Can't lazy-allocate state->lineinfos[BUFIDX_ALTSCREEN] because that allocs during byte run - 748 Initial hack at tracking 'continuation' marks per line in lineinfo - 747 Allow run-test.pl to cope with empty assertion results - 746 Be sure to clear DWL/DHL status for blank lines caused by scroll - 745 Pass 'state fields' as a struct into resize callback in case of other things it needs to edit - 744 Remember to store a state->lineinfo array for both buffers - 743 Do all the initialising of VTermState in vterm_state_new() - 742 Rename realloc_buffer() to just alloc_buffer() since it doesn't need to realloc now - 741 Rewrite of resize handling logic to hopefully cope much better with reflow - 739 Recognise an __END__ marker in a unit test file - 738 Add a version check macro - 737 Bump version to 0.1 - 736 Recognise SGR 4:3 for curly underline - 735 Recognise subparameters in SGR 4:x to set off/single/double - 734 Define some enum{} constants for pen.underline field values - 733 Run unit tests on outfunc instead of buffering logic; truncation test is no longer valid now OBS-URL: https://build.opensuse.org/request/show/730249 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvterm?expand=0&rev=11
2019-09-17 08:59:59 +00:00
%license LICENSE
%{_libdir}/%{name}.so.*
%files devel
%{_includedir}/vterm*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/vterm.pc
%files tools
%{_bindir}/unterm
%{_bindir}/vterm-ctrl
%{_bindir}/vterm-dump
%changelog