[hunspell-pt] latest pt_PT and pt_BR versions

Caolán McNamara caolanm at fedoraproject.org
Tue Apr 10 22:25:46 UTC 2012


commit 1a21f4c7c59c3b50fce0d91815f17fd54e67a464
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Apr 10 23:25:41 2012 +0100

    latest pt_PT and pt_BR versions

 .gitignore       |    4 ++--
 hunspell-pt.spec |   24 ++++++++++++++++++------
 sources          |    4 ++--
 3 files changed, 22 insertions(+), 10 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 6dd9e06..3a9c689 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-/pt_BR-2011-05-27AOC.zip
-/hunspell-pt_PT-20111102.tar.gz
+/hunspell-pt_PT-20120312.tar.gz
+/vero_pt_br_v210aoc.oxt
diff --git a/hunspell-pt.spec b/hunspell-pt.spec
index f50b62c..d72404e 100644
--- a/hunspell-pt.spec
+++ b/hunspell-pt.spec
@@ -1,10 +1,10 @@
 Name: hunspell-pt
 Summary: Portuguese hunspell dictionaries
-%define upstreamid 20111102
+%define upstreamid 20120312
 Version: 0.%{upstreamid}
-Release: 2%{?dist}
-Source0: http://natura.di.uminho.pt/download/sources/Dictionaries/hunspell/hunspell-pt_PT-20111102.tar.gz
-Source1: http://www.broffice.org/files/pt_BR-2011-05-27AOC.zip
+Release: 1%{?dist}
+Source0: http://natura.di.uminho.pt/download/sources/Dictionaries/hunspell/hunspell-pt_PT-20120312.tar.gz
+Source1: http://extensions.libreoffice.org/extension-center/vero-verificador-ortografico-e-hifenizador-em-portugues-do-brasil/pscreleasefolder.2012-01-04.1563120832/2.1/vero_pt_br_v210aoc.oxt
 Group: Applications/Text
 URL: http://www.broffice.org/verortografico/baixar
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -18,7 +18,7 @@ Requires: hunspell
 Portuguese hunspell dictionaries.
 
 %prep
-%setup -q -n hunspell-pt_PT-20111102
+%setup -q -n hunspell-pt_PT-20120312
 unzip -q -o %{SOURCE1}
 for i in README_pt_BR.TXT README_pt_PT.txt; do
   if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
@@ -36,7 +36,15 @@ done
 %install
 rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
-cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
+cp -p pt*.dic pt*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
+
+pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
+pt_BR_aliases="pt_AO"
+for lang in $pt_BR_aliases; do
+        ln -s pt_BR.aff $lang.aff
+        ln -s pt_BR.dic $lang.dic
+done
+popd
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -47,6 +55,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/myspell/*
 
 %changelog
+* Tue Apr 10 2012 Caolán McNamara <caolanm at redhat.com> - 0.20120312-1
+- latest pt_PT and pt_BR versions
+- alias pt_AO to pt_BR (post-1990 orthographic acord)
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.20111102-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/sources b/sources
index e829fe6..0ed63f0 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-606bf3aca8ae8b4f7dfece9164bcf725  pt_BR-2011-05-27AOC.zip
-5ddfa9be717b063df142d2a8a3ac7877  hunspell-pt_PT-20111102.tar.gz
+d7708f78e2ee38387fd9085966b9f4db  hunspell-pt_PT-20120312.tar.gz
+28a04297328ad109926b292cd80dd498  vero_pt_br_v210aoc.oxt


More information about the scm-commits mailing list