2015-11-02 11:40:45 +00:00
|
|
|
#
|
|
|
|
# spec file for package libtermkey
|
|
|
|
#
|
2020-10-28 15:27:03 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2015-11-02 11:40:45 +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.
|
|
|
|
|
2018-11-08 08:19:22 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-11-02 11:40:45 +00:00
|
|
|
#
|
2011-03-24 08:55:50 +00:00
|
|
|
|
|
|
|
|
2018-11-08 08:19:22 +00:00
|
|
|
%define sover 1
|
2015-11-02 11:40:45 +00:00
|
|
|
Name: libtermkey
|
2020-10-28 15:27:03 +00:00
|
|
|
Version: 0.22
|
2015-11-02 11:40:45 +00:00
|
|
|
Release: 0
|
2018-11-08 08:19:22 +00:00
|
|
|
Summary: Library for processing of keyboard entry from terminal-based programs
|
2015-11-02 11:40:45 +00:00
|
|
|
License: MIT
|
2018-11-08 08:19:22 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-10-28 15:27:03 +00:00
|
|
|
URL: http://www.leonerd.org.uk/code/libtermkey/
|
2015-11-02 11:40:45 +00:00
|
|
|
Source: http://www.leonerd.org.uk/code/libtermkey/libtermkey-%{version}.tar.gz
|
|
|
|
Patch0: fix-syntax.patch
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: make
|
2022-04-19 12:07:10 +00:00
|
|
|
BuildRequires: unibilium-devel
|
2015-11-02 11:40:45 +00:00
|
|
|
BuildRequires: pkgconfig
|
2011-03-24 08:55:50 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This library allows easy processing of keyboard entry from terminal-based
|
|
|
|
programs. It handles all the necessary logic to recognise special keys, UTF-8
|
|
|
|
combining, and so on, with a simple interface.
|
|
|
|
|
2018-11-08 08:19:22 +00:00
|
|
|
%package -n %{name}%{sover}
|
|
|
|
Summary: Library for processing of keyboard entry from terminal-based programs
|
2015-11-02 11:40:45 +00:00
|
|
|
Group: System/Libraries
|
2011-03-24 08:55:50 +00:00
|
|
|
|
2018-11-08 08:19:22 +00:00
|
|
|
%description -n %{name}%{sover}
|
2011-03-24 08:55:50 +00:00
|
|
|
This library allows easy processing of keyboard entry from terminal-based
|
|
|
|
programs. It handles all the necessary logic to recognise special keys, UTF-8
|
|
|
|
combining, and so on, with a simple interface.
|
|
|
|
|
|
|
|
%package devel
|
2018-11-08 08:19:22 +00:00
|
|
|
Summary: Development files for libtermkey, a keyboard entry processing library
|
2015-11-02 11:40:45 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-11-08 08:19:22 +00:00
|
|
|
Requires: %{name}%{sover} = %{version}
|
2015-11-02 11:40:45 +00:00
|
|
|
Requires: ncurses-devel
|
|
|
|
Requires: pkgconfig
|
2011-03-24 08:55:50 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This library allows easy processing of keyboard entry from terminal-based
|
|
|
|
programs. It handles all the necessary logic to recognise special keys, UTF-8
|
|
|
|
combining, and so on, with a simple interface.
|
|
|
|
|
|
|
|
%prep
|
2024-03-01 13:24:48 +00:00
|
|
|
%autosetup -p1
|
2011-03-24 08:55:50 +00:00
|
|
|
|
|
|
|
%build
|
2015-11-02 11:40:45 +00:00
|
|
|
make %{?_smp_mflags} \
|
2011-03-24 08:55:50 +00:00
|
|
|
CFLAGS="%{optflags}" \
|
|
|
|
PREFIX="%{_prefix}" \
|
|
|
|
LIBDIR="%{_libdir}" \
|
|
|
|
INCDIR="%{_includedir}" \
|
|
|
|
MANDIR="%{_mandir}"
|
|
|
|
|
|
|
|
%install
|
2015-11-02 11:40:45 +00:00
|
|
|
make \
|
2011-03-24 08:55:50 +00:00
|
|
|
CFLAGS="%{optflags}" \
|
|
|
|
PREFIX="%{_prefix}" \
|
|
|
|
LIBDIR="%{_libdir}" \
|
|
|
|
INCDIR="%{_includedir}" \
|
|
|
|
MANDIR="%{_mandir}" \
|
2015-11-02 11:40:45 +00:00
|
|
|
DESTDIR=%{buildroot} \
|
2011-03-24 08:55:50 +00:00
|
|
|
install
|
|
|
|
|
2016-01-23 09:24:55 +00:00
|
|
|
# Remove unneeded files.
|
2015-11-02 11:40:45 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2016-01-23 09:24:55 +00:00
|
|
|
find %{buildroot} -type f -name "*.a" -delete -print
|
2011-03-24 08:55:50 +00:00
|
|
|
|
2018-11-08 08:19:22 +00:00
|
|
|
%post -n %{name}%{sover} -p /sbin/ldconfig
|
2015-11-02 11:40:45 +00:00
|
|
|
|
2018-11-08 08:19:22 +00:00
|
|
|
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
2011-03-24 08:55:50 +00:00
|
|
|
|
2018-11-08 08:19:22 +00:00
|
|
|
%files -n %{name}%{sover}
|
2011-03-24 08:55:50 +00:00
|
|
|
%defattr(-,root,root)
|
2020-10-28 15:27:03 +00:00
|
|
|
%license LICENSE
|
2018-11-08 08:19:22 +00:00
|
|
|
%{_libdir}/libtermkey.so.%{sover}
|
|
|
|
%{_libdir}/libtermkey.so.%{sover}.*
|
2011-03-24 08:55:50 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/termkey.h
|
|
|
|
%{_libdir}/libtermkey.so
|
|
|
|
%{_libdir}/pkgconfig/termkey.pc
|
- update to 0.17
- added TERMKEY_FORMAT_SPACEMOD, TERMKEY_FORMAT_LOWERMOD, TERMKEY_FORMAT_LOWERSPACE and TERMKEY_FORMAT_URWID shortcut; better detection of UTF-8 locales; abstract C compiler from Makefile by using $(CC).
- changes: recognise ANSI and DEC mode reports, extract and yield real key events for unrecognised CSI sequences; added termkey_interpret_{modereport,csi}; bugfix handling of CPR vs F3.
- recognise SGR and rxvt mouse encodings, recognise cursor position report - (0.15a includes position report bugfix; 0.15b includes 'make install' portability fix)
- added termkey_{start,stop}, termkey_is_started, ship unit tests in distribution tarball for downstream to use
- added termkey_new_abstract, termkey_{get,set}_buffer_size, use errno rather than fprintf() to stderr, optionally use libncursesw if unibilium fails
- added termkey_push_bytes, support filehandle-less (abstract) instances, many manpage improvements
- optionally use unibilium instead of curses
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtermkey?expand=0&rev=6
2015-05-18 17:19:59 +00:00
|
|
|
%{_mandir}/man3/termkey*.3%{ext_man}
|
|
|
|
%{_mandir}/man7/termkey.*
|
2011-03-24 08:55:50 +00:00
|
|
|
|
2018-05-23 13:51:10 +00:00
|
|
|
%changelog
|