/* Add to package requires. */
ds = rpmdsSingle(RPMTAG_REQUIRENAME, s, "", RPMSENSE_FIND_REQUIRES);
xx = rpmdsMerge(&fc->requires, ds);
-@@ -718,19 +799,22 @@
+@@ -718,21 +799,22 @@
(void) fclose(fp);
if (fc->fcolor->vals[fc->ix] & RPMFC_PERL) {
}
if (fc->fcolor->vals[fc->ix] & RPMFC_PYTHON) {
- xx = rpmfcHelper(fc, 'P', "python");
+-#ifdef NOTYET
- if (is_executable)
+-#endif
- xx = rpmfcHelper(fc, 'R', "python");
+ if (findprov)
+ xx = rpmfcHelper(fc, 'P', "python", noautoprov, noautoprov_c);
-+ if (findreq && is_executable)
++ if (findreq)
+ xx = rpmfcHelper(fc, 'R', "python", noautoreq, noautoreq_c);
}
if (fc->fcolor->vals[fc->ix] & RPMFC_PHP) {
+ noautoreqfiles = rpmfcFreeRegexps(noautoreqfiles, noautoreqfiles_c);
+ noautoprov = rpmfcFreeRegexps(noautoprov, noautoprov_c);
+ noautoreq = rpmfcFreeRegexps(noautoreq, noautoreq_c);
-+#ifndef AUTODEP_NO_PKGNAMES /* define not to use package names in R */
++#ifdef AUTODEP_PKGNAMES /* define to use package names in R */
+ rpmfcFindRequiredPackages(fc);
+#endif
/*@-boundswrite@*/
#: build/spec.c:237
#, c-format
msgid "line %d: Bad number: %s\n"
+--- rpm/configure.ac.orig 2004-08-22 13:02:30.000000000 +0200
++++ rpm/configure.ac 2004-08-22 13:25:37.000000000 +0200
+@@ -971,6 +971,18 @@
+ AC_SUBST(__CHGRP_RHF)
+
+ dnl
++dnl enable generating autorequires containing packages names
++dnl
++AC_ARG_ENABLE([adding-packages-names-in-autogenerated-dependancies],
++ [ --enable-adding-packages-names-in-autogenerated-dependancies Add packages names for autogenerated dependancies to requires],
++
++ AC_MSG_RESULT([Using packages names in autogerated requires is enabled])
++ AC_DEFINE(AUTODEP_PKGNAMES, 1, "Generating autorequires containing packages names.")
++
++ )
++
++
++dnl
+ dnl figure out what root's primary group is
+ dnl
+ AC_MSG_CHECKING(root's primary group)