aboutsummaryrefslogtreecommitdiff
path: root/extra/stackbin.spec
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-02-16 16:16:51 -0500
committerB. Stack <bgstack15@gmail.com>2022-02-16 16:16:51 -0500
commitb02ec46a5074f8a6932fb93264264de94db9b659 (patch)
tree079081e7af8b2498f511da66079dabc551e4da69 /extra/stackbin.spec
parentrequire make (diff)
downloadstackbin-b02ec46a5074f8a6932fb93264264de94db9b659.tar.gz
stackbin-b02ec46a5074f8a6932fb93264264de94db9b659.tar.bz2
stackbin-b02ec46a5074f8a6932fb93264264de94db9b659.zip
handle dir name in spec better
Diffstat (limited to 'extra/stackbin.spec')
-rw-r--r--extra/stackbin.spec7
1 files 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 \
bgstack15