libspec.lib: no longer check for %debug_package macro since rpm 4.20 automatically manages the debug package
This commit is contained in:
parent
27c6c99aca
commit
55541faa29
@ -1,3 +1,2 @@
|
||||
## macros used to automatically build debug packages --------------------------
|
||||
rpm_macro_debug_package="%debug_package"
|
||||
rpm_macro_debug_package_suffix="debug"
|
||||
|
@ -1132,15 +1132,22 @@ rpmvars.solve "$filesname" "$specfile")" )
|
||||
esac
|
||||
notify.debug "$FUNCNAME: $var = ( ${SPEC_TARGET[*]} )"
|
||||
;;
|
||||
*) if [[ -n "$rpm_macro_debug_package" && \
|
||||
"${tok[0]}" = "$rpm_macro_debug_package" ]]; then
|
||||
# rpm macro for creating debug packages
|
||||
SPEC_TARGET=( ${SPEC_TARGET[@]} \
|
||||
"${SPEC_NAME}-${rpm_macro_debug_package_suffix}" )
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done < $specfile
|
||||
# Add debug package to SPEC_TARGET list if found
|
||||
if [ "${SPEC_BUILDARCH:-$BUILD_ARCH}" == "noarch" ]; then
|
||||
dbg_filename="$(package.generate_name -p -a noarch -t rpm \
|
||||
-n ${SPEC_NAME}-${rpm_macro_debug_package_suffix} -v ${SPEC_VERSION} -r ${SPEC_RELEASE%%[^0-9\.]*})"
|
||||
else
|
||||
dbg_filename="$(package.generate_name -p -a ${SPEC_BUILDARCH:-$BUILD_ARCH} -t rpm \
|
||||
-n ${SPEC_NAME}-${rpm_macro_debug_package_suffix} -v ${SPEC_VERSION} -r ${SPEC_RELEASE%%[^0-9\.]*})"
|
||||
fi
|
||||
notify.warning "debugpkg: ${SPEC_BUILDARCH:-$BUILD_ARCH} $dbg_filename"
|
||||
if [[ -e "$dbg_filename" ]]; then
|
||||
# rpm macro for creating debug packages
|
||||
SPEC_TARGET=( ${SPEC_TARGET[@]} \
|
||||
"${SPEC_NAME}-${rpm_macro_debug_package_suffix}" )
|
||||
fi
|
||||
#notify.debug "$FUNCNAME: $var = ( ${SPEC_TARGET[*]} )"
|
||||
;;
|
||||
SPEC_OBSOLETES)
|
||||
|
@ -544,9 +544,9 @@ done)"
|
||||
[ "$SPEC_PATCH" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_PATCH
|
||||
[ "$SPEC_SOURCE" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_SOURCE
|
||||
[ "$SPEC_LICENSE" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_LICENSE
|
||||
[ "$SPEC_BUILDARCH" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_BUILDARCH
|
||||
[ "$SPEC_TARGET" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_TARGET
|
||||
[ "$SPEC_OBSOLETES" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_OBSOLETES
|
||||
[ "$SPEC_BUILDARCH" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_BUILDARCH
|
||||
[ "$SPEC_BUILDREQUIRES" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_BUILDREQUIRES
|
||||
[ "$SPEC_BUILDROOT" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_BUILDROOT
|
||||
|
||||
|
@ -959,7 +959,6 @@ $spec_cmd_configure_autotools --enable-gtk-doc"
|
||||
|
||||
# 12. debug package
|
||||
local debug_package="0"
|
||||
[ -n "$rpm_macro_debug_package" ] && debug_package="1"
|
||||
|
||||
# FIXME: missing support for:
|
||||
# pkgconfig files
|
||||
|
Loading…
Reference in New Issue
Block a user