Name: bluerig Version: 1.0.2 Release: %autorelease Summary: Terminal IDE, a continuation of cooledit # The program is GPL-3.0-or-later. Taken from gnulib: # lib/strutil/strverscmp.c LGPL-2.1-or-later # lib/strutil/filevercmp.c LGPL-3.0-or-later # Syntax files installed in %%{_datadir}/bluerig/syntax: # nemerle.syntax BSD-3-Clause # meson.syntax MIT 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: gcc BuildRequires: gettext BuildRequires: meson >= 0.61 BuildRequires: pkgconf-pkg-config BuildRequires: pkgconfig(check) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(slang) BuildRequires: pkgconfig(lua) BuildRequires: pkgconfig(x11) # gpm has no pkg-config file BuildRequires: gpm-devel # gnulib is a source library with no shared object to link against; the two # files above were copied into the tree by hand. Provides: bundled(gnulib) 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 %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 %{_datadir}/bluerig/ %exclude %{_datadir}/bluerig/lua/ %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