Original SPEC from vis
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc/
|
101
plan9port.spec
Normal file
101
plan9port.spec
Normal file
@@ -0,0 +1,101 @@
|
||||
#
|
||||
# spec file for package plan9port
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: plan9port
|
||||
Version: 0.9+git.1736393031.72c26fc0
|
||||
Release: 0
|
||||
Summary: An editor combining the strengths of both vi(m) and sam
|
||||
License: ISC
|
||||
Group: Productivity/Text/Editors
|
||||
URL: https://sr.ht/~martanne/plan9port
|
||||
BuildRequires: git
|
||||
#!RemoteAssetUrl: git+https://git.sr.ht/~mcepl/plan9port#devel
|
||||
BuildRequires: libacl-devel
|
||||
BuildRequires: libselinux-devel
|
||||
BuildRequires: libtermkey-devel
|
||||
BuildRequires: tre-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: tar
|
||||
Suggests: par_text
|
||||
# ExclusiveArch: x86_64 %%{ix86}
|
||||
%if 0%{?suse_version} > 1550
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: python3-breathe
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: lua54-penlight
|
||||
BuildRequires: lua54-devel
|
||||
BuildRequires: lua54-lpeg
|
||||
Requires: lua54
|
||||
Requires: lua54-lpeg
|
||||
Suggests: lua54-editorconfig-core-lua
|
||||
%else
|
||||
BuildRequires: lua-penlight
|
||||
BuildRequires: lua-devel
|
||||
BuildRequires: lua-lpeg
|
||||
Requires: lua
|
||||
Requires: lua-lpeg
|
||||
Suggests: lua-editorconfig-core-lua
|
||||
%endif
|
||||
|
||||
%description
|
||||
Vis aims to be a modern, legacy free, simple yet efficient editor combining the strengths of both vi(m) and sam.
|
||||
|
||||
It extends vi's modal editing with built-in support for multiple cursors/selections and combines it with sam's structural regular expression based command language.
|
||||
|
||||
%prep
|
||||
%setup -q -n plan9port -c -T
|
||||
|
||||
cp -a %{_sourcedir}/plan9port/* .
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fcommon"
|
||||
%configure
|
||||
%make_build debug
|
||||
|
||||
%if 0%{?suse_version} > 1550
|
||||
make -C doc singlehtml epub
|
||||
cp doc/build/sphinx/singlehtml/{index,VisEditor}.html
|
||||
%endif
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm -r %{buildroot}%{_datadir}/doc/plan9port
|
||||
%if 0%{?suse_version} > 1550
|
||||
find doc/build -name \*.htm\*
|
||||
find . -name \*.htm\*
|
||||
%endif
|
||||
|
||||
%check
|
||||
# According to the debian/rules:
|
||||
# The vim tests harness is not solid, let's skip them for the moment.
|
||||
# Upstream mentioned the possibility of phasing them out entirely.
|
||||
%make_build -C test/core
|
||||
%make_build -C test/lua
|
||||
%make_build -C test/plan9port
|
||||
|
||||
%files
|
||||
%{_bindir}/plan9port*
|
||||
%{_datadir}/plan9port
|
||||
%{_mandir}/man1/*
|
||||
%doc README.md LICENSE
|
||||
%if 0%{?suse_version} > 1550
|
||||
%doc doc/build/sphinx/epub/VisEditor.epub
|
||||
%doc doc/build/sphinx/singlehtml/VisEditor.html
|
||||
%endif
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user