* Moved suse-aspell wordlist from daps to this package

OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/suse-xsl-stylesheets?expand=0&rev=13
This commit is contained in:
Frank Sundermeyer 2012-03-06 10:04:35 +00:00 committed by Git OBS Bridge
parent c7ac1e7038
commit 27e49f4a4d
4 changed files with 22 additions and 9 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e3dae89febc45340a950c20dc81b5cc0c28e2d345cba0955712f011bf65c4a91
size 205938
oid sha256:5dc172854d16f8f8aea09726a4a2dbfbd9c4e1685c7cd6b94f8429b02fe4e08b
size 252206

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 6 10:03:40 UTC 2012 - fsundermeyer@opensuse.org
* Moved suse-aspell wordlist from daps to this package
-------------------------------------------------------------------
Fri Feb 24 14:55:21 UTC 2012 - fsundermeyer@opensuse.org

View File

@ -50,6 +50,7 @@ BuildRequires: libxslt
BuildRequires: make
BuildRequires: trang
Requires: aspell aspell-en aspell-en-huge
Requires: docbook
Requires: docbook-xsl-stylesheets >= 1.75
Requires: libxslt
@ -144,6 +145,8 @@ exit 0
%dir %{_datadir}/xml/%{dtdname}/schema/*
%dir %{_datadir}/xml/%{dtdname}/schema/*/1.0
%dir %{_datadir}/aspell-0.60/
%dir %{_defaultdocdir}/%{name}
# stylesheets
@ -161,5 +164,8 @@ exit 0
# Documentation
%doc %{_defaultdocdir}/%{name}/*
# aspell
%{_datadir}/aspell-0.60/suse_aspell.rws
#----------------------
%changelog

View File

@ -12,7 +12,7 @@
NAME=suse-xsl-stylesheets
VERSION=
SPECFILE=${NAME}.spec
SRC_DIR=suse-xslt
SRC_DIR=suse
NOVDOC_DIR=schema
SVNPATH=svn://svn.code.sf.net/p/daps/svn/trunk/daps
TMPDIR=$(mktemp -q -d --tmpdir susexsl_XXXXXXXX)
@ -47,7 +47,7 @@ fi
#
# Export daps from SVN
#
svn export $SVNPATH ${TMPDIR}/${NAME} || exit_on_error "SVN export failed"
svn export -q $SVNPATH ${TMPDIR}/${NAME} || exit_on_error "SVN export failed"
#
# Get the version number
@ -62,12 +62,14 @@ fi
# Create the tarball
#
export BZIP2=--best
tar cvhf ${NAME}-${VERSION}.tar -C ${TMPDIR}/${NAME} \
--exclude-from=$EXCLUDES --transform=s:suse-xslt:suse-xsl-stylesheets: \
tar cfh ${NAME}-${VERSION}.tar -C ${TMPDIR}/${NAME} \
--exclude-from=$EXCLUDES --transform=s:suse/:suse-xsl-stylesheets/: \
${SRC_DIR} || exit_on_error "Failed to create the tarball."
tar rvhf ${NAME}-${VERSION}.tar -C ${TMPDIR}/${NAME} \
--transform=s:${NOVDOC_DIR}:suse-xsl-stylesheets/${NOVDOC_DIR}: \
$NOVDOC_DIR || exit_on_error "Failed to add $NOVDOC_DIR to the tarball."
# suse/aspell is excluded from tarball, because we only need one file, which we
# manually add here
tar rf ${NAME}-${VERSION}.tar -C ${TMPDIR}/${NAME} \
--transform=s:suse:suse-xsl-stylesheets: \
${SRC_DIR}/aspell/suse_aspell.rws || exit_on_error "Failed to add aspell dictionary to the tarball."
bzip2 -9f ${NAME}-${VERSION}.tar
echo "Successfully created ${NAME}-${VERSION}.tar.bz2"