commit
f85e254960
BIN
ZenTest-4.11.2.gem
Normal file
BIN
ZenTest-4.11.2.gem
Normal file
Binary file not shown.
81
rubygem-ZenTest.spec
Normal file
81
rubygem-ZenTest.spec
Normal file
@ -0,0 +1,81 @@
|
||||
%global gem_name ZenTest
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 4.11.2
|
||||
Release: 1
|
||||
Summary: Automated test scaffolding for Ruby
|
||||
License: MIT
|
||||
URL: https://github.com/seattlerb/zentest
|
||||
Source0: https://rubygems.org/gems/ZenTest-%{version}.gem
|
||||
BuildRequires: ruby(release) rubygems-devel rubygem(minitest)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
ZenTest is an automated test scaffolding for Ruby that provides 4 different
|
||||
tools: zentest, unit_diff, autotest and multiruby. These tools can be used for
|
||||
test conformance auditing and rapid XP.
|
||||
|
||||
%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
|
||||
gem build ../%{gem_name}-%{version}.gemspec
|
||||
%gem_install
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{gem_dir}
|
||||
cp -a .%{gem_dir}/* \
|
||||
%{buildroot}%{gem_dir}/
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
cp -a .%{_bindir}/* \
|
||||
%{buildroot}%{_bindir}/
|
||||
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
||||
find %{buildroot}%{gem_instdir}/bin -type f | \
|
||||
xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"'
|
||||
find %{buildroot}%{gem_instdir}/bin -type f | \
|
||||
xargs -n 1 sed -i -e 's"^#!/usr/local/bin/ruby"#!/usr/bin/ruby"'
|
||||
find %{buildroot}%{gem_instdir}/test -type f | \
|
||||
xargs -n 1 sed -i -e '/^#!\/usr\/.*\/ruby.*/d'
|
||||
find %{buildroot}%{gem_instdir} -type f | \
|
||||
xargs chmod 0644
|
||||
find %{buildroot}%{gem_instdir}/bin -type f | \
|
||||
xargs chmod 0755
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)'
|
||||
popd
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%{_bindir}/autotest
|
||||
%{_bindir}/multigem
|
||||
%{_bindir}/multiruby
|
||||
%{_bindir}/multiruby_setup
|
||||
%{_bindir}/unit_diff
|
||||
%{_bindir}/zentest
|
||||
%exclude %{gem_instdir}/.*
|
||||
%doc %{gem_instdir}/Manifest.txt
|
||||
%doc %{gem_instdir}/README.txt
|
||||
%{gem_instdir}/bin
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/History.txt
|
||||
%doc %{gem_instdir}/Rakefile
|
||||
%doc %{gem_instdir}/articles
|
||||
%doc %{gem_instdir}/example*.rb
|
||||
%doc %{gem_instdir}/example.txt
|
||||
%doc %{gem_instdir}/test
|
||||
|
||||
%changelog
|
||||
* Fri Aug 7 2020 yanan li <liyanan032@huawei.com> - 4.11.2-1
|
||||
- Package init
|
||||
5
rubygem-ZenTest.yaml
Normal file
5
rubygem-ZenTest.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/seattlerb/zentest.git
|
||||
version_control: github
|
||||
src_repo: seattlerb/zentest
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user