diff --git a/crack-0.4.2.gem b/crack-0.4.2.gem deleted file mode 100644 index fdf8e65..0000000 Binary files a/crack-0.4.2.gem and /dev/null differ diff --git a/crack-0.4.5-tests.tar.gz b/crack-0.4.5-tests.tar.gz new file mode 100644 index 0000000..1277b02 Binary files /dev/null and b/crack-0.4.5-tests.tar.gz differ diff --git a/crack-0.4.5.gem b/crack-0.4.5.gem new file mode 100644 index 0000000..d622be1 Binary files /dev/null and b/crack-0.4.5.gem differ diff --git a/rubygem-crack.spec b/rubygem-crack.spec index e0ee9a1..849f71b 100644 --- a/rubygem-crack.spec +++ b/rubygem-crack.spec @@ -2,15 +2,17 @@ Summary: Really simple JSON and XML parsing, ripped from Merb and Rails Name: rubygem-%{gem_name} -Version: 0.4.2 +Version: 0.4.5 Release: 1 License: MIT -URL: http://github.com/jnunemaker/crack -Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem +URL: https://github.com/jnunemaker/crack +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +Source1: crack-%{version}-tests.tar.gz # ruby package has just soft dependency on rubygem(bigdecimal), while # crack always requires it. Requires: rubygem(bigdecimal) -BuildRequires: rubygems-devel rubygem(bigdecimal) rubygem(minitest) rubygem(safe_yaml) +BuildRequires: rubygems-devel rubygem(bigdecimal) rubygem(minitest) +BuildRequires: rubygem-rexml BuildArch: noarch #BZ 781829 Epoch: 1 @@ -22,47 +24,45 @@ Really simple JSON and XML parsing, ripped from Merb and Rails. Summary: Documentation for %{name} Requires: %{name} = %{epoch}:%{version}-%{release} +BuildArch: noarch %description doc This package contains documentation for %{name}. %prep -%setup -q -c -T -%gem_install -n %{SOURCE0} +%setup -q -n %{gem_name}-%{version} -b 1 %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}/ -# Fix non-standard-executable-perm rpmlint warning. -chmod a+x %{buildroot}%{gem_instdir}/script/* - - %check pushd .%{gem_instdir} +ln -s %{_builddir}/test test ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} -%exclude %{gem_instdir}/.* -%doc %{gem_instdir}/LICENSE -%doc %{gem_instdir}/README.md -%doc %{gem_instdir}/History %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} -%{gem_instdir}/Gemfile -%{gem_instdir}/crack.gemspec -%{gem_instdir}/script -%{gem_instdir}/test %changelog +* Tue Mar 29 liyanan - 0.4.5-1 +- update to 0.4.5 + * Mon Jul 27 2020 wangxiao - 0.4.2-1 - package init