Actually, we use setup macro, but it is more complicated.

This commit is contained in:
Matej Cepl 2022-06-08 11:42:46 +02:00
parent 74110692a8
commit 076ae1109a

View File

@ -18,13 +18,12 @@
%define test_version 0.5
Name: vis
Version: 0.7+git.1653832963.0cc684f
Version: 0.7+git
Release: 0
Summary: An editor combining the strengths of both vi(m) and sam
License: ISC
Group: Productivity/Text/Editors
URL: https://github.com/martanne/vis
# Source0: https://github.com/martanne/%%{name}/archive/v%%{version}.tar.gz#/%%{name}-%%{version}.tar.gz
#!RemoteAssetUrl: git+https://github.com/martanne/vis.git
#!RemoteAssetUrl: git+https://github.com/martanne/vis-test.git#v0.5
Source99: vis-rpmlintrc
@ -83,7 +82,10 @@ Vis aims to be a modern, legacy free, simple yet efficient editor combining the
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 vis -c -T
cp -a %{_sourcedir}/vis/* .
cp -a %{_sourcedir}/vis-test/* test/
%autopatch -p1
%build
export CFLAGS="%{optflags} -fcommon"