69 lines
1.6 KiB
RPMSpec
69 lines
1.6 KiB
RPMSpec
%global gem_name multi_test
|
|
Name: rubygem-multi_test
|
|
Version: 0.1.2
|
|
Release: 1
|
|
Summary: Wafter-thin gem to disable autorun of various testing libraries
|
|
License: MIT
|
|
URL: http://cukes.info
|
|
Source0: https://rubygems.org/gems/multi_test-%{version}.gem
|
|
BuildRequires: ruby(release)
|
|
BuildRequires: rubygems-devel
|
|
BuildRequires: ruby
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
multi_test gives a uniform interface onto whatever testing library has been
|
|
loaded into a running Ruby process. It can be used to clobber autorun behaviour
|
|
from older versions of Test::Unit that automatically hook in when the user
|
|
requires them.
|
|
|
|
|
|
%package doc
|
|
Summary: Documentation for rubygem-multi_test
|
|
Requires: rubygem-multi_test = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
Documentation for rubygem-multi_test.
|
|
|
|
%prep
|
|
gem unpack %{SOURCE0}
|
|
|
|
%setup -q -D -T -n multi_test-%{version}
|
|
|
|
gem spec %{SOURCE0} -l --ruby > multi_test.gemspec
|
|
|
|
%build
|
|
gem build multi_test.gemspec
|
|
%gem_install
|
|
|
|
%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}/.travis.yml
|
|
%license %{gem_instdir}/LICENSE
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/History.md
|
|
%doc %{gem_instdir}/README.md
|
|
%{gem_instdir}/Makefile
|
|
%{gem_instdir}/Rakefile
|
|
%exclude %{gem_instdir}/multi_test.gemspec
|
|
%{gem_instdir}/test
|
|
|
|
%changelog
|
|
* Mon July 27 2020 yaokai <yaokai13@huawei.com> - 0.1.2-1
|
|
- Package init
|