63 lines
1.5 KiB
RPMSpec
63 lines
1.5 KiB
RPMSpec
%global gem_name test_declarative
|
|
Summary: Simply adds a declarative test method syntax to test/unit
|
|
Name: rubygem-%{gem_name}
|
|
Version: 0.0.5
|
|
Release: 3
|
|
License: MIT
|
|
URL: http://github.com/svenfuchs/test_declarative
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
# Minitest 5 support
|
|
# https://github.com/svenfuchs/test_declarative/pull/4
|
|
Patch0: rubygem-test_declarative-0.0.5-minitest5.patch
|
|
BuildRequires: ruby(release) rubygems-devel rubygem(minitest)
|
|
BuildArch: noarch
|
|
%description
|
|
Simply adds a declarative test method syntax to test/unit.
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
Documentation for %{name}
|
|
|
|
%prep
|
|
%setup -q -c -T
|
|
%gem_install -n %{SOURCE0}
|
|
pushd .%{gem_instdir}
|
|
%patch0 -p1
|
|
popd
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%check
|
|
pushd .%{gem_instdir}
|
|
ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
|
|
popd
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_libdir}
|
|
%{gem_spec}
|
|
%doc %{gem_instdir}/MIT-LICENSE
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/README.textile
|
|
%{gem_instdir}/test
|
|
|
|
%changelog
|
|
* Tue Aug 18 2020 tuShenmei <tushenmei@huawei.com> - 0.0.5-1
|
|
- package init
|
|
|
|
%changelog
|
|
* Tue Aug 27 2020 tuShenmei <tushenmei@huawei.com> - 0.0.5-3
|
|
- modify yaml
|