blob: 02e0a0d28cf614c45f4ade2dadf179a85094748a (
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
|
Name: chr
Version: 0.1.77
Release: %autorelease
Summary: Terminal editor is inspired by the Turbo Pascal editor
%global forgeurl https://github.com/istoph/editor
%forgemeta
License: Boost
URL: %{forgeurl}
Source0: %{forgeurl}/releases/download/%{version}/editor-%{version}.tar.gz
Patch0: catch.patch
BuildRequires: meson
BuildRequires: gcc-c++
BuildRequires: qt5-qtbase-devel
BuildRequires: pkgconfig(TuiWidgets)
BuildRequires: pkgconfig(PosixSignalManager)
BuildRequires: cmake(KF5SyntaxHighlighting)
BuildRequires: pkgconfig(catch2)
%description
The chr terminal editor is inspired by the turbo pascal editor using Turbo
Vision from the year 1997. For the keyboard shortcut he should be similar
gedit, to facilitate the transition from desktop to console editor.
%prep
%forgeautosetup -p1
rm -rf third-party/catch2
%build
%meson -Dsystem-catch2=enabled -Dsyntax_highlighting=true
%meson_build
%install
%meson_install
install -D -m0644 manpages/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -D -m0644 manpages/%{name}.de.1 %{buildroot}%{_mandir}/de/man1/%{name}.1
%check
pushd %{_vpath_builddir}/src
./tests
popd
%files
%doc README.md
%license COPYING AUTHORS
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/de/man1/%{name}.1*
%changelog
%autochangelog
|