cvsdist 32b7b0c
# Makefile for source rpm: elfutils
cvsdist 32b7b0c
# $Id$
cvsdist 32b7b0c
NAME := elfutils
cvsdist 32b7b0c
SPECFILE = $(firstword $(wildcard *.spec))
cvsdist 32b7b0c
cvsdist 32b7b0c
include ../common/Makefile.common
5fa3867
7fc6b92
MONOTONE = monotone
c579df6
c579df6
elfutils-portability.patch: elfutils-$(VERSION).tar.gz
c579df6
	@rm -rf elfutils-master elfutils-portable
7fc6b92
	$(MONOTONE) checkout -b com.redhat.elfutils elfutils-master
7fc6b92
	$(MONOTONE) checkout -b com.redhat.elfutils.portable elfutils-portable
7fc6b92
	cd elfutils-master; autoreconf; rm -rf autom4te.cache MT
7fc6b92
	cd elfutils-portable; autoreconf; rm -rf autom4te.cache MT
c579df6
	diff -rpu elfutils-master elfutils-portable | \
570047f
	filterdiff --remove-timestamps --strip=1 --addprefix=elfutils/ > $@.new
5fa3867
	mv $@.new $@
a0b6935
a0b6935
elfutils-portable.spec: elfutils.spec
a0b6935
	(echo '%define _with_compat 1'; cat $<) > $@.new
a0b6935
	mv -f $@.new $@
a0b6935
a0b6935
portable: elfutils-$(VERSION)-0.$(RELEASE).src.rpm
a0b6935
elfutils-$(VERSION)-0.$(RELEASE).src.rpm: elfutils-portable.spec \
a0b6935
					  elfutils-portability.patch \
a0b6935
					  sources
a0b6935
	$(RPM_WITH_DIRS) --nodeps -bs $<