blob: 0e016e255e0250c1430b460652511dea5e97e492 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
Name: tuiwidgets
Version: 0.2.1
Release: %autorelease
Summary: High-level widget based toolkit for terminal applications
%global forgeurl https://github.com/tuiwidgets/tuiwidgets
%forgemeta
License: Boost
URL: %{forgeurl}
Source0: %{forgeurl}/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch0: 0003-doc-Remove-usage-of-sphinxcontrib.image.patch
Patch1: doc-font-path.patch
BuildRequires: meson
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: pkgconfig(termpaint)
BuildRequires: pkgconfig(termpaint_image)
BuildRequires: pkgconfig(PosixSignalManager)
BuildRequires: qt5-qtbase-devel
BuildRequires: pkgconfig(catch2)
BuildRequires: python3-sphinx
BuildRequires: python3-beautifulsoup4
BuildRequires: python3-pillow
BuildRequires: python3-freetype
BuildRequires: dejavu-sans-mono-fonts
BuildRequires: unifont-ttf-fonts
%description
Tuiwidgets is designed to be flexible and similar to use to Qt graphical
widgets. Its look and feel is similar to graphical applications or classic full
screen terminal applications from the PC world of the 90s.
%package devel
Summary: Header files for the tuiwidgets library
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains the header files and symbolic links need for building
software using tuiwidgets, as well as the documentation.
%prep
%forgeautosetup -p1
rm -rf third-party/catch2
%build
%meson -Dsystem-catch2=enabled -Dsystem-posixsignalmanager=enabled
%meson_build
pushd doc
python3 ./qt5.inv.py
python3 -m sphinx -b html . _build -a
popd
%install
%meson_install
mkdir -p %{buildroot}%{_pkgdocdir}/html
cp -r doc/_build/. %{buildroot}%{_pkgdocdir}/html
rm -rf %{buildroot}%{_pkgdocdir}/html/.doctrees
rm -f %{buildroot}%{_pkgdocdir}/html/.buildinfo
%check
%meson_test
%files
%doc README.md NEWS.md
%license COPYING AUTHORS
%{_libdir}/libtuiwidgets.so.0a
%files devel
%{_libdir}/libtuiwidgets.so
%{_libdir}/pkgconfig/TuiWidgets.pc
%{_includedir}/Tui
%{_pkgdocdir}/html
%changelog
%autochangelog
|