|
|
@ -1,19 +1,22 @@
|
|
|
|
%global gem_name crack
|
|
|
|
%global gem_name crack
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Really simple JSON and XML parsing, ripped from Merb and Rails
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 0.4.2
|
|
|
|
Version: 0.4.5
|
|
|
|
Release: 12%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
Summary: Really simple JSON and XML parsing, ripped from Merb and Rails
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://github.com/jnunemaker/crack
|
|
|
|
URL: https://github.com/jnunemaker/crack
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
|
|
|
# git clone https://github.com/jnunemaker/crack.git && cd crack
|
|
|
|
|
|
|
|
# git archive -v -o crack-0.4.5-tests.tar.gz a951228b1ec0d19c8e3100f92b83a07b24c57a99 test/
|
|
|
|
|
|
|
|
Source1: crack-%{version}-tests.tar.gz
|
|
|
|
# ruby package has just soft dependency on rubygem(bigdecimal), while
|
|
|
|
# ruby package has just soft dependency on rubygem(bigdecimal), while
|
|
|
|
# crack always requires it.
|
|
|
|
# crack always requires it.
|
|
|
|
Requires: rubygem(bigdecimal)
|
|
|
|
Requires: rubygem(bigdecimal)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygem(bigdecimal)
|
|
|
|
BuildRequires: rubygem(bigdecimal)
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
BuildRequires: rubygem(safe_yaml)
|
|
|
|
BuildRequires: rubygem(rexml)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
#BZ 781829
|
|
|
|
#BZ 781829
|
|
|
|
Epoch: 1
|
|
|
|
Epoch: 1
|
|
|
@ -21,52 +24,56 @@ Epoch: 1
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Really simple JSON and XML parsing, ripped from Merb and Rails.
|
|
|
|
Really simple JSON and XML parsing, ripped from Merb and Rails.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
%description doc
|
|
|
|
This package contains documentation for %{name}.
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
%setup -q -n %{gem_name}-%{version} -b 1
|
|
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%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
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
|
|
# Fix non-standard-executable-perm rpmlint warning.
|
|
|
|
|
|
|
|
chmod a+x %{buildroot}%{gem_instdir}/script/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
|
|
|
ln -s %{_builddir}/test test
|
|
|
|
|
|
|
|
|
|
|
|
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
|
|
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
|
|
|
|
%doc %{gem_instdir}/LICENSE
|
|
|
|
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
|
|
|
%doc %{gem_instdir}/History
|
|
|
|
|
|
|
|
%{gem_libdir}
|
|
|
|
%{gem_libdir}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
|
|
|
|
%{gem_instdir}/crack.gemspec
|
|
|
|
|
|
|
|
%{gem_instdir}/script
|
|
|
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri Jan 08 2021 Vít Ondruch <vondruch@redhat.com> - 1:0.4.5-1
|
|
|
|
|
|
|
|
- Update to crack 0.4.5.
|
|
|
|
|
|
|
|
Resolves: rhbz#1287909
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.2-12
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.2-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|