|
@@ -2,18 +2,30 @@ Summary: A dictionary of English words for the %{_datadir}/dict directory.
|
|
|
Summary(ja): %{_datadir}/dict に格納される英単語辞書
|
|
|
Name: words
|
|
|
Version: 3.0
|
|
|
-Release: 12%{?_dist_release}
|
|
|
+Release: 13%{?_dist_release}
|
|
|
+Group: system
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
License: public domain
|
|
|
-Group: System Environment/Libraries
|
|
|
-Source: http://www.dcs.shef.ac.uk/research/ilash/Moby/mwords.tar.Z
|
|
|
-URL: http://www.dcs.shef.ac.uk/research/ilash/Moby/
|
|
|
+# The project does not exist now.
|
|
|
+#URL: http://www.dcs.shef.ac.uk/research/ilash/Moby/
|
|
|
+#Source: http://www.dcs.shef.ac.uk/research/ilash/Moby/mwords.tar.Z
|
|
|
+URL: http://en.wikipedia.org/wiki/Moby_Project
|
|
|
+Source: mwords.tar.Z
|
|
|
+
|
|
|
+#428582 - linux.words contains misspelled word "flourescent"
|
|
|
+#440146 - misspelled word in /usr/share/dict/words (architecure)
|
|
|
+#457309 - contains both 'unnecessary' and 'unneccesary'
|
|
|
+#1626689 - linux.words contains "half-embracinghalf-embracingly"
|
|
|
+#1652919 - malformed entry in words file
|
|
|
+Patch0: words-3.0-typos.patch
|
|
|
+#470921 -"Barack" and "Obama" are not in /usr/share/dict/words
|
|
|
+Patch1: words-3.0-presidents.patch
|
|
|
|
|
|
BuildArch: noarch
|
|
|
BuildRoot: %{_tmppath}/words-%{version}-root
|
|
|
-BuildRequires: ncompress nkf coreutils grep
|
|
|
-
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
+BuildRequires: coreutils grep dos2unix
|
|
|
|
|
|
%description
|
|
|
The words file is a dictionary of English words for the %{_datadir}/dict
|
|
@@ -29,21 +41,22 @@ words ファイルは %{_datadir}/dict ディレクトリに格納される
|
|
|
|
|
|
%prep
|
|
|
%setup -q -c
|
|
|
+%patch0 -p1 -b .typos
|
|
|
+%patch1 -p1 -b .presidents
|
|
|
+
|
|
|
|
|
|
%build
|
|
|
cd mwords
|
|
|
-#dos2unix -o *
|
|
|
-for f in *
|
|
|
-do
|
|
|
- mv $f $f.orig
|
|
|
- nkf --unix $f.orig > $f
|
|
|
- rm -f $f.orig
|
|
|
-done
|
|
|
-
|
|
|
+dos2unix -o *
|
|
|
chmod a+r *
|
|
|
-cat [1-9]*.??? | fgrep -v \'s | egrep "^[[:alnum:]'&!,./-]+$" | sort --ignore-case --dictionary-order | uniq > moby
|
|
|
+cat [1-9]*.??? | egrep --invert-match "'s$" | egrep "^[[:alnum:]'&!,./-]+$" | sort --ignore-case --dictionary-order | uniq > moby
|
|
|
|
|
|
cat <<EOF >license.txt
|
|
|
+***
|
|
|
+ The license in the readme.txt file is original and DEPRECATED
|
|
|
+ license of The Moby lexicon project.
|
|
|
+***
|
|
|
+
|
|
|
On June 1, 1996 Grady Ward announced that the fruits of
|
|
|
the Moby project were being placed in the public domain:
|
|
|
|
|
@@ -64,6 +77,7 @@ Arcata, CA 95521-4884
|
|
|
daedal@myrealbox.com
|
|
|
EOF
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
@@ -71,18 +85,23 @@ install -d $RPM_BUILD_ROOT%{_datadir}/dict
|
|
|
install -m644 mwords/moby $RPM_BUILD_ROOT%{_datadir}/dict/linux.words
|
|
|
ln -sf linux.words $RPM_BUILD_ROOT%{_datadir}/dict/words
|
|
|
|
|
|
+
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
-%doc mwords/readme.txt mwords/license.txt
|
|
|
+%license mwords/license.txt
|
|
|
+%doc mwords/readme.txt
|
|
|
%{_datadir}/dict/linux.words
|
|
|
%{_datadir}/dict/words
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Mar 04 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0-13
|
|
|
+- imported Patch0 and 1 from rawhide.
|
|
|
+
|
|
|
* Wed Jan 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0-12
|
|
|
- rebuild with VineSeed environment
|
|
|
|