commit 5624f2a277c23cd4a5a89f7f5d7c7a1756fc8ff8 Author: MSVSphere Packaging Team Date: Wed Jan 10 04:25:08 2024 +0300 import rubygem-test_declarative-0.0.6-2.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a440ad4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/test_declarative-0.0.6-test.tar.gz +SOURCES/test_declarative-0.0.6.gem diff --git a/.rubygem-test_declarative.metadata b/.rubygem-test_declarative.metadata new file mode 100644 index 0000000..47a591e --- /dev/null +++ b/.rubygem-test_declarative.metadata @@ -0,0 +1,2 @@ +5d4f860056822f09ecaaa2be61bfc95fdf3968d2 SOURCES/test_declarative-0.0.6-test.tar.gz +0edf9d235e85d23e949f02b40819feebc305dca2 SOURCES/test_declarative-0.0.6.gem diff --git a/SPECS/rubygem-test_declarative.spec b/SPECS/rubygem-test_declarative.spec new file mode 100644 index 0000000..3b7d0d8 --- /dev/null +++ b/SPECS/rubygem-test_declarative.spec @@ -0,0 +1,146 @@ +# Generated from test_declarative-0.0.5.gem by gem2rpm -*- rpm-spec -*- +%global gem_name test_declarative + +Name: rubygem-%{gem_name} +Version: 0.0.6 +Release: 2%{?dist} +Summary: Simply adds a declarative test method syntax to test/unit +License: MIT +URL: http://github.com/svenfuchs/test_declarative +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# git clone https://github.com/svenfuchs/test_declarative.git && cd test_declarative +# git archive -v -o test_declarative-0.0.6-test.tar.gz v0.0.6 test/ +Source1: %{gem_name}-%{version}-test.tar.gz +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby +BuildRequires: rubygem(minitest) +BuildRequires: rubygem(test-unit) +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 -n %{gem_name}-%{version} -b 1 + +%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 +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +pushd .%{gem_instdir} +ln -s %{_builddir}/test test + +# Use `BUNDLE_GEMFILE` env variable to trick the test suite to run against +# various test frameworks (and ignore Minitest 4.x). +# https://github.com/svenfuchs/test_declarative/blob/4c0ccc6f649f33f76772a826e6afd367b143cd66/test/test_declarative_test.rb#L10-L37 +BUNDLE_GEMFILE=Gemfile ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' +BUNDLE_GEMFILE=Gemfile.unit-test ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' +popd + +%files +%dir %{gem_instdir} +%license %{gem_instdir}/MIT-LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.md + +%changelog +* Wed Jan 10 2024 MSVSphere Packaging Team - 0.0.6-2 +- Rebuilt for MSVSphere 9.3 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Sep 21 2022 Vít Ondruch - 0.0.6-1 +- Update to TestDeclarative 0.0.6. + Resolves: rhbz#1454751 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.0.5-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.0.5-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.0.5-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.0.5-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.0.5-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.0.5-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.0.5-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.0.5-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 0.0.5-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 0.0.5-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.0.5-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.0.5-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.0.5-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 0.0.5-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Jan 19 2015 Josef Stribny - 0.0.5-8 +- Use Minitest 5 + +* Thu Jun 19 2014 Vít Ondruch - 0.0.5-7 +- Fix FTBFS in Rawhide (rhbz#1107256). + +* Sun Jun 08 2014 Fedora Release Engineering - 0.0.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.0.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Feb 26 2013 Vít Ondruch - 0.0.5-4 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jul 21 2012 Fedora Release Engineering - 0.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 20 2012 Bohuslav Kabrda - 0.0.5-1 +- Initial package