SHA256
1
0
forked from pool/libt3key

[info=16bc2e6b489fa724c2da934da70b44182f0dc70a87965a14c1a33684e665f666]

OBS-URL: https://build.opensuse.org/package/show/editors/libt3key?expand=0&rev=13
This commit is contained in:
OBS User unknown 2024-11-02 15:17:42 +00:00 committed by Git OBS Bridge
parent 6cedaadd30
commit eb2731d138
5 changed files with 48 additions and 13 deletions

View File

@ -1,4 +1,4 @@
mtime: 1576927930 mtime: 1730560648
commit: c4af1772f79e6283d70df22fed5a35c4a874b399e81925511a9e80c2271d269d commit: 16bc2e6b489fa724c2da934da70b44182f0dc70a87965a14c1a33684e665f666
url: https://src.opensuse.org/jengelh/libt3key url: https://src.opensuse.org/jengelh/libt3key
revision: master revision: master

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:1526cd7369e3d36e828f87f52f1d3cfabafa920e9620150defbbbae1cd570254 oid sha256:c15f7ed8a5a51bf47b6ddbf120c00bf1d5067546d4f36c0ee5bb7550d24ad09f
size 256 size 256

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Nov 2 15:11:49 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Add ncurses.patch to fix FTBFS with gcc-14
- Split non-library files from libt3key to restore SLPP conformance
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 19 23:50:58 UTC 2019 - Jan Engelhardt <jengelh@inai.de> Thu Dec 19 23:50:58 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package libt3key # spec file for package libt3key
# #
# Copyright (c) 2019 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -24,11 +24,11 @@ Summary: The Tilde Toolkit's terminal key sequence database library
License: GPL-3.0-only License: GPL-3.0-only
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
URL: https://os.ghalkes.nl/t3/libt3key.html URL: https://os.ghalkes.nl/t3/libt3key.html
#Git-Clone: https://github.com/gphalkes/t3key #Git-Clone: https://github.com/gphalkes/t3key
Source: https://os.ghalkes.nl/dist/%name-%version.tar.bz2 Source: https://os.ghalkes.nl/dist/%name-%version.tar.bz2
Source2: https://os.ghalkes.nl/dist/%name-%version.tar.bz2.sig Source2: https://os.ghalkes.nl/dist/%name-%version.tar.bz2.sig
Source3: %name.keyring Source3: %name.keyring
Patch1: ncurses.patch
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gettext-tools BuildRequires: gettext-tools
BuildRequires: libtool BuildRequires: libtool
@ -46,6 +46,7 @@ emulators, to key symbols.
%package -n %lname %package -n %lname
Summary: The Tilde Toolkit's terminal key sequence database library Summary: The Tilde Toolkit's terminal key sequence database library
Group: System/Libraries Group: System/Libraries
Requires: %name-data
%description -n %lname %description -n %lname
libt3key is library that provides a database of mappings from escape libt3key is library that provides a database of mappings from escape
@ -65,6 +66,13 @@ emulators, to key symbols.
This subpackage contains libraries and header files for developing This subpackage contains libraries and header files for developing
applications that want to make use of libt3key. applications that want to make use of libt3key.
%package data
Summary: Terminal capability descriptions for libt3key
Group: System/Base
%description data
Terminal capability descriptions for libt3key.
%package utils %package utils
Summary: Utilities for working with libt3key terminal descriptions Summary: Utilities for working with libt3key terminal descriptions
Group: System/Base Group: System/Base
@ -77,29 +85,29 @@ emulators, to key symbols.
This subpackage contains the t3learnkeys and t3keyc programs. This subpackage contains the t3learnkeys and t3keyc programs.
%prep %prep
%setup -q %autosetup -p1
%build %build
export CC=gcc export CC=gcc
%configure --docdir="%_docdir/%name" %configure --docdir="%_docdir/%name"
make %{?_smp_mflags} %make_build
%install %install
%make_install %make_install
rm -f "%buildroot/%_libdir"/*.la rm -f "%buildroot/%_libdir"/*.la
chmod a+x "%buildroot/%_libdir"/*.so*
%fdupes %buildroot/%_prefix %fdupes %buildroot/%_prefix
%post -p /sbin/ldconfig -n %lname %ldconfig_scriptlets -n %lname
%postun -p /sbin/ldconfig -n %lname
%files -n %lname %files -n %lname
%defattr(-,root,root)
%_libdir/libt3key.so.1* %_libdir/libt3key.so.1*
%doc COPYING %license COPYING
%files data
%_datadir/%lname/ %_datadir/%lname/
%files devel %files devel
%defattr(-,root,root)
%_includedir/t3/ %_includedir/t3/
%_libdir/libt3key.so %_libdir/libt3key.so
%_libdir/pkgconfig/libt3key.pc %_libdir/pkgconfig/libt3key.pc
@ -107,7 +115,6 @@ rm -f "%buildroot/%_libdir"/*.la
%exclude %_docdir/%name/COPYING %exclude %_docdir/%name/COPYING
%files utils %files utils
%defattr(-,root,root)
%_bindir/t3* %_bindir/t3*
%_mandir/man1/t3*.1* %_mandir/man1/t3*.1*

22
ncurses.patch Normal file
View File

@ -0,0 +1,22 @@
From: Jan Engelhardt <ej@inai.de>
Date: 2024-11-02 16:06:53.256545988 +0100
References: https://github.com/gphalkes/t3key/pull/2
.config.c:8:13: error: implicit declaration of function setupterm; did you mean set_term? [-Wimplicit-function-declaration]
---
config.pkg | 1 +
1 file changed, 1 insertion(+)
Index: libt3key-0.2.10/config.pkg
===================================================================
--- libt3key-0.2.10.orig/config.pkg
+++ libt3key-0.2.10/config.pkg
@@ -144,6 +144,7 @@ EOF
#include <stdio.h>
#include <stdlib.h>
#include <curses.h>
+#include <term.h>
int main(int argc, char *argv[]) {
int args[9], error, fd;