summaryrefslogtreecommitdiff
path: root/chr.spec
diff options
context:
space:
mode:
Diffstat (limited to 'chr.spec')
-rw-r--r--chr.spec60
1 files changed, 60 insertions, 0 deletions
diff --git a/chr.spec b/chr.spec
new file mode 100644
index 0000000..1efbcf4
--- /dev/null
+++ b/chr.spec
@@ -0,0 +1,60 @@
+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/catch.hpp
+
+
+%build
+%meson -Dsystem-catch2=enabled -Dsyntax_highlighting=true
+%meson_build
+
+
+%install
+%meson_install
+install -D -m0644 manpages/%{name}.1 -t %{buildroot}%{_mandir}/man1/
+install -D -m0644 manpages/%{name}.de.1 -t %{buildroot}%{_mandir}/de/man1/
+
+
+# TODO
+#check
+#meson_test
+
+
+%files
+%doc README.md
+%license COPYING AUTHORS
+%{_bindir}/%{name}
+%{_mandir}/man1/%{name}.*
+%{_mandir}/de/man1/%{name}.*
+
+
+%changelog
+%autochangelog