Group :: Text tools
RPM: hunspell-ne
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Group: Text tools
# BEGIN SourceDeps(oneline):
BuildRequires: unzip
# END SourceDeps(oneline)
%define fedora 37
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-ne
Summary: Nepali hunspell dictionaries
Version: 20080425
Release: alt2_30
# Upstream Source and URL is down now, please don't report FTBFS bugs
Source: http://nepalinux.org/downloads/ne_NP_dict.zip
URL: http://nepalinux.org/downloads
# License is given in README_ne_NP.txt file
License: LGPL-2.1-only
BuildArch: noarch
Source44: import.info
%description
Nepali hunspell dictionaries.
%prep
%setup -q -c -n ne_NP_dict
sed -i 's|चलन/चल्ती/15,22|चलनचल्ती/15,22|g' ne_NP.dic
sed -i 's|निजामती/I15,22|निजामती/15,22|g' ne_NP.dic
# Remove ^M and trailing whitespace characters
sed -i 's/\r//;s/[ \t]*$//' ne_NP.dic
%build
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
ne_NP_aliases="ne_IN"
for lang in $ne_NP_aliases; do
ln -s ne_NP.aff $lang.aff
ln -s ne_NP.dic $lang.dic
done
popd
%files
%doc README_ne_NP.txt
%{_datadir}/%{dict_dirname}/*
%changelog
…
Full changelog you can see here
# BEGIN SourceDeps(oneline):
BuildRequires: unzip
# END SourceDeps(oneline)
%define fedora 37
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-ne
Summary: Nepali hunspell dictionaries
Version: 20080425
Release: alt2_30
# Upstream Source and URL is down now, please don't report FTBFS bugs
Source: http://nepalinux.org/downloads/ne_NP_dict.zip
URL: http://nepalinux.org/downloads
# License is given in README_ne_NP.txt file
License: LGPL-2.1-only
BuildArch: noarch
Source44: import.info
%description
Nepali hunspell dictionaries.
%prep
%setup -q -c -n ne_NP_dict
sed -i 's|चलन/चल्ती/15,22|चलनचल्ती/15,22|g' ne_NP.dic
sed -i 's|निजामती/I15,22|निजामती/15,22|g' ne_NP.dic
# Remove ^M and trailing whitespace characters
sed -i 's/\r//;s/[ \t]*$//' ne_NP.dic
%build
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
ne_NP_aliases="ne_IN"
for lang in $ne_NP_aliases; do
ln -s ne_NP.aff $lang.aff
ln -s ne_NP.dic $lang.dic
done
popd
%files
%doc README_ne_NP.txt
%{_datadir}/%{dict_dirname}/*
%changelog
…
Full changelog you can see here