Try to fix broken link, remove SVN fetch source script

OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=195
This commit is contained in:
Stefan Knorr 2016-10-05 16:07:19 +00:00 committed by Git OBS Bridge
parent c41c160a96
commit cee8dfcd6b
4 changed files with 10 additions and 87 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bad41af5c46396a9e97fff92477e5f6b6d772ea84898be9243bea08753e3d98f
size 2369175
oid sha256:f12e3f0a3f3ceb6c14920f2b08300590799ed623fc9fbea3cc11435569da0dee
size 2376962

View File

@ -1,83 +0,0 @@
#!/bin/bash
#
#
# Create DAPS source tarball from SVN
#
# Copyright (C) 2004 - 2011 SUSE Linux Products GmbH
#
# Author:
# Frank Sundermeyer <fsundermeyer at opensuse dot org>
#
#set -x
NAME=daps
VERSION=
SPECFILE=${NAME}.spec
SVNPATH=svn://svn.code.sf.net/p/daps/svn/trunk/daps
TMPDIR=$(mktemp -q -d --tmpdir daps_XXXXXXXX)
EXCLUDES=${TMPDIR}/${NAME}/packaging/exclude-files_for_daps_package.txt
#----------
# Functions
#----------
# exit on error
#
function exit_on_error {
echo -e "$1"
rm -rf $TMPDIR
exit 1
}
#-----
# MAIN
#-----
#
# This script needs to be called from the daps osc checkout directory, so
# lets check whethter we are in the correct directory
#
if [[ ! -s daps.spec && ! -d .osc ]]; then
echo "Looks like you are not in the daps checkout directory."
read -p "Continue anyway (y/n) [n]: " CONT
if [[ n = $CONT || N = $CONT ]]; then
exit_on_error "Aborted by user."
fi
fi
#
# Export daps from SVN
#
svn export -q $SVNPATH ${TMPDIR}/${NAME} || exit_on_error "SVN export failed"
#
# Get the version number
#
VERSION=$(egrep "^Version:\s*" ${TMPDIR}/${NAME}/packaging/$SPECFILE | sed 's/^Version:\s*//')
if [[ -z $VERSION ]]; then
exit_on_error "Couldn't get version number from spec-file."
fi
#
# Create the tarball
#
export BZIP2=--best
tar cf ${NAME}-${VERSION}.tar -C ${TMPDIR} \
--exclude-from=$EXCLUDES ${NAME} || exit_on_error "Failed to create the tarball."
bzip2 -9f ${NAME}-${VERSION}.tar
echo "Successfully wrote source tarball ${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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 5 15:35:16 UTC 2016 - sknorr@suse.com
- Try to fix broken link
- Remove SVN fetch source script
-------------------------------------------------------------------
Fri Aug 04 12:36:01 UTC 2016 - fsundermeyer@opensuse.org

View File

@ -47,8 +47,7 @@ Group: Productivity/Publishing/XML
Url: http://sourceforge.net/p/daps
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}.rpmlintrc
Source2: %{name}-fetch-source-svn
Source3: %{name}-fetch-source-git
Source2: %{name}-fetch-source-git
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
@ -217,6 +216,7 @@ exit 0
%doc %{_defaultdocdir}/%{name}/*
%{_bindir}/*
%{_datadir}/%{name}/*
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/emacs/site-lisp/docbook_macros.el
%{_datadir}/xml/daps/schema/*