# Makefile for source rpm: unrar NAME := unrar 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)) # Upstream uses -march=native, which is a no-no for generic RPM packages # but without it, compilation fails with old gcc versions # F-26..F-28 compile OK on x86_64 but not i386 FROM_DIST = fc29 include $(MAKEFILE_COMMON)