2020-08-25 14:54:20 +08:00
|
|
|
%global gem_name test_declarative
|
|
|
|
|
Summary: Simply adds a declarative test method syntax to test/unit
|
|
|
|
|
Name: rubygem-%{gem_name}
|
2023-11-16 10:46:38 +08:00
|
|
|
Version: 0.0.6
|
|
|
|
|
Release: 1
|
2020-08-25 14:54:20 +08:00
|
|
|
License: MIT
|
|
|
|
|
URL: http://github.com/svenfuchs/test_declarative
|
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
2023-11-16 10:46:38 +08:00
|
|
|
# wget https://github.com/svenfuchs/test_declarative/archive/refs/tags/test_declarative-0.0.6.tar.gz
|
|
|
|
|
# tar -xvf test_declarative-0.0.6.tar.gz
|
|
|
|
|
# cd test_declarative-0.0.6
|
|
|
|
|
# tar -cvf test_declarative_test-0.0.6.tar.gz test
|
|
|
|
|
Source1: test_declarative_test-0.0.6.tar.gz
|
2020-08-25 14:54:20 +08:00
|
|
|
BuildRequires: ruby(release) rubygems-devel rubygem(minitest)
|
2023-11-16 10:46:38 +08:00
|
|
|
BuildRequires: rubygem(did_you_mean)
|
2020-08-25 14:54:20 +08:00
|
|
|
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}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd .%{gem_instdir}
|
2023-11-16 10:46:38 +08:00
|
|
|
tar xf %{SOURCE1}
|
|
|
|
|
cp -r test %{buildroot}%{gem_instdir}
|
|
|
|
|
cd test
|
2020-08-25 14:54:20 +08:00
|
|
|
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}
|
2023-11-16 10:46:38 +08:00
|
|
|
%doc %{gem_instdir}/README.md
|
2020-08-25 14:54:20 +08:00
|
|
|
%{gem_instdir}/test
|
|
|
|
|
|
2020-08-27 16:28:27 +08:00
|
|
|
%changelog
|
2023-11-16 10:46:38 +08:00
|
|
|
* Wed Nov 15 2023 Ge Wang <wang__ge@126.com> - 0.0.6-1
|
|
|
|
|
- update to version 0.0.6
|
|
|
|
|
|
2022-06-08 06:41:21 +00:00
|
|
|
* Thu Aug 27 2020 tuShenmei <tushenmei@huawei.com> - 0.0.5-2
|
2020-08-27 16:28:27 +08:00
|
|
|
- modify yaml
|
|
|
|
|
|
2020-08-25 14:54:20 +08:00
|
|
|
* Tue Aug 18 2020 tuShenmei <tushenmei@huawei.com> - 0.0.5-1
|
|
|
|
|
- package init
|
2020-08-27 16:16:49 +08:00
|
|
|
|