Patch0: disable-systemd.patch
#Patchx: %{name}-pydebuginfo.patch
BuildRequires: rpm >= 4.4.9-56
+BuildRequires: sed >= 4.0
Requires: findutils >= 1:4.2.26
Provides: rpmbuild(find_lang) = %{find_lang_rev}
Provides: rpmbuild(macros) = %{rpm_macros_rev}
%endif
%build
-rev=$(awk '/^#.*Revision:.*Date/{print $3}' rpm.macros)
+%{__sed} -i -e 's,\$Revision\$,%{rpm_macros_rev},' rpm.macros
+
+rev=$(awk '/^%%rpm_build_macros/{print $2}' rpm.macros)
if [ "$rev" != "%rpm_macros_rev" ]; then
: Update rpm_macros_rev define to $rev, and retry
exit 1
fi
-rev=$(awk '/^#.*Id:.*/{print $4}' %{SOURCE3})
+rev=$(awk -F= '/^VERSION/{print $2}' %{SOURCE3})
if [ "$rev" != "%find_lang_rev" ]; then
: Update find_lang_rev define to $rev, and retry
exit 1
#!/bin/sh
-# $Id$
# find-lang - automagically generate list of language specific files
# for inclusion in an rpm spec file.
# * start support for KDE help files
PROG=${0##*/}
-VERSION=$(set -- $Revision$; echo $2)
+VERSION=1.35
usage () {
cat <<EOF
-# $Revision$, $Date$
# vim:ts=4 sw=4 noet ft=spec
#
# PLD Linux rpm macros.
# <http://www.pld-linux.org/>
# can be used by builder script to check for version
-%rpm_build_macros %(R="$Revision$"; RR="${R##: }"; echo ${RR%%?})
+%rpm_build_macros $Revision$
%epoch 0
%x8664 x86_64 amd64 ia32e