|
|
@ -196,7 +196,7 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ |
|
|
|
CHANGELOG=$(<ChangeLog) |
|
|
|
CHANGELOG=$(<ChangeLog) |
|
|
|
AC_SUBST(CHANGELOG) |
|
|
|
AC_SUBST(CHANGELOG) |
|
|
|
_AM_SUBST_NOTMAKE([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 |
|
|
|
if test -z "$DEB_CHANGELOG"; then |
|
|
|
DEB_CHANGELOG=" * see file ChangeLog and project management web site" |
|
|
|
DEB_CHANGELOG=" * see file ChangeLog and project management web site" |
|
|
|
fi |
|
|
|
fi |
|
|
@ -206,7 +206,7 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ |
|
|
|
AUTHOR_NAME=$(echo $AUTHOR | sed 's, *[[<(]].*$,,') |
|
|
|
AUTHOR_NAME=$(echo $AUTHOR | sed 's, *[[<(]].*$,,') |
|
|
|
AUTHOR_URL=$(echo $AUTHOR | sed 's,.*(\(http[[^)]]*\)).*,\1,') |
|
|
|
AUTHOR_URL=$(echo $AUTHOR | sed 's,.*(\(http[[^)]]*\)).*,\1,') |
|
|
|
AUTHOR_MAIL=$(echo $AUTHOR | sed 's,.*<\(.*@.*\)>.*,\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 |
|
|
|
if -z "${PACKAGER}"; then |
|
|
|
PACKAGER="$AUTHOR" |
|
|
|
PACKAGER="$AUTHOR" |
|
|
|
fi |
|
|
|
fi |
|
|
@ -220,6 +220,8 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ |
|
|
|
SOURCE_DOWNLOAD="${SOURCE_DOWNLOAD:-${AUTHOR_URL}/downloads/${PACKAGE_NAME}}" |
|
|
|
SOURCE_DOWNLOAD="${SOURCE_DOWNLOAD:-${AUTHOR_URL}/downloads/${PACKAGE_NAME}}" |
|
|
|
AX_SUBST(PROJECT_URL) |
|
|
|
AX_SUBST(PROJECT_URL) |
|
|
|
AX_SUBST(SOURCE_DOWNLOAD) |
|
|
|
AX_SUBST(SOURCE_DOWNLOAD) |
|
|
|
|
|
|
|
VENDOR=$((lsb_release -is 2>/dev/null || echo unknown) | tr ' ' '_') |
|
|
|
|
|
|
|
AX_SUBST(VENDOR) |
|
|
|
DISTRO=$(lsb_release -sc 2>/dev/null || uname -s 2>/dev/null) |
|
|
|
DISTRO=$(lsb_release -sc 2>/dev/null || uname -s 2>/dev/null) |
|
|
|
AX_SUBST(DISTRO) |
|
|
|
AX_SUBST(DISTRO) |
|
|
|
ARCH=$((@<:@@<:@ $(uname -sm) =~ 64 @:>@@:>@ && echo amd64) || (@<:@@<:@ $(uname -sm) =~ 'i?86' @:>@@:>@ && echo i386 || uname -sm)) |
|
|
|
ARCH=$((@<:@@<:@ $(uname -sm) =~ 64 @:>@@:>@ && echo amd64) || (@<:@@<:@ $(uname -sm) =~ 'i?86' @:>@@:>@ && echo i386 || uname -sm)) |
|
|
@ -560,6 +562,7 @@ AC_DEFUN([AX_USE_RPM_PACKAGING], [ |
|
|
|
EXTRA_DIST += \${PACKAGE_NAME}.spec.in |
|
|
|
EXTRA_DIST += \${PACKAGE_NAME}.spec.in |
|
|
|
rpm: dist |
|
|
|
rpm: dist |
|
|
|
rpmbuild -ba --define "_topdir \$\$(pwd)" --define "_sourcedir \$\$(pwd)" \${PACKAGE_NAME}.spec |
|
|
|
rpmbuild -ba --define "_topdir \$\$(pwd)" --define "_sourcedir \$\$(pwd)" \${PACKAGE_NAME}.spec |
|
|
|
|
|
|
|
rpmsign --define "_gpg_name \${PACKAGER}" --addsign RPMS/*/*.rpm SRPMS/*.rpm |
|
|
|
clean-rpm-targets: |
|
|
|
clean-rpm-targets: |
|
|
|
-rm -rf BUILD BUILDROOT RPMS SPECS SRPMS |
|
|
|
-rm -rf BUILD BUILDROOT RPMS SPECS SRPMS |
|
|
|
distclean-rpm-targets: |
|
|
|
distclean-rpm-targets: |
|
|
|