Skip to content

Commit a5cf20c

Browse files
committed
Packaging update
Signed-off-by: Brian J. Murrell <[email protected]> Packaging-branch: bmurrell/multi-spec
1 parent d0958bf commit a5cf20c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packaging/Makefile_packaging.mk

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RPM_BUILD_OPTIONS += $(EXTERNAL_RPM_BUILD_OPTIONS)
2121
BUILD_OS ?= leap.15
2222
CHROOT_NAME ?= opensuse-leap-15-x86_64
2323
PACKAGING_CHECK_DIR ?= ../packaging
24+
LOCAL_REPOS ?= true
2425

2526
COMMON_RPM_ARGS := --define "%_topdir $$PWD/_topdir" $(BUILD_DEFINES)
2627
SPEC := $(shell if [ -f $(NAME)-$(DISTRO_BASE).spec ]; then echo $(NAME)-$(DISTRO_BASE).spec; else echo $(NAME).spec; fi)
@@ -35,7 +36,7 @@ DEB_TOP := _topdir/BUILD
3536
DEB_BUILD := $(DEB_TOP)/$(NAME)-$(DEB_VERS)
3637
DEB_TARBASE := $(DEB_TOP)/$(DEB_NAME)_$(DEB_VERS)
3738
SOURCE = $(eval SOURCE := $(shell spectool -S -l $(SPEC) | sed -e 2,\$$d -e 's/.*: *//'))$(SOURCE)
38-
PATCHES = $(eval PATCHES := $(shell spectool -l $(SPEC) | sed -e 1d -e 's/.*: *//'))$(PATCHES)
39+
PATCHES = $(eval PATCHES := $(shell spectool -l $(SPEC) | sed -e 1d -e 's/.*: *//' -e 's/.*\///'))$(PATCHES)
3940
SOURCES := $(addprefix _topdir/SOURCES/,$(notdir $(SOURCE)) $(PATCHES))
4041
ifeq ($(ID_LIKE),debian)
4142
DEBS := $(addsuffix _$(DEB_VERS)-1_amd64.deb,$(shell sed -n '/-udeb/b; s,^Package:[[:blank:]],$(DEB_TOP)/,p' debian/control))
@@ -331,7 +332,12 @@ baseurl=$${JENKINS_URL:-https://build.hpdd.intel.com/}job/daos-stack/job/$$repo/
331332
enabled=1\n\
332333
gpgcheck=False\n" >> /etc/mock/$(CHROOT_NAME).cfg; \
333334
done; \
334-
for repo in $($(DISTRO_BASE)_LOCAL_REPOS) $($(DISTRO_BASE)_REPOS); do \
335+
if ! $(LOCAL_REPOS); then \
336+
LOCAL_REPOS=""; \
337+
else \
338+
LOCAL_REPOS="$($(DISTRO_BASE)_LOCAL_REPOS)"; \
339+
fi; \
340+
for repo in $$LOCAL_REPOS $($(DISTRO_BASE)_REPOS); do \
335341
repo_name=$${repo##*://}; \
336342
repo_name=$${repo_name//\//_}; \
337343
echo -e "[$$repo_name]\n\
@@ -417,4 +423,4 @@ show_git_metadata:
417423

418424
.PHONY: srpm rpms debs deb_detar ls chrootbuild rpmlint FORCE \
419425
show_version show_release show_rpms show_source show_sources \
420-
show_targets check-env show_git_metadata
426+
show_targets check-env show_git_metadata

0 commit comments

Comments
 (0)