From b02ec46a5074f8a6932fb93264264de94db9b659 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 16 Feb 2022 16:16:51 -0500 Subject: handle dir name in spec better --- extra/stackbin.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/extra/stackbin.spec b/extra/stackbin.spec index de8ff28..53fadee 100644 --- a/extra/stackbin.spec +++ b/extra/stackbin.spec @@ -72,20 +72,19 @@ Stackbin is a flask-based pastebin implementation. %prep %setup -q -c %{name} -test -d "%{name}" && cd "%{name}" -test -d "%{name}-master" && cd "%{name}-master" +test -d "%{name}" && cd "%{name}" ; test -d "%{name}-"* && cd "%{name}-"* ; #%%if ! 0%%{?fedora} #%%patch1 -p1 #%%endif %build export srcdir="extra" -test -d "%{name}" && cd "%{name}" +test -d "%{name}" && cd "%{name}" ; test -d "%{name}-"* && cd "%{name}-"* ; %make_build -C "${srcdir}" %install export srcdir="extra" -test -d "%{name}" && cd "%{name}" +test -d "%{name}" && cd "%{name}" ; test -d "%{name}-"* && cd "%{name}-"* ; %make_install -C "${srcdir}" \ with_systemd=YES \ with_nginx=YES \ -- cgit