%tmpdir %{_tmppath}
# Path to top of build area.
--%_topdir %{_usrsrc}/rpm
+-%_topdir @PKGSRCDIR_MACRO@
+%_topdir %(echo $HOME)/rpm
#==============================================================================
#
# Path to magic file used for file classification.
--%_rpmfc_magic_path %{_usr}/lib/rpm/magic
+-%_rpmfc_magic_path %{_rpmhome}/magic
+%_rpmfc_magic_path /usr/share/file/magic
#==============================================================================
#==============================================================================
@@ -1428,7 +1428,25 @@
- # helpers are also used by %{_usrlibrpm}/rpmdeps {--provides|--requires}.
- #%__executable_provides %{_usrlibrpm}/executabledeps.sh --provides
- #%__executable_requires %{_usrlibrpm}/executabledeps.sh --requires
+ # helpers are also used by %{_rpmhome}/rpmdeps {--provides|--requires}.
+ #%__executable_provides %{_rpmhome}/executabledeps.sh --provides
+ #%__executable_requires %{_rpmhome}/executabledeps.sh --requires
-%__scriptlet_requires /bin/bash --rpm-requires
+#%__scriptlet_requires /bin/bash --rpm-requires
+
# \endverbatim
#*/
---- rpm-4.4.8/configure.ac.orig 2007-04-08 20:24:47.210783702 +0200
-+++ rpm-4.4.8/configure.ac 2007-04-08 20:32:18.216485052 +0200
-@@ -1462,7 +1462,7 @@
- [Full path to rpm system configuration directory (usually /etc/rpm)])
- AC_SUBST(SYSCONFIGDIR)
-
--MACROFILES="${USRLIBRPM}/macros:${USRLIBRPM}/%{_target}/macros:${SYSCONFIGDIR}/macros.*:${SYSCONFIGDIR}/macros:${SYSCONFIGDIR}/%{_target}/macros:~/.rpmmacros"
-+MACROFILES="${USRLIBRPM}/macros:${USRLIBRPM}/macros.build:${USRLIBRPM}/%{_target}/macros:${SYSCONFIGDIR}/macros.*:${SYSCONFIGDIR}/macros:${SYSCONFIGDIR}/%{_target}/macros:~/etc/.rpmmacros:~/.rpmmacros"
- AC_DEFINE_UNQUOTED(MACROFILES, "$MACROFILES",
- [Colon separated paths of macro files to read.])
- AC_SUBST(MACROFILES)
+