|
1 | | -Vendor: Microsoft Corporation |
2 | | -Distribution: Azure Linux |
3 | 1 | %global gem_name flexmock |
4 | 2 |
|
5 | 3 | Summary: Mock object library for ruby |
6 | 4 | Name: rubygem-%{gem_name} |
7 | | -Version: 2.3.6 |
8 | | -Release: 8%{?dist} |
| 5 | +Version: 3.0.1 |
| 6 | +Release: 2%{?dist} |
9 | 7 | License: MIT |
| 8 | +Vendor: Microsoft Corporation |
| 9 | +Distribution: Azure Linux |
10 | 10 | URL: https://github.com/doudou/flexmock |
11 | | -Source0: https://github.com/doudou/%{gem_name}/archive/refs/tags/v%{version}.tar.gz#/rubygem-%{gem_name}-%{version}.tar.gz |
| 11 | +Source0: https://github.com/doudou/%{gem_name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz |
12 | 12 |
|
13 | 13 | Requires: ruby(release) |
14 | 14 | BuildRequires: ruby(release) |
15 | | -BuildRequires: git |
16 | 15 | BuildRequires: rubygems-devel |
17 | 16 | BuildRequires: rubygem(minitest) >= 5 |
18 | 17 | BuildRequires: rubygem(rspec) >= 3 |
| 18 | +BuildRequires: git |
19 | 19 | Requires: ruby(rubygems) |
20 | 20 | Provides: rubygem(%{gem_name}) = %{version}-%{release} |
21 | 21 | BuildArch: noarch |
@@ -45,15 +45,37 @@ cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ |
45 | 45 | pushd %{buildroot}%{gem_instdir} |
46 | 46 | rm -rf \ |
47 | 47 | .autotest .gitignore .togglerc .travis.yml .yardopts \ |
| 48 | + .github \ |
48 | 49 | Gemfile \ |
49 | 50 | Rakefile \ |
50 | 51 | flexmock.blurb \ |
51 | 52 | flexmock.gemspec \ |
52 | | - install.rb |
| 53 | + install.rb \ |
| 54 | + test/ \ |
| 55 | + %{nil} |
53 | 56 | popd |
54 | 57 |
|
| 58 | +rm -f %{buildroot}%{gem_cache} |
| 59 | + |
| 60 | +%check |
| 61 | +cp -a flexmock/test .%{gem_instdir} |
| 62 | +pushd .%{gem_instdir} |
| 63 | + |
| 64 | +export RUBYOPT=-W:deprecated |
| 65 | +export RUBYLIB=$(pwd)/lib:$(pwd):$(pwd)/test |
| 66 | +ruby \ |
| 67 | + -e 'Dir.glob("test/*_test.rb").each {|f| require f}' |
| 68 | + |
| 69 | +# Note: exclude failing tests for now |
| 70 | +rspec test/rspec_integration/ \ |
| 71 | + --exclude-pattern 'test/rspec_integration/spy_example_spec.rb' \ |
| 72 | + %{nil} |
| 73 | +popd |
| 74 | + |
| 75 | + |
55 | 76 | %files |
56 | 77 | %dir %{gem_instdir} |
| 78 | +%license %{gem_instdir}/LICENSE.txt |
57 | 79 | %doc %{gem_instdir}/[A-Z]* |
58 | 80 |
|
59 | 81 | %{gem_libdir} |
|
67 | 89 | %{gem_docdir}/ |
68 | 90 |
|
69 | 91 | %changelog |
70 | | -* Mon Nov 28 2022 Muhammad Falak <mwani@microsoft.com> - 2.3.6-8 |
71 | | -- Switch to building tar.gz instead of .gem |
72 | | -- License verified |
| 92 | +* Thu Dec 19 2024 Akhila Guruju <v-guakhila@microsoft.com> - 3.0.1-2 |
| 93 | +- Initial Azure Linux import from Fedora 41 (license: MIT). |
| 94 | +- License verified. |
| 95 | + |
| 96 | +* Wed Sep 11 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.1-1 |
| 97 | +- 3.0.1 |
| 98 | + |
| 99 | +* Tue Sep 03 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.0-1 |
| 100 | +- 3.0.0 |
| 101 | + |
| 102 | +* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.8-4 |
| 103 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild |
| 104 | + |
| 105 | +* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.8-3 |
| 106 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 107 | + |
| 108 | +* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.8-2 |
| 109 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 110 | + |
| 111 | +* Mon Aug 14 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.3.8-1 |
| 112 | +- 2.3.8 |
| 113 | + |
| 114 | +* Tue Aug 08 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.3.6-15 |
| 115 | +- Handle MiniTest 5.19+ |
| 116 | + |
| 117 | +* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-14 |
| 118 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild |
| 119 | + |
| 120 | +* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-13 |
| 121 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild |
| 122 | + |
| 123 | +* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-12 |
| 124 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild |
| 125 | + |
| 126 | +* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-11 |
| 127 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
| 128 | + |
| 129 | +* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-10 |
| 130 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild |
| 131 | + |
| 132 | +* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-9 |
| 133 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
| 134 | + |
| 135 | +* Sun Jan 24 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.3.6-8 |
| 136 | +- Patch to support ruby 3.0 |
| 137 | + - Use binding.source_location for test |
| 138 | + - Properly accept argument and keywords |
| 139 | + - Relax error message on test a bit |
73 | 140 |
|
74 | | -* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.3.6-7 |
75 | | -- Initial CBL-Mariner import from Fedora 32 (license: MIT). |
| 141 | +* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-7 |
| 142 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
76 | 143 |
|
77 | 144 | * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-6 |
78 | 145 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
|
0 commit comments