135 lines
3.8 KiB
RPMSpec
135 lines
3.8 KiB
RPMSpec
Name: hunspell-es
|
|
Epoch: 1
|
|
Version: 2.8
|
|
Release: 1mamba
|
|
Summary: Spanish hunspell dictionaries
|
|
Group: System/Internationalization
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/sbosio/rla-es
|
|
Source: https://github.com/sbosio/rla-es.git/v%{version}/rla-es-%{version}.tar.bz2
|
|
License: GPL, LGPL, MPL 1.1
|
|
## AUTOBUILDREQ-BEGIN
|
|
## AUTOBUILDREQ-END
|
|
%ifnarch arm
|
|
BuildRequires: libQt5WebEngine
|
|
%endif
|
|
Requires: hunspell
|
|
Supplements: (hunspell and langpacks-es)
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%package -n hyphen-es
|
|
Summary: Spanish hyphenation rules
|
|
Group: System/Internationalization
|
|
Requires: libhyphen
|
|
Obsoletes: hyphen-es <= 20040810
|
|
|
|
%description -n hyphen-es
|
|
%{summary}.
|
|
|
|
%package -n mythes-es
|
|
Summary: Spanish thesaurus
|
|
Group: System/Internationalization
|
|
Requires: libmythes
|
|
Obsoletes: mythes-es <= 20110122
|
|
|
|
%description -n mythes-es
|
|
%{summary}.
|
|
|
|
%prep
|
|
%setup -q -n rla-es-%{version}
|
|
|
|
%build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
# Hunspell
|
|
mkdir -p %{buildroot}%{_datadir}/myspell
|
|
cp -p source-code/hispalabras-0.1/hispalabras/es_ANY.dic %{buildroot}%{_datadir}/myspell/es_ES.dic
|
|
cp -p source-code/hispalabras-0.1/hispalabras/es_ANY.aff %{buildroot}%{_datadir}/myspell/es_ES.aff
|
|
|
|
LANGS="es_AR es_BO es_CL es_CO es_CR es_CU es_DO es_EC es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_PY es_SV es_US es_UY es_VE"
|
|
|
|
for lang in ${LANGS}; do
|
|
ln -s es_ES.aff %{buildroot}%{_datadir}/myspell/${lang}.aff
|
|
ln -s es_ES.dic %{buildroot}%{_datadir}/myspell/${lang}.dic
|
|
done
|
|
|
|
# Hyphen
|
|
install -Dm644 separacion/hyph_es.dic -t %{buildroot}%{_datadir}/hyphen/
|
|
|
|
for lang in ${LANGS}; do
|
|
ln -s hyph_es.dic %{buildroot}%{_datadir}/hyphen/hyph_${lang}.dic
|
|
done
|
|
|
|
# Mythes
|
|
install -Dm644 sinonimos/palabras/th_es_v2.* -t %{buildroot}%{_datadir}/mythes
|
|
|
|
for lang in ${LANGS}; do
|
|
ln -s th_es_v2.idx %{buildroot}%{_datadir}/mythes/th_es_${lang}_v2.idx
|
|
ln -s th_es_v2.dat %{buildroot}%{_datadir}/mythes/th_es_${lang}_v2.dat
|
|
done
|
|
|
|
# Hunspell symlinks
|
|
install -d %{buildroot}%{_datadir}/hunspell/
|
|
for file in %{buildroot}%{_datadir}/myspell/*; do
|
|
ln -sv ../myspell/$(basename $file) %{buildroot}%{_datadir}/hunspell/
|
|
done
|
|
|
|
%ifnarch arm
|
|
# Install webengine dictionaries
|
|
install -d %{buildroot}%{_datadir}/qt/qtwebengine_dictionaries/
|
|
for _file in %{buildroot}%{_datadir}/myspell/*.dic; do
|
|
_filename=$(basename $_file)
|
|
QT_WEBENGINE_ICU_DATA_DIR=%{_datadir}/qt5/resources %{_libdir}/qt5/bin/qwebengine_convert_dict $_file %{buildroot}%{_datadir}/qt/qtwebengine_dictionaries/${_filename/\.dic/\.bdic}
|
|
done
|
|
%endif
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_datadir}/myspell/es_*.dic
|
|
%{_datadir}/myspell/es_*.aff
|
|
%{_datadir}/hunspell/es_*.dic
|
|
%{_datadir}/hunspell/es_*.aff
|
|
%ifnarch arm
|
|
%{_datadir}/qt/qtwebengine_dictionaries/es_*.bdic
|
|
%endif
|
|
%doc LICENSE.md
|
|
|
|
%files -n hyphen-es
|
|
%defattr(-,root,root)
|
|
%{_datadir}/hyphen/hyph_es*.dic
|
|
%doc LICENSE.md
|
|
|
|
%files -n mythes-es
|
|
%defattr(-,root,root)
|
|
%{_datadir}/mythes/th_es*_v2.idx
|
|
%{_datadir}/mythes/th_es*_v2.dat
|
|
%doc LICENSE.md
|
|
|
|
%changelog
|
|
* Wed Aug 23 2023 Automatic Build System <autodist@mambasoft.it> 2.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Oct 14 2022 Automatic Build System <autodist@mambasoft.it> 2.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jan 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-2mamba
|
|
- install hunspell symlinks and qtwebengine dictionaries
|
|
|
|
* Tue Jan 04 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-1mamba
|
|
- update to 2.6
|
|
|
|
* Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2011025-2mamba
|
|
- rebuilt
|
|
|
|
* Tue Jan 25 2011 gil <puntogil@libero.it> 2011025-1mamba
|
|
- package created by autospec
|