From 076ae1109aa14b6656d647f87c1edb748592d05e4f5a30ce7bc98d7532b7f9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Wed, 8 Jun 2022 11:42:46 +0200 Subject: [PATCH] Actually, we use setup macro, but it is more complicated. --- vis.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vis.spec b/vis.spec index e2699a5..0696314 100644 --- a/vis.spec +++ b/vis.spec @@ -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"