diff --git a/ax_init_standard_project.m4 b/ax_init_standard_project.m4 index f8e0b9c..0db6a35 100644 --- a/ax_init_standard_project.m4 +++ b/ax_init_standard_project.m4 @@ -131,7 +131,7 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ AX_SUBST(DISTRO) BUILD_NUMBER=${BUILD_NUMBER:-1} AX_SUBST(BUILD_NUMBER) - BUILD_DATE=$(LANG= date +"%a, %d %B %Y %H:%M:%S %z") + BUILD_DATE=$(LANG= date +"%a, %d %b %Y %H:%M:%S %z") AX_SUBST(BUILD_DATE) if test -f "${PROJECT_NAME}-logo.png"; then PROJECT_LOGO="${PROJECT_NAME}-logo.png" diff --git a/bootstrap.sh b/bootstrap.sh index eea7291..41f1f4e 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -19,13 +19,15 @@ PROJECT_PATH=$(pwd) DEFAULT_PROJECT_NAME=${PROJECT_PATH##*/} configure=0 build=0 +buildtarget="distcheck" overwrite=0 rebuild=0 rebuildfiles=() while test $# -gt 0; do case "$1" in (--configure|-c) configure=1;; - (--build|-b) configure=1; build=1;; + (--build|-b) configure=1; build=1;; + (--target|-t) shift; configure=1; build=1; buildtarget="$1";; (--overwrite|-o) overwrite=1;; (--rebuild|-r) rebuild=1;; (--rebuild-file|-f) shift; rebuildfiles+=("$1");; @@ -40,7 +42,8 @@ SYNOPSIS OPTIONS --configure, -c call ./configure after initialization - --build, -c build, also call ./configure && make + --build, -b build, also call ./configure && make distcheck + --target, -t same as -b, but specify target instead of distcheck --overwrite, -o overwrite all basic files (bootstrap.sh, m4-macros) --rebuild, -r force rebuild of generated files, even if modified --rebuild-file, -f rebild specific file (can be added multiple times) @@ -732,11 +735,14 @@ else echo Applications/...; fi) Source0: %{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gnupg, subversion, automake, autoconf$( if testtag AX_USE_DOXYGEN; then - echo -n ", doxygen, graphviz"; + echo -n ", doxygen"; fi) -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +%if 0%{?fedora} != 20 +$(if testtag AX_USE_DOXYGEN; then echo -n "BuildRequires: graphviz"; fi) +%endif %if 0%{?fedora} || 0%{?rhel} || 0%{?rhl} || 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} BuildRequires: pkgconfig, redhat-lsb$( if testtag AX_USE_CPPUNIT; then @@ -788,15 +794,21 @@ rm -rf \$RPM_BUILD_ROOT $(if testtag AX_USE_LIBTOOL; then echo '/usr/%_lib/@PACKAGE_NAME@.so.*' else -/usr/bin/ +echo /usr/bin/* fi) %doc +$(if testtag AX_USE_LIBTOOL; then + cat <