summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-06-06 16:23:46 +0200
committerRemi Collet <remi@remirepo.net>2017-06-06 16:23:46 +0200
commit08669f5cd938e7a4d4b86174e7aafd8fde2714b5 (patch)
treeadb4e125ccdd004036b8bf574a351f3ed945e7d4
parente03e7f01eff1c15fd26bfefdfd763fec93a052d4 (diff)
v0.5.17
-rw-r--r--.gitignore9
-rw-r--r--libreoffice-grammalecte.spec13
-rwxr-xr-xmakesrc.sh31
3 files changed, 46 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index f79f64b..1ab5c4f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,7 @@
-Grammalecte-*.oxt
-Grammalecte-*.7z
+package-*.xml
+*.tgz
+*.tar.gz
+*.tar.xz
+*.tar.xz.asc
+*.src.rpm
+*/*rpm
diff --git a/libreoffice-grammalecte.spec b/libreoffice-grammalecte.spec
index 352b174..f86e9be 100644
--- a/libreoffice-grammalecte.spec
+++ b/libreoffice-grammalecte.spec
@@ -17,7 +17,7 @@
# arch-independent extension location
Name: libreoffice-%{extname}
-Version: 0.5.16
+Version: 0.5.17
Release: 1%{?dist}
Summary: French grammar corrector
Summary(fr): Correcteur grammatical Français
@@ -26,10 +26,11 @@ Group: System Environment/Libraries
# *.py from Lightproof are MPLv2.0, extension is GPLv3 and later
License: GPLv3+ and MPLv2.0
URL: http://www.dicollecte.org/grammalecte/
-Source0: http://www.dicollecte.org/grammalecte/oxt/Grammalecte-v%{version}.7z
+# See http://code.grammalecte.net/
+Source0: %{name}-%{version}.tar.xz
Source1: %{name}.metainfo.xml
+Source3: makesrc.sh
-BuildRequires: p7zip
BuildRequires: python3-devel
BuildRequires: libappstream-glib
%if 0%{?fedora} >= 24
@@ -70,8 +71,7 @@ Ce paquet fournit l'extension pour LibreOffice Writer.
%prep
-%setup -qcT
-7za x %{SOURCE0}
+%setup -q
for file in $(find . -name \*.py)
do
@@ -107,6 +107,9 @@ export LANG=fr_FR.UTF-8
%changelog
+* Tue Jun 6 2017 Remi Collet <remi@remirepo.net> - 0.5.17-1
+- update to 0.5.17
+
* Thu Apr 27 2017 Remi Collet <remi@remirepo.net> - 0.5.16-1
- update to 0.5.16
diff --git a/makesrc.sh b/makesrc.sh
new file mode 100755
index 0000000..e74d22d
--- /dev/null
+++ b/makesrc.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+set -x
+
+if [ "$1" = "" ]; then
+ echo usage $0 version [ tag ]
+ exit 1
+fi
+
+FOS=/usr/local/bin/fossil
+VER=$1
+TAG=${2:-v$1}
+
+mkdir libreoffice-grammalecte-$VER
+pushd libreoffice-grammalecte-$VER
+ $FOS clone -u http://code.grammalecte.net grammalecte.fossil
+ $FOS open grammalecte.fossil
+ $FOS checkout $TAG
+ pushd gc_lang/fr/dictionnaire/lexique/corpus_data
+ $FOS uv export stats_frwiki.txt stats_frwiki.txt
+ $FOS uv export stats_frwikisource.txt stats_frwikisource.txt
+ $FOS uv export stats_google_ngram_1.txt stats_google_ngram_1.txt
+ $FOS uv export stats_litterature.txt stats_litterature.txt
+ popd
+ $FOS close
+ rm grammalecte.fossil
+popd
+
+tar cJf libreoffice-grammalecte-$VER.tar.xz libreoffice-grammalecte-$VER
+rm -r libreoffice-grammalecte-$VER
+