- Specfile: fixed %{ext_man}

- fetch_source now also copies the spec file if needed

OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=48
This commit is contained in:
Frank Sundermeyer 2011-09-19 11:55:33 +00:00 committed by Git OBS Bridge
parent 2919ed7430
commit 1e2eef8ace
3 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bba4c0d60395948d8f7be603832836d64214bac887b3dbbdea2db182b051cab8
size 759814
oid sha256:067aaf4a81dd805f4da8829dab8b95783eb9d930d81275ec0559003979c0ca04
size 759680

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Sep 19 11:52:50 UTC 2011 - fsundermeyer@opensuse.org
- Specfile: fixed %{ext_man}
- fetch_source now also copies the spec file if needed
-------------------------------------------------------------------
Mon Sep 19 10:46:07 UTC 2011 - fsundermeyer@opensuse.org

View File

@ -65,6 +65,17 @@ tar cjhf ${NAME}-${VERSION}.tar.bz2 -C ${TMPDIR} \
echo "Successfully created ${NAME}-${VERSION}.tar.bz2"
#
# Copy the spec file if necessary
#
diff -q $SPECFILE ${TMPDIR}/${NAME}/packaging/$SPECFILE >/dev/null
if [[ 0 = $? ]]; then
echo "spec file is up-to-date"
else
cp ${TMPDIR}/${NAME}/packaging/$SPECFILE . || exit_on_error "Failed to copy the specfile."
echo "Successfully updated the spec file."
fi
rm -rf ${TMPDIR}
exit 0