2015-12-05 14:28:59 +00:00
|
|
|
#
|
|
|
|
# spec file for package libvterm
|
|
|
|
#
|
2023-01-20 21:00:56 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-12-05 14:28:59 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-09-17 08:59:59 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-12-05 14:28:59 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-12-05 15:02:59 +00:00
|
|
|
%define sover 0
|
2020-03-31 17:22:37 +00:00
|
|
|
%{?!make_build:%define make_build %{__make} %{_make_output_sync} %{?_smp_mflags} %{_make_verbose}}
|
2020-03-31 17:36:47 +00:00
|
|
|
%{?!_make_output_sync:%define _make_output_sync %(! %{__make} --version -O >/dev/null 2>&1 || echo -O)}
|
2020-03-31 17:41:25 +00:00
|
|
|
%{?!_make_verbose:%define _make_verbose V=1 VERBOSE=1}
|
2020-03-31 17:22:37 +00:00
|
|
|
|
2015-12-05 14:28:59 +00:00
|
|
|
Name: libvterm
|
2023-12-19 17:36:25 +00:00
|
|
|
Version: 0.3.3
|
2015-12-05 14:28:59 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator
|
|
|
|
License: MIT
|
2015-12-05 15:41:30 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-09-17 08:59:59 +00:00
|
|
|
URL: https://launchpad.net/libvterm
|
2022-10-03 17:41:01 +00:00
|
|
|
Source: https://launchpad.net/libvterm/trunk/v0.3/+download/libvterm-%{version}.tar.gz
|
2015-12-05 14:28:59 +00:00
|
|
|
BuildRequires: libtool
|
2017-05-28 23:06:46 +00:00
|
|
|
BuildRequires: pkgconfig
|
2015-12-05 14:28:59 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
An abstract C99 library which implements a VT220 or xterm-like terminal
|
2015-12-05 15:41:30 +00:00
|
|
|
emulator.
|
2015-12-05 14:28:59 +00:00
|
|
|
|
2015-12-05 15:02:59 +00:00
|
|
|
%package -n %{name}%{sover}
|
2015-12-05 14:28:59 +00:00
|
|
|
Summary: Shared library package of libvterm
|
2015-12-05 15:02:59 +00:00
|
|
|
Group: System/Libraries
|
2015-12-05 14:28:59 +00:00
|
|
|
|
2015-12-05 15:02:59 +00:00
|
|
|
%description -n %{name}%{sover}
|
2015-12-05 15:41:30 +00:00
|
|
|
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.
|
2015-12-05 14:28:59 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files of libvterm
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-12-05 15:02:59 +00:00
|
|
|
Requires: %{name}%{sover} = %{version}
|
2015-12-05 14:28:59 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the development files of libvterm.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Tools for libvterm
|
2015-12-05 15:02:59 +00:00
|
|
|
Group: System/Console
|
2015-12-05 14:28:59 +00:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
This package contains tools for libvterm.
|
|
|
|
|
|
|
|
%prep
|
2020-03-31 17:02:43 +00:00
|
|
|
%setup -q
|
2015-12-05 14:28:59 +00:00
|
|
|
|
|
|
|
%build
|
2019-09-18 16:30:45 +00:00
|
|
|
%make_build PREFIX=%{_prefix} \
|
2015-12-05 14:28:59 +00:00
|
|
|
LIBDIR=%{_libdir} \
|
2019-09-18 16:30:45 +00:00
|
|
|
CFLAGS="%{optflags}"
|
2015-12-05 14:28:59 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make PREFIX=%{_prefix} \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
DESTDIR=%{buildroot} \
|
|
|
|
install
|
|
|
|
|
2015-12-05 15:02:59 +00:00
|
|
|
# Remove libtool files.
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
# Remove static library file.
|
2015-12-05 14:28:59 +00:00
|
|
|
rm -vf %{buildroot}%{_libdir}/%{name}.a
|
|
|
|
|
2022-10-03 17:41:01 +00:00
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
2015-12-05 15:02:59 +00:00
|
|
|
%post -n %{name}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
2015-12-05 14:28:59 +00:00
|
|
|
|
2015-12-05 15:02:59 +00:00
|
|
|
%files -n %{name}%{sover}
|
2019-09-17 08:59:59 +00:00
|
|
|
%license LICENSE
|
2015-12-05 14:28:59 +00:00
|
|
|
%{_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
|