From 79e54b98b2a516c88ef5b769e3c8414609ab0d9454a47c2e7ef192692c9f3eb9 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 17 May 2024 06:01:54 +0000 Subject: [PATCH] I want to maintain tvision in Factory and would like to use devel:libraries:c_c++ as the devel/feeder project. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tvision?expand=0&rev=1 --- .gitattributes | 23 +++ ...83e0fa8685c199563a466cdc221e8d9b85c.tar.gz | 3 + tvision.changes | 44 ++++++ tvision.spec | 141 ++++++++++++++++++ 4 files changed, 211 insertions(+) create mode 100644 .gitattributes create mode 100644 tvision-d1fa783e0fa8685c199563a466cdc221e8d9b85c.tar.gz create mode 100644 tvision.changes create mode 100644 tvision.spec 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/tvision-d1fa783e0fa8685c199563a466cdc221e8d9b85c.tar.gz b/tvision-d1fa783e0fa8685c199563a466cdc221e8d9b85c.tar.gz new file mode 100644 index 0000000..7ae1362 --- /dev/null +++ b/tvision-d1fa783e0fa8685c199563a466cdc221e8d9b85c.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abcc4b2129014806ffd754a3f928b1c2def30a4909b2fc842042bf8cd2f6d7fd +size 845745 diff --git a/tvision.changes b/tvision.changes new file mode 100644 index 0000000..654cc66 --- /dev/null +++ b/tvision.changes @@ -0,0 +1,44 @@ +------------------------------------------------------------------- +Sat May 11 11:22:27 UTC 2024 - Julius Enriquez + +- Switch subpackage groups to Development/Languages/C and C++ + +------------------------------------------------------------------- +Sat May 11 11:10:50 UTC 2024 - Julius Enriquez + +- Change group to Development/Languages/C and C++ + +------------------------------------------------------------------- +Sat May 11 11:06:13 UTC 2024 - Julius Enriquez + +- Remove binary stripping + +------------------------------------------------------------------- +Sat May 11 09:27:24 UTC 2024 - Julius Enriquez + +- Add %check- + +------------------------------------------------------------------- +Sat May 11 08:57:42 UTC 2024 - Julius Enriquez + +- Disable LTO, working spec file + +------------------------------------------------------------------- +Sat May 11 08:03:53 UTC 2024 - Julius Enriquez + +- Remove tvision package, move everything except demo binaries to tvision-devel + +------------------------------------------------------------------- +Sat May 11 03:00:53 UTC 2024 - Julius Enriquez + +- Split into devel and demo subpackages + +------------------------------------------------------------------- +Fri May 10 07:13:24 UTC 2024 - Julius Enriquez + +- Replace ZIP archive with tarball + +------------------------------------------------------------------- +Fri May 10 06:39:27 UTC 2024 - Julius Enriquez + +- Initial spec and source for tvision diff --git a/tvision.spec b/tvision.spec new file mode 100644 index 0000000..2d56f34 --- /dev/null +++ b/tvision.spec @@ -0,0 +1,141 @@ +# +# spec file for package tvision +# +# Copyright (c) 2024 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/ +# + + +%bcond_without test +Name: tvision +Release: 0 +Version: d1fa783e0fa8685c199563a466cdc221e8d9b85c +Summary: Modern port of Turbo Vision 2.0 +Group: Development/Languages/C and C++ +License: MIT +URL: https://github.com/magiblot/tvision +Source0: %{name}-%{version}.tar.gz +BuildRequires: binutils +BuildRequires: gcc-c++ +BuildRequires: cmake +BuildRequires: make +BuildRequires: pkgconfig(ncurses) +BuildRequires: gtest +Requires: pkgconfig(ncurses) +Requires: gpm + +%description +A modern port of Turbo Vision 2.0, the classical +framework for text-based user interfaces. Now +cross-platform and with Unicode support. + +Turbo Vision lets application developers avoid +writing platform-specific workarounds for TUI apps. +It attempts to reproduce consistent results everywhere, +without developers worrying about terminal capabilities, +direct I/O, ifdefs, and other platform quirks. + +Turbo Vision provides many widget classes (also known +as views), including resizable, overlapping windows, +pull-down menus, dialog boxes, buttons, scroll bars, +input boxes, check boxes and radio buttons. You may +use and extend these; but even if you prefer creating +your own, Turbo Vision already handles event dispatching, +display of fullwidth Unicode characters, etc. + +%package devel +Summary: Headers for Turbo Vision 2.0 +Group: Development/Languages/C and C++ + +%description devel +This package contains the library, headers, and help file +compiler from the modernised Turbo Vision 2.0 port. + +A modern port of Turbo Vision 2.0, the classical +framework for text-based user interfaces. Now +cross-platform and with Unicode support. + +Turbo Vision lets application developers avoid +writing platform-specific workarounds for TUI apps. +It attempts to reproduce consistent results everywhere, +without developers worrying about terminal capabilities, +direct I/O, ifdefs, and other platform quirks. + +Turbo Vision provides many widget classes (also known +as views), including resizable, overlapping windows, +pull-down menus, dialog boxes, buttons, scroll bars, +input boxes, check boxes and radio buttons. You may +use and extend these; but even if you prefer creating +your own, Turbo Vision already handles event dispatching, +display of fullwidth Unicode characters, etc. + +%package demos +Summary: Demo programs of Turbo Vision 2.0 +Group: Development/Languages/C and C++ + +%description -n %{name}-demos +This package contains demo programs showing off the +modernised Turbo Vision 2.0 port. + +A modern port of Turbo Vision 2.0, the classical +framework for text-based user interfaces. Now +cross-platform and with Unicode support. + +Turbo Vision lets application developers avoid +writing platform-specific workarounds for TUI apps. +It attempts to reproduce consistent results everywhere, +without developers worrying about terminal capabilities, +direct I/O, ifdefs, and other platform quirks. + +Turbo Vision provides many widget classes (also known +as views), including resizable, overlapping windows, +pull-down menus, dialog boxes, buttons, scroll bars, +input boxes, check boxes and radio buttons. You may +use and extend these; but even if you prefer creating +your own, Turbo Vision already handles event dispatching, +display of fullwidth Unicode characters, etc. + +%prep +%setup -q + +%build +# Disable LTO due to a lto-no-text-in-archive problem with libtvision.a +%global _lto_cflags %nil + +%cmake +%cmake_build + +%install +%cmake_install + +%check +pushd test/ +%cmake +%cmake_build +popd + +%files devel +%defattr(-,root,root) +%license COPYRIGHT +%doc README.md +%{_prefix}/lib/libtvision.a +%{_bindir}/tvhc +%{_includedir}/* +%{_prefix}/lib/cmake +%{_prefix}/lib/cmake/* + +%files -n %{name}-demos +%{_bindir}/tvdemo +%{_bindir}/tvedit + +%changelog