words/words.spec

50 lines
1.4 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:19:55 -04:00
%define _dirname__ files
Name: words
Version: 3.0
Release: 34
2019-09-30 11:19:55 -04:00
Summary: An English words dictionary
License: Public Domain
URL: http://en.wikipedia.org/wiki/Moby_Project
Source0: https://www.gutenberg.org/files/3201/files.zip
2020-01-09 10:20:01 +08:00
Source1: http://www.gutenberg.org/files/3201/3201.txt
2019-09-30 11:19:55 -04:00
BuildArch: noarch
BuildRequires: dos2unix coreutils
%description
The words package contains a dictionary of English words. The
dictionary files are stored in /usr/share/dict/ directory. Some programs
will use this dictionary to check English spelling. Other users of this
dictionary will use it to check bad passwords
%prep
%setup -c -q -n %{name}-%{version}
%build
dos2unix -o %{_dirname__}/*;chmod a+r %{_dirname__}/*
cat %{_dirname__}/* | sort --ignore-case --dictionary-order | uniq > linux.words
%install
install -Dm644 linux.words %{buildroot}%{_datadir}/dict/linux.words
ln -sf linux.words %{buildroot}%{_datadir}/dict/words
cp -f %{SOURCE1} readme.txt
%files
%doc readme.txt
%{_datadir}/dict/*
%changelog
* Thu Oct 27 2022 dongyuzhen <dongyuzhen@h-partners.com> - 3.0-34
- Rebuild for next release
2022-04-26 17:23:51 +08:00
* Tue Apr 26 2022 renhongxun<renhongxun@h-partners.com> - 3.0-33
- rebuild words
2020-01-09 10:20:01 +08:00
* Thu Jan 09 2020 zhangguangzhi<zhangguangzhi3@huawei.com> - 3.0-32
- add 3201.txt path
2019-09-30 11:19:55 -04:00
* Tue Sep 10 2019 huzhiyu<huzhiyu1@huawei.com> - 3.0-31
- Package init