makedir := $(dir $(lastword $(MAKEFILE_LIST)))
topdir  := $(makedir)/..

srpm:
	dnf -y install npm jq git
	$(MAKE) -C $(topdir) srpm
	cp $(topdir)/*.src.rpm $(outdir)

makedir := $(dir $(lastword $(MAKEFILE_LIST)))
topdir  := $(makedir)/..

srpm:
	dnf -y install npm jq git
	case "$(notdir $(spec))" in \
		"cockpit-composer.spec") $(MAKE) -C $(topdir) cockpit-composer-srpm ;; \
	        *)                       $(MAKE) -C $(topdir) srpm ;; \
	esac
	cp $(topdir)/*.src.rpm $(outdir)

Add a cockpit-composer case for copr make srpm
Add a cockpit-composer case for copr make srpm
