Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade: rubygem-flexmock version to 3.0.1
Browse files Browse the repository at this point in the history
akhila-guruju committed Dec 19, 2024
1 parent f26ed9c commit f466473
Showing 4 changed files with 94 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ pushd $TMPDIR
git clone https://github.com/doudou/flexmock.git

cd flexmock
git reset --hard $VERSION
git reset --hard v$VERSION
cd ..

tar czf $CURDIR/flexmock-${VERSION}-test-missing-files.tar.gz flexmock/test/
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Signatures": {
"rubygem-flexmock-2.3.6.tar.gz": "f52c6858a761ed035080a767c5ac91b65852092eacd1455425ad4c35897178fc"
"flexmock-3.0.1-test-missing-files.tar.gz": "04903e871570e5543b8e3b1007c5527ade93f513c64771ad9046be293c84c930",
"flexmock-3.0.1.gem": "f58a82058eb7ca0c802a7f82c5f867adcd93c5f2bd9da8d57ef5d3b36513586f",
"flexmock-create-missing-test-files.sh": "d31d3126887e9c13e3cc0824e45483a1626ed2b74b4e7ee3eb3dfcb519f012f7"
}
}
}
102 changes: 87 additions & 15 deletions SPECS-EXTENDED/rubygem-flexmock/rubygem-flexmock.spec
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
Vendor: Microsoft Corporation
Distribution: Azure Linux
%global gem_name flexmock

Summary: Mock object library for ruby
Name: rubygem-%{gem_name}
Version: 2.3.6
Release: 8%{?dist}
Version: 3.0.1
Release: 2%{?dist}
License: MIT
Vendor: Microsoft Corporation
Distribution: Azure Linux
URL: https://github.com/doudou/flexmock
Source0: https://github.com/doudou/%{gem_name}/archive/refs/tags/v%{version}.tar.gz#/rubygem-%{gem_name}-%{version}.tar.gz
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: %{gem_name}-%{version}-test-missing-files.tar.gz
# Source1 is created fron Source2
Source2: flexmock-create-missing-test-files.sh

Requires: ruby(release)
BuildRequires: ruby(release)
BuildRequires: git
BuildRequires: rubygems-devel
BuildRequires: rubygem(minitest) >= 5
BuildRequires: rubygem(rspec) >= 3
@@ -32,10 +34,14 @@ Requires: %{name} = %{version}-%{release}
This package contains documentation for %{name}.

%prep
%autosetup -S git -n %{gem_name}-%{version}
%setup -q -n %{gem_name}-%{version} -a 1
mv ../%{gem_name}-%{version}.gemspec .

find . -name \*.rb | xargs sed -i -e '\@/usr/bin/env@d'
find . -name \*.gem -or -name \*.rb -or -name \*.rdoc | xargs chmod 0644

%build
gem build %{gem_name}
gem build %{gem_name}-%{version}.gemspec
%gem_install

%install
@@ -45,20 +51,41 @@ cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
pushd %{buildroot}%{gem_instdir}
rm -rf \
.autotest .gitignore .togglerc .travis.yml .yardopts \
.github \
Gemfile \
Rakefile \
flexmock.blurb \
flexmock.gemspec \
install.rb
install.rb \
test/ \
%{nil}
popd

rm -f %{buildroot}%{gem_cache}

%check
cp -a flexmock/test .%{gem_instdir}
pushd .%{gem_instdir}

export RUBYOPT=-W:deprecated
export RUBYLIB=$(pwd)/lib:$(pwd):$(pwd)/test
ruby \
-e 'Dir.glob("test/*_test.rb").each {|f| require f}'

# Note: exclude failing tests for now
rspec test/rspec_integration/ \
--exclude-pattern 'test/rspec_integration/spy_example_spec.rb' \
%{nil}
popd


%files
%dir %{gem_instdir}
%doc %{gem_instdir}/[A-Z]*
%license %{gem_instdir}/LICENSE.txt
%doc %{gem_instdir}/[A-CR-Z]*

%{gem_libdir}
%{gem_instdir}/rakelib/
%exclude %{gem_cache}
%{gem_spec}

%files doc
@@ -67,12 +94,57 @@ popd
%{gem_docdir}/

%changelog
* Mon Nov 28 2022 Muhammad Falak <mwani@microsoft.com> - 2.3.6-8
- Switch to building tar.gz instead of .gem
* Thu Dec 19 2024 Akhila Guruju <v-guakhila@microsoft.com> - 3.0.1-2
- Azure Linux import from Fedora 41 (license: MIT).
- License verified

* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.3.6-7
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
* Wed Sep 11 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.1-1
- 3.0.1

* Tue Sep 03 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.0-1
- 3.0.0

* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild

* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Mon Aug 14 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.3.8-1
- 2.3.8

* Tue Aug 08 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.3.6-15
- Handle MiniTest 5.19+

* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Sun Jan 24 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.3.6-8
- Patch to support ruby 3.0
- Use binding.source_location for test
- Properly accept argument and keywords
- Relax error message on test a bit

* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
@@ -26274,8 +26274,8 @@
"type": "other",
"other": {
"name": "rubygem-flexmock",
"version": "2.3.6",
"downloadUrl": "https://github.com/doudou/flexmock/archive/refs/tags/v2.3.6.tar.gz"
"version": "3.0.1",
"downloadUrl": "https://rubygems.org/downloads/flexmock-3.0.1.gem"
}
}
},

0 comments on commit f466473

Please sign in to comment.