mirror of
https://src.koozali.org/smeserver/common.git
synced 2024-11-25 05:17:29 +01:00
use archivefile from spec
This commit is contained in:
parent
4b99139307
commit
bb50cfb093
@ -93,11 +93,12 @@ TEMPDIR := $(shell mktemp -d)
|
|||||||
EXT := $(shell cat $(NAME).spec | grep -e '^[S|s]ource' | head -n 1 | sed 's/Source: //' | sed -E 's/^([^.]*\.)(.*)$/\2//')
|
EXT := $(shell cat $(NAME).spec | grep -e '^[S|s]ource' | head -n 1 | sed 's/Source: //' | sed -E 's/^([^.]*\.)(.*)$/\2//')
|
||||||
#ARCHIVEFILE=$(cat ${NAME}.spec | grep -e '^[S|s]ource' | sed -r 's/^[S|s]ource[0-9]?:\s?//' | xargs basename)
|
#ARCHIVEFILE=$(cat ${NAME}.spec | grep -e '^[S|s]ource' | sed -r 's/^[S|s]ource[0-9]?:\s?//' | xargs basename)
|
||||||
#ARCHIVEFILE=$(rpm --queryformat "${ARCHIVEFILE}\n" --specfile ${NAME}.spec | head -n 1)
|
#ARCHIVEFILE=$(rpm --queryformat "${ARCHIVEFILE}\n" --specfile ${NAME}.spec | head -n 1)
|
||||||
ifeq (,$(wildcard archivefilename))
|
#ifeq (,$(wildcard archivefilename))
|
||||||
ARCHIVEFILE := "$(NAME)-$(VERSION).tar.gz"
|
#ARCHIVEFILE := "$(NAME)-$(VERSION).tar.gz"
|
||||||
else
|
#else
|
||||||
ARCHIVEFILE := $(shell cat archivefilename)
|
#ARCHIVEFILE := $(shell cat archivefilename)
|
||||||
endif
|
#endif
|
||||||
|
ARCHIVEFILE := $(shell cat $(NAME).spec | grep -e '^[S|s]ource' | sed -r 's/^[S|s]ource[0-9]?:\s?//' | sed -e "s/%{name}/$(NAME)/" -e "s/%{version}/$(VERSION)/" | xargs basename)
|
||||||
|
|
||||||
# default target: just make sure we've got the sources
|
# default target: just make sure we've got the sources
|
||||||
all: sources
|
all: sources
|
||||||
|
Loading…
Reference in New Issue
Block a user