|
|
|
@ -1,8 +1,7 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# Usage: build_rpm_package.sh <TDE_PACKAGE> [TDE_VERSION]
|
|
|
|
|
# Example: build_rpm_package.sh tdebase 14.0.0
|
|
|
|
|
#!/bin/bash -x
|
|
|
|
|
|
|
|
|
|
# Usage: gather_rpm_sources.sh <TDE_PACKAGE> <TDE_VERSION> <DESTINATION>
|
|
|
|
|
# Example: gather_rpm_sources.sh tdebase 14.0.0 /tmp/tdebase
|
|
|
|
|
|
|
|
|
|
PKGNAME="${1%/}"
|
|
|
|
|
PKGNAME="${PKGNAME##*/}"
|
|
|
|
@ -31,7 +30,7 @@ cp -f ${SPECFILE} ${SOURCES} ${TARBALL} "${TARGETDIR}"
|
|
|
|
|
|
|
|
|
|
### Check for patches
|
|
|
|
|
|
|
|
|
|
PATCHDIR="${SPECFILE%/*}/patches/${TDE_VERSION}"
|
|
|
|
|
PATCHDIR="${HOME}/tde/tde-patches/${TDE_VERSION}/$1"
|
|
|
|
|
if [ -d "${PATCHDIR}" ]; then
|
|
|
|
|
cat "${PATCHDIR}/"*".patch" >>"${TARGETDIR}/one.patch"
|
|
|
|
|
sed -i "${TARGETDIR}/"*".spec" \
|
|
|
|
|