Name: bluerig Version: 1.0.2 Release: %autorelease Summary: Terminal IDE, a continuation of cooledit License: GPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND BSD-3-Clause AND MIT URL: https://github.com/blue-panels/bluerig Source0: %{url}/releases/download/bluerig-%{version}/bluerig-%{version}.tar.gz BuildRequires: check-devel BuildRequires: gcc BuildRequires: gettext BuildRequires: glib2-devel BuildRequires: json-glib-devel BuildRequires: gpm-devel BuildRequires: meson >= 0.61 BuildRequires: pkgconf-pkg-config BuildRequires: slang-devel BuildRequires: lua-devel BuildRequires: libX11-devel Recommends: %{name}-lua%{?_isa} = %{version}-%{release} Suggests: libX11 Suggests: aspell Suggests: hunspell Suggests: ctags %description bluerig is a terminal IDE that continues cooledit by Paul Sheer. Its editor has syntax highlighting, code folding, an undo history browser, keyboard macros, a user menu, multiple windows, skins and editable key bindings, and works with language servers for completion, documentation and diagnostics. bluerig -D opens the project of a directory: its tree, its build with meson, cmake or make, and its debugger, gdb or a debug adapter. bluerig -G opens a Git window on a work tree, and bluerig -Q runs the queries of a file in PostgreSQL, by libpq, or in MongoDB, by mongosh. Spell checking uses aspell or hunspell, whichever is installed; libpq and the spell checker are loaded at run time. %package lua Summary: Lua runtime and scripts for bluerig Requires: %{name}%{?_isa} = %{version}-%{release} %description lua The Lua runtime plugin that bluerig loads at run time, and the editor scripts that come with it, such as inserting the date and time, sorting the selection, formatting a paragraph, drawing a table or inserting the output of a command. Without this package bluerig runs, and the features written in Lua are absent. %prep %autosetup -n %{name}-%{version} %build # The archive carries its version in .tarball-version. %meson \ -Dscreen=slang \ -Dplugins_dir=%{_libdir}/bluerig/plugins \ -Druntime_plugins_dir=%{_libdir}/bluerig/runtime-plugins \ -Dlua=enabled %meson_build %install %meson_install %find_lang %{name} --with-man # The Lua documentation is listed as %%doc below, which puts it in place # itself; what the install left behind would be packaged twice. rm -rf %{buildroot}%{_datadir}/doc/%{name} # Nothing in bluerig runs this script: it came along from the mc tree, and # the next release drops it. rm %{buildroot}%{_sysconfdir}/%{name}/edit.indent.rc # brg came in 1.0.2 without a manual page of its own; the next release # installs this link itself. ln -s bluerig.1 %{buildroot}%{_mandir}/man1/brg.1 %check %meson_test %files -f %{name}.lang %license doc/COPYING %doc README.md CHANGELOG.md %doc doc/LUA_API_REFERENCE.md doc/LUA_PLUGINS.md doc/lua-api.json %{_bindir}/bluerig %{_bindir}/brg # Owned here so that the directory does not depend on the lua subpackage. %dir %{_datadir}/bluerig/ %{_datadir}/bluerig/charsets %{_datadir}/bluerig/defaults.ini %{_datadir}/bluerig/examples/ %{_datadir}/bluerig/help/ %{_datadir}/bluerig/query/ %{_datadir}/bluerig/skins/ %{_datadir}/bluerig/syntax/ %dir %{_sysconfdir}/bluerig/ %config(noreplace) %{_sysconfdir}/bluerig/* %{_mandir}/man1/bluerig.1* %{_mandir}/man1/brg.1* # Owned here so that the directory does not depend on the lua subpackage. %dir %{_libdir}/bluerig/ # The editor plugins that are modules: the terminal, the viewer, the debugger. %{_libdir}/bluerig/plugins/ %files lua %{_libdir}/bluerig/runtime-plugins/ %{_datadir}/bluerig/lua/ %changelog %autochangelog