- package lightproof files [bnc#890735]

- package all doc files

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/myspell-dictionaries?expand=0&rev=23
This commit is contained in:
2014-09-12 08:54:01 +00:00
committed by Git OBS Bridge
parent d0a010c6b0
commit 140b885cec
3 changed files with 16 additions and 13 deletions

View File

@@ -1,7 +1,8 @@
-------------------------------------------------------------------
Thu Sep 11 09:43:48 UTC 2014 - pgajdos@suse.com
- package lightproof files
- package lightproof files [bnc#890735]
- package all doc files
- update to 20140911
-------------------------------------------------------------------

View File

@@ -1101,17 +1101,16 @@ function install_lightproof_files
{
locale=$1
files=$2
dsc_files=$3
lightproof_dir=%{_libdir}/libreoffice/share/extensions/lightproof_$locale
if [ ! -z "$files" ]; then
if [[ "$files" =~ 'Lightproof.py' ]]; then
if [ ! -d %{buildroot}$lightproof_dir ]; then
mkdir -p %{buildroot}$lightproof_dir
echo "%dir %{_libdir}/libreoffice" >> ../common.list
echo "%dir %{_libdir}/libreoffice/share" >> ../common.list
echo "%dir %{_libdir}/libreoffice/share/extensions" >> ../common.list
fi
for file in $files; do
cp -r $file %{buildroot}$lightproof_dir
done
cp -r $files $dsc_files %{buildroot}$lightproof_dir
echo $lightproof_dir >> lightproof.$locale.list
fi
}
@@ -1130,14 +1129,16 @@ for locale_dir in af_ZA an_ES ar be_BY bg_BG bn_BD br_FR bs_BA ca cs_CZ da_DK de
hyph_files=`find -maxdepth 1 -name 'hyph*.dic'`
th_files=`find -maxdepth 1 -name 'th*.dat' -o -name 'th*.idx'`
doc_files=`find -maxdepth 1 -type f | grep '.txt\|.xcu\|.xml\|.png\|.tex\|^[^.]*$' || true`
lightproof_files=`find -maxdepth 1 -name 'pythonpath' -o -name 'dialog' -o -name 'Lightproof*' -o -name 'Linguistic.xcu'`
lightproof_files=`find -maxdepth 1 -name 'pythonpath' -o -name 'dialog' -o -name 'Lightproof*' -o \
-name 'Linguistic.xcu' -o -name 'META-INF' -o -name 'icons' -o \
-name 'description.xml'`
# install dictionary files
echo '%%defattr(-,root,root,-)' > $locale_dir.list
install_dictionary_files $locale_dir $dic_dir "$dic_files"
install_dictionary_files $locale_dir $hyph_dir "$hyph_files"
install_dictionary_files $locale_dir $th_dir "$th_files"
# install documentation
install_doc_files $locale_dir $doc_files
install_doc_files $locale_dir "$doc_files"
# install lightproof files
echo '%%defattr(-,root,root,-)' > lightproof.$locale_dir.list
install_lightproof_files $locale_dir "$lightproof_files"

View File

@@ -215,17 +215,16 @@ function install_lightproof_files
{
locale=$1
files=$2
dsc_files=$3
lightproof_dir=%{_libdir}/libreoffice/share/extensions/lightproof_$locale
if [ ! -z "$files" ]; then
if [[ "$files" =~ 'Lightproof.py' ]]; then
if [ ! -d %{buildroot}$lightproof_dir ]; then
mkdir -p %{buildroot}$lightproof_dir
echo "%dir %{_libdir}/libreoffice" >> ../common.list
echo "%dir %{_libdir}/libreoffice/share" >> ../common.list
echo "%dir %{_libdir}/libreoffice/share/extensions" >> ../common.list
fi
for file in $files; do
cp -r $file %{buildroot}$lightproof_dir
done
cp -r $files $dsc_files %{buildroot}$lightproof_dir
echo $lightproof_dir >> lightproof.$locale.list
fi
}
@@ -244,14 +243,16 @@ for locale_dir in @LANG_DIRS@ ; do
hyph_files=`find -maxdepth 1 -name 'hyph*.dic'`
th_files=`find -maxdepth 1 -name 'th*.dat' -o -name 'th*.idx'`
doc_files=`find -maxdepth 1 -type f | grep '.txt\|.xcu\|.xml\|.png\|.tex\|^[^.]*$' || true`
lightproof_files=`find -maxdepth 1 -name 'pythonpath' -o -name 'dialog' -o -name 'Lightproof*' -o -name 'Linguistic.xcu'`
lightproof_files=`find -maxdepth 1 -name 'pythonpath' -o -name 'dialog' -o -name 'Lightproof*' -o \
-name 'Linguistic.xcu' -o -name 'META-INF' -o -name 'icons' -o \
-name 'description.xml'`
# install dictionary files
echo '%%defattr(-,root,root,-)' > $locale_dir.list
install_dictionary_files $locale_dir $dic_dir "$dic_files"
install_dictionary_files $locale_dir $hyph_dir "$hyph_files"
install_dictionary_files $locale_dir $th_dir "$th_files"
# install documentation
install_doc_files $locale_dir $doc_files
install_doc_files $locale_dir "$doc_files"
# install lightproof files
echo '%%defattr(-,root,root,-)' > lightproof.$locale_dir.list
install_lightproof_files $locale_dir "$lightproof_files"