# Makefile for source rpm: perl-Module-Implementation NAME := perl-Module-Implementation SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common for d in common ../common ../../common ../../../common ../../../../common ; do if [ -f $$d/trunk/Makefile.common ] ; then if [ -f $$d/trunk/.svn -a -w $$/Makefile.common ] ; then cd $$d/trunk ; svn update --quiet ; fi ; echo "$$d/trunk/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) # Need -r epel for RHEL builds, -r base for Fedora builds FROM_DIST = fc30 BUILD_OPTIONS = -r base DIST_REGEX = '^fc' include $(MAKEFILE_COMMON) # Needs Test::More ≥ 0.96 # Module is included in RHEL ≥ 7 so we use base rather than epel # Needs perl(Test::CleanNamespaces) and perl-generators from EPEL-7 now, so won't build for base #build :: srpm # mb --noarch -r base --regex=^rhel --from=rhel7 -- $(MOCK_OPTIONS) $(SRCRPMDIR)/$(NAME)-$(VERSION)-$(RELEASE).src.rpm