# Generated from dictionaries-0.3.34.gem by gem2rpm -*- rpm-spec -*- %global gem_name dictionaries Name: rubygem-%{gem_name} Version: 0.3.34 Release: 1%{?dist} Summary: This project is called dictionaries. It used to be called ask_english_words but the name was changed towards "dictionaries", when the focus became on dictionaries in general rather than merely translations from and to the english language. There are a total of 2607 english words registered, with the associated german translation. (It is german primarily because that is my native language, but in principle this project could be extended to include other languages as well. You only need to add a yaml file containing the key-value pairs.) If you need a more comprehensive dictionary, I can recommend the file de-en.txt that is part of the tu-chemnitz distribution ( https://www-user.tu-chemnitz.de/~fri/ding/ ). That file is really huge - about 20 MB. In principle, the dictionaries project could be extended to make use of that massive file instead. I will be thinking about this for the time being (starting at July 2018) License: MIT URL: https://www.rubydoc.info/gems/dictionaries/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel >= 3.4.10 BuildRequires: ruby >= 2.7.6 BuildArch: noarch %description This project is called dictionaries. It used to be called ask_english_words but the name was changed towards "dictionaries", when the focus became on dictionaries in general rather than merely translations from and to the english language. There are a total of 2607 english words registered, with the associated german translation. (It is german primarily because that is my native language, but in principle this project could be extended to include other languages as well. You only need to add a yaml file containing the key-value pairs.) If you need a more comprehensive dictionary, I can recommend the file de-en.txt that is part of the tu-chemnitz distribution ( https://www-user.tu-chemnitz.de/~fri/ding/ ). That file is really huge - about 20 MB. In principle, the dictionaries project could be extended to make use of that massive file instead. I will be thinking about this for the time being (starting at July 2018). . %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %{gem_instdir}/dictionaries.gemspec %doc %{gem_instdir}/doc %changelog * Fri May 19 2023 mockbuilder - 0.3.34-1 - Initial package