rubygem-hashery/rubygem-hashery.spec
2022-05-10 17:27:14 +08:00

64 lines
1.7 KiB
RPMSpec

%global gem_name hashery
Name: rubygem-%{gem_name}
Version: 2.1.2
Release: 2
Summary: Facets-bread collection of Hash-like classes
License: BSD-2-Clause
URL: http://rubyworks.github.com/hashery
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release) rubygems-devel ruby
BuildArch: noarch
%description
The Hashery is a tight collection of Hash-like classes. Included among its
many offerings are the auto-sorting Dictionary class, the efficient LRUHash,
the flexible OpenHash and the convenient KeyHash. Nearly every class is a
subclass of the CRUDHash which defines a CRUD model on top of Ruby's standard
Hash making it a snap to subclass and augment to fit any specific use case.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%setup -q -c -T
%gem_install -n %{SOURCE0}
%build
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
popd
%files
%dir %{gem_instdir}
%exclude %{gem_instdir}/.*
%license %{gem_instdir}/LICENSE.txt
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/HISTORY.md
%doc %{gem_instdir}/README.md
%{gem_instdir}/Index.yml
%doc %{gem_instdir}/NOTICE.txt
%{gem_instdir}/alt
%{gem_instdir}/demo
%{gem_instdir}/test
%changelog
* Tue May 10 2022 yaoxin <yaoxin30@h-partners.com> - 2.1.2-2
- License compliance rectification
* Sat Jul 25 2020 wutao <wutao61@huawei.com> - 2.1.2-1
- package init