SHA256
1
0
forked from pool/tvision

Accepting request 1177427 from home:win8linux

- Working spec file 
- Initial spec and source for tvision

Significantly cleaner changes file, dependencies have also been cleaned up, devel merged into devel-static, and a patch from an earlier revision has been removed due to being merged upstream:

https://github.com/magiblot/tvision/pull/163

OBS-URL: https://build.opensuse.org/request/show/1177427
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tvision?expand=0&rev=5
This commit is contained in:
Julius Enriquez 2024-05-29 02:45:15 +00:00 committed by Git OBS Bridge
parent 47a7819ea0
commit 293fc86d16
5 changed files with 17 additions and 190 deletions

View File

@ -1,53 +0,0 @@
diff -ruN a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -149,6 +149,8 @@
option(TV_BUILD_AVSCOLOR "Build AviSynth TermColor plugin" OFF)
+include(GNUInstallDirs)
+
tv_message_mp(STATUS "Install path: ${CMAKE_INSTALL_PREFIX}")
tv_message(STATUS "Build Examples: ${TV_BUILD_EXAMPLES}")
if (MAY_BUILD_USING_GPM)
diff -ruN a/examples/CMakeLists.txt b/examples/CMakeLists.txt
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -25,7 +25,7 @@
# Until CMake 3.13, 'install' only accepts targets defined
# in the current directory. So install from this function.
if (${app} IN_LIST TVINSTALLAPPS)
- install(TARGETS ${app} RUNTIME DESTINATION bin)
+ install(TARGETS ${app} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
endfunction()
diff -ruN a/source/CMakeLists.txt b/source/CMakeLists.txt
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -153,14 +153,14 @@
#
install(TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}-config
- ARCHIVE DESTINATION lib
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
)
# package configuration
install(EXPORT ${PROJECT_NAME}-config
- DESTINATION lib/cmake/${PROJECT_NAME}
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
NAMESPACE ${PROJECT_NAME}::
FILE ${PROJECT_NAME}-config.cmake
COMPONENT library
@@ -169,7 +169,7 @@
# includes
# ./include/tvision and children copied to destination/include/tvision etc...
#
-install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/tvision" DESTINATION include)
+install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/tvision" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
# Build optimization

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:878c39f5ab28bf868c5a3711f406a77b1b292c0db851c4ef70db44c2ffba8877
size 722120

3
tvision-0~git631.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bda76d912323fe6b6011ffd2be9d5bc66652d0bdecd2b51fb9ee7a4ef5608610
size 722060

View File

@ -1,80 +1,7 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Wed May 22 17:08:17 UTC 2024 - Julius Enriquez <win8linux@gmail.com> Wed May 29 02:38:31 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Changed patch to be compatible with osc - Working spec file
- Use correct library paths
-------------------------------------------------------------------
Wed May 22 16:50:53 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Add updated tarball
-------------------------------------------------------------------
Wed May 22 16:34:06 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Add patch to use GNUInstallDirs for CMake
-------------------------------------------------------------------
Tue May 21 18:30:58 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Split devel into devel and devel-static, put static lib in devel-static
- Move requires and suggests to subpackages
-------------------------------------------------------------------
Sun May 19 10:24:57 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Add CMake position-independent code build flag for libtvision.a
-------------------------------------------------------------------
Sat May 18 15:57:12 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Add -fPIC cflag for libtvision.a-
-------------------------------------------------------------------
Fri May 17 06:08:53 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Employ a _service file for git commit downloads
- Trim repetitive descriptions for size
-------------------------------------------------------------------
Sat May 11 11:22:27 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Switch subpackage groups to Development/Languages/C and C++
-------------------------------------------------------------------
Sat May 11 11:10:50 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Change group to Development/Languages/C and C++
-------------------------------------------------------------------
Sat May 11 11:06:13 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Remove binary stripping
-------------------------------------------------------------------
Sat May 11 09:27:24 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Add %check-
-------------------------------------------------------------------
Sat May 11 08:57:42 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Disable LTO, working spec file
-------------------------------------------------------------------
Sat May 11 08:03:53 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Remove tvision package, move everything except demo binaries to tvision-devel
-------------------------------------------------------------------
Sat May 11 03:00:53 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Split into devel and demo subpackages
-------------------------------------------------------------------
Fri May 10 07:13:24 UTC 2024 - Julius Enriquez <win8linux@gmail.com>
- Replace ZIP archive with tarball
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 10 06:39:27 UTC 2024 - Julius Enriquez <win8linux@gmail.com> Fri May 10 06:39:27 UTC 2024 - Julius Enriquez <win8linux@gmail.com>

View File

@ -16,16 +16,14 @@
# #
%bcond_without test
Name: tvision Name: tvision
Release: 0 Release: 0
Version: 0~git630 Version: 0~git631
Summary: Modern port of Turbo Vision 2.0 Summary: Modern port of Turbo Vision 2.0
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
License: MIT License: MIT
URL: https://github.com/magiblot/tvision URL: https://github.com/magiblot/tvision
Source: %{name}-%{version}.tar.xz Source: %{name}-%{version}.tar.xz
Patch1: Use-GNUInstallDirs.patch
%description %description
A modern port of Turbo Vision 2.0, the classical A modern port of Turbo Vision 2.0, the classical
@ -46,81 +44,38 @@ use and extend these; but even if you prefer creating
your own, Turbo Vision already handles event dispatching, your own, Turbo Vision already handles event dispatching,
display of fullwidth Unicode characters, etc. display of fullwidth Unicode characters, etc.
%package devel
Summary: Headers for Turbo Vision 2.0
Group: Development/Languages/C and C++
BuildRequires: binutils
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: make
BuildRequires: pkgconfig(ncurses)
BuildRequires: gtest
Suggests: gpm
Suggests: (xclip or xset)
%description devel
This package contains the 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, but with
Unicode support.
%package devel-static %package devel-static
Summary: Static library for Turbo Vision 2.0 Summary: Static library for Turbo Vision 2.0
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
BuildRequires: binutils BuildRequires: c++_compiler
BuildRequires: gcc-c++
BuildRequires: cmake BuildRequires: cmake
BuildRequires: make
BuildRequires: pkgconfig(ncurses) BuildRequires: pkgconfig(ncurses)
BuildRequires: gtest BuildRequires: gtest
Suggests: gpm BuildRequires: gpm
Suggests: (xclip or xset) Suggests: (xclip or xset)
%description devel-static %description devel-static
This package contains the static library from the This package contains the static library, headers,
modernised Turbo Vision 2.0 port. and help file compiler from the modernised Turbo
Vision 2.0 port.
A modern port of Turbo Vision 2.0, the classical A modern port of Turbo Vision 2.0, the classical
framework for text-based user interfaces, but with framework for text-based user interfaces, but with
Unicode support. Unicode and cross=platform 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 %package demos
Summary: Demo programs of Turbo Vision 2.0 Summary: Demo programs of Turbo Vision 2.0
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
BuildRequires: binutils
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: make
BuildRequires: pkgconfig(ncurses)
Requires: pkgconfig(ncurses)
Suggests: gpm
Suggests: (xclip or xset) Suggests: (xclip or xset)
%description demos %description demos
This package contains demo programs showing off the This package contains demo programs showing off the
modernised Turbo Vision 2.0 port. modernised Turbo Vision 2.0 port.
A modern port of Turbo Vision 2.0, the classical A modern port of Turbo Vision 2.0, the classical
framework for text-based user interfaces, but framework for text-based user interfaces, but
with Unicode support. with Unicode and cross-platform support.
%prep %prep
%autosetup -p1 %autosetup -p1
@ -129,7 +84,7 @@ with Unicode support.
# Disable LTO due to a lto-no-text-in-archive problem with libtvision.a # Disable LTO due to a lto-no-text-in-archive problem with libtvision.a
%global _lto_cflags %nil %global _lto_cflags %nil
# Add CMake flag to let libtvision.a be used properly as a shared lib # Add CMake flag to let libtvision.a be used properly as a system lib
%cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON %cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON
%cmake_build %cmake_build
@ -142,15 +97,13 @@ pushd test/
%cmake_build %cmake_build
popd popd
%files devel %files devel-static
%license COPYRIGHT %license COPYRIGHT
%doc README.md %doc README.md
%{_bindir}/tvhc %{_bindir}/tvhc
%{_includedir}/* %{_includedir}/*
%{_prefix}/%{_lib}/cmake/ %{_libdir}/*
%{_libdir}/cmake/
%files devel-static
%{_prefix}/%{_lib}/libtvision.a
%files demos %files demos
%{_bindir}/tvdemo %{_bindir}/tvdemo