make dist tar jxf elfutils-*.tar.bz2 cd elfutils-* cp -a $srcdir/fake-src . Change SUBDIRS in Makefile.am to only $(mini_SUBDIRS) plus fake-src Remove COPYING.GPL from EXTRA_DIST Remove all AC_CONFIG_FILES lines in configure.ac accept AC_CONFIG_FILES([config/Makefile]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([m4/Makefile]) AC_CONFIG_FILES([elfutils.spec:config/elfutils.spec.in]) AC_CONFIG_FILES([lib/Makefile]) AC_CONFIG_FILES([libelf/Makefile libelf-po/Makefile.in]) Add AC_CONFIG_FILES([fake-src/Makefile]) Change lib/Makefile.am: libeu_a_SOURCES only next_prime.c crc32.c noinst_HEADERS only fixedsizehash.h system.h remove EXTRA_DIST remove xmalloc_no_Werror mv COPYING.GPL COPYING set gpl and fake at beginning of elfutils.spec.in to 1 automake autoconf mkdir build cd build ../configure make make dist rpmbuild -ta elfutils-*.tar.gz