diff --git a/deacon-1.0.0.gem b/deacon-1.0.0.gem new file mode 100644 index 0000000000000000000000000000000000000000..9a49368bd1a334eb949444d2972f2e596fee0b3f Binary files /dev/null and b/deacon-1.0.0.gem differ diff --git a/deacon-1.0.0.tar.gz b/deacon-1.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a51bc11ed7f6fee6361a67804ccb9bc829ef3885 Binary files /dev/null and b/deacon-1.0.0.tar.gz differ diff --git a/rubygem-deacon.spec b/rubygem-deacon.spec new file mode 100644 index 0000000000000000000000000000000000000000..705528613e46ce1b4711b892a6996814329488c7 --- /dev/null +++ b/rubygem-deacon.spec @@ -0,0 +1,72 @@ +%global pkg_name %{name} + +%global gem_name deacon + +Name: rubygem-%{gem_name} +Version: 1.0.0 +Release: 1 +Summary: Human readable random name generator +Group: Development/Languages +License: GPLv3 and Public domain +URL: https://github.com/lzap/deacon +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +Source1: https://github.com/lzap/%{gem_name}/archive/refs/tags/%{gem_name}-%{version}.tar.gz +Requires: ruby(release) +Requires: ruby +Requires: ruby(rubygems) +BuildRequires: ruby(release) +BuildRequires: ruby +BuildRequires: rubygems-devel +BuildArch: noarch +Provides: rubygem(%{gem_name}) = %{version} + +%description +Provides human readable names using continious LFSR. + + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires: %{pkg_name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{pkg_name}. + +%prep +gem unpack %{SOURCE0} + +%setup -q -D -T -n %{gem_name}-%{version} + +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec + +%build +# Create the gem as gem install only works on a gem file +gem build %{gem_name}.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 -pa .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%files +%dir %{gem_instdir} +%doc %{gem_instdir}/LICENSE +%{gem_instdir}/data +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%{gem_instdir}/test + +%changelog +* Mon Jun 7 2021 liqiuyu - 1.0.0-1 +- Init project