commit 534a5e591ab73057e7a29d5bf8b5ce5d5ac252dc9157d0823a4c7b46313f6937 Author: Jan Engelhardt Date: Sat Apr 2 11:26:54 2022 +0000 Accepting request 966300 from home:jonapap Request to use devel:libraries:c_c++ as the devel project for yascreen. yascreen is a dependency for bpfmon, which I'm submitting soon. OBS-URL: https://build.opensuse.org/request/show/966300 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/yascreen?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..c95b143 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + 1.86 + https://github.com/bbonev/yascreen + git + enable + .* + yascreen + + + *.tar + xz + + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..3d3deeb --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/bbonev/yascreen + bb68fe77f45f5dc766e5c9f26185c71b8dae53f7 \ No newline at end of file diff --git a/yascreen-1.86.tar.xz b/yascreen-1.86.tar.xz new file mode 100644 index 0000000..8fc2219 --- /dev/null +++ b/yascreen-1.86.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b2587ed4917448afee6631195f4b242c392512c220f30fa2d115b781fc36a0a +size 34508 diff --git a/yascreen.changes b/yascreen.changes new file mode 100644 index 0000000..f02b937 --- /dev/null +++ b/yascreen.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Jan 19 17:28:38 UTC 2022 - Jonathan Papineau + +- Initial packaging of yascreen 1.86 diff --git a/yascreen.spec b/yascreen.spec new file mode 100644 index 0000000..dd37aff --- /dev/null +++ b/yascreen.spec @@ -0,0 +1,102 @@ +# +# spec file for package yascreen +# +# Copyright (c) 2022 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: yascreen +Version: 1.86 +Release: 0 +Summary: Yet Another Screen Library (lib(n)curses alternative) +License: LGPL-3.0-only +URL: https://github.com/bbonev/yascreen/ +Source: %{url}releases/download/v%{version}/yascreen-%{version}.tar.xz + +BuildRequires: gcc +BuildRequires: make +BuildRequires: go-md2man + +%description +lib(n)curses alternative oriented towards modern terminals. + +Suitable for developing terminal applications or daemons with +telnet access and terminal support. + +Main features + + * small footprint + * does not have external dependencies + * allows both internal and external event loop + * allows stdin/stdout or external input/output (can work over socket) + * supports basic set of telnet sequences, making it suitable for built-in + terminal interfaces for daemons + * supports a limited set of input keystroke sequences + * fully Unicode compatible (parts of this depend on wcwidth in libc) + * supports utf8 verification of input + * relies only on a limited subset of ANSI/xterm ESC sequences, making it + compatible with mostly all modern terminals (inspired by linenoise) + * there is no curses API and ancient terminal compatibility, hence less bloat + * clean API with opaque private data, usable from C/C++ + +%package -n libyascreen0 +Summary: Yet Another Screen Library (lib(n)curses alternative) +Provides: %{name} = %{version}-%{release} +Obsoletes: %{name} < %{version}-%{release} + +%description -n libyascreen0 +lib(n)curses alternative oriented towards modern terminals. + +Suitable for developing terminal applications or daemons with +telnet access and terminal support. + +%package devel +Summary: Development files for yascreen +Requires: libyascreen0 = %{version} + +%description devel +This package contains the header files and libraries needed to +compile applications or shared objects that use yascreen. + +%prep +%setup -q + +%build +export CFLAGS="%{optflags}" +%make_build + +%install +%make_install PREFIX=%{_prefix} LIBDIR=/%{_lib}/ +# allow debug info to be generated +chmod +x %{buildroot}%{_libdir}/libyascreen.so.0.0.0 +# remove unpackaged static library +rm -f %{buildroot}%{_libdir}/libyascreen.a + +%post -n libyascreen0 -p /sbin/ldconfig +%postun -n libyascreen0 -p /sbin/ldconfig + +%files -n libyascreen0 +%license LICENSE +%{_libdir}/libyascreen.so.0 +%{_libdir}/libyascreen.so.0.0.0 + +%files devel +%doc README.md +%{_libdir}/libyascreen.so +%{_libdir}/pkgconfig/yascreen.pc +%{_mandir}/man3/yascreen.3* +%{_includedir}/yascreen.h + + +%changelog