summaryrefslogtreecommitdiff
path: root/contrib/crossrpms/autotools/autoconf.am
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/crossrpms/autotools/autoconf.am')
-rw-r--r--contrib/crossrpms/autotools/autoconf.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/crossrpms/autotools/autoconf.am b/contrib/crossrpms/autotools/autoconf.am
index a98c962e4b..8e0d714f54 100644
--- a/contrib/crossrpms/autotools/autoconf.am
+++ b/contrib/crossrpms/autotools/autoconf.am
@@ -4,10 +4,12 @@ AUTOCONF_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
AUTOCONF_SUBPACKAGES += $(top_srcdir)/common/clean.add
AUTOCONF_SUBPACKAGES += $(top_srcdir)/autotools/target-autoconf.add
-autoconf.spec.in: $(AUTOCONF_SUBPACKAGES) Makefile.in
+autoconf.spec.in: $(AUTOCONF_SUBPACKAGES) Makefile.in $(srcdir)/autoconf-sources.add
cat $(AUTOCONF_SUBPACKAGES) | sed \
+ -e "/[@]SOURCES[@]/r $(srcdir)/autoconf-sources.add" \
+ -e "/[@]SOURCES[@]/d" \
-e "s/[@]AUTOCONF_VERS[@]/$(AUTOCONF_VERS)/" \
- -e "s/[@]AUTOCONF_RPMREL[@]/$(AUTOCONF_RPMREL)/" > $@
+ -e "s/[@]AUTOCONF_RPMREL[@]/$(AUTOCONF_RPMREL)%{?dist}/" > $@
CLEANFILES += autoconf.spec.in