# Makefile for source rpm: perl-Class-Load NAME := perl-Class-Load 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 BUILD_OPTIONS = -r base FROM_DIST = fc27 DIST_REGEX = ^fc include $(MAKEFILE_COMMON) # No Class::Load::XS currently in EPEL #build :: srpm # mb -r epel --noarch --from=rhel7 -- $(MOCK_OPTIONS) $(SRCRPMDIR)/$(NAME)-$(VERSION)-$(RELEASE).src.rpm