|
|
|
@ -196,7 +196,7 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ |
|
|
|
|
CHANGELOG=$(<ChangeLog) |
|
|
|
|
AC_SUBST(CHANGELOG) |
|
|
|
|
_AM_SUBST_NOTMAKE([CHANGELOG]) |
|
|
|
|
DEB_CHANGELOG=$(sed '/^[[^\t]]/{h;N;d};/^\t\* /{s,,,;H;g;s,^,\t* ,;s,\n\([[^ ]]*\) *, \1\n\t ,}' ChangeLog) |
|
|
|
|
DEB_CHANGELOG=$(sed '/^[[^\t]]/{h;N;d};s,\t, ,g;/^ \* /{s,,,;H;g;s,^, * ,;s,\n\([[^ ]]*\) *, \1\n ,}' ChangeLog) |
|
|
|
|
if test -z "$DEB_CHANGELOG"; then |
|
|
|
|
DEB_CHANGELOG=" * see file ChangeLog and project management web site" |
|
|
|
|
fi |
|
|
|
@ -206,7 +206,7 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ |
|
|
|
|
AUTHOR_NAME=$(echo $AUTHOR | sed 's, *[[<(]].*$,,') |
|
|
|
|
AUTHOR_URL=$(echo $AUTHOR | sed 's,.*(\(http[[^)]]*\)).*,\1,') |
|
|
|
|
AUTHOR_MAIL=$(echo $AUTHOR | sed 's,.*<\(.*@.*\)>.*,\1,') |
|
|
|
|
PACKAGER=$(gpg -K 2>/dev/null | sed -n 's,uid *\(\[[ultimate\]] *\)\?,,p' | head -1) |
|
|
|
|
PACKAGER=$(gpg -K --lock-never 2>/dev/null | sed -n 's,uid *\(\[[ultimate\]] *\)\?,,p' | head -1) |
|
|
|
|
if -z "${PACKAGER}"; then |
|
|
|
|
PACKAGER="$AUTHOR" |
|
|
|
|
fi |
|
|
|
@ -560,6 +560,7 @@ AC_DEFUN([AX_USE_RPM_PACKAGING], [ |
|
|
|
|
EXTRA_DIST += \${PACKAGE_NAME}.spec.in |
|
|
|
|
rpm: dist |
|
|
|
|
rpmbuild -ba --define "_topdir \$\$(pwd)" --define "_sourcedir \$\$(pwd)" \${PACKAGE_NAME}.spec |
|
|
|
|
rpmsign --define "_gpg_name \${PACKAGER}" --addsign RPMS/*/*.rpm SRPMS/*.rpm |
|
|
|
|
clean-rpm-targets: |
|
|
|
|
-rm -rf BUILD BUILDROOT RPMS SPECS SRPMS |
|
|
|
|
distclean-rpm-targets: |
|
|
|
|