rubygem-rspec-support/rubygem-rspec-support.spec

318 lines
9.5 KiB
RPMSpec
Raw Permalink Normal View History

2014-03-18 11:14:22 +00:00
%global gem_name rspec-support
2024-02-09 06:22:54 +00:00
%global mainver 3.13.0
2014-08-14 08:57:28 +00:00
%undefine prever
2014-03-18 11:14:22 +00:00
%global baserelease 3
2014-03-18 11:14:22 +00:00
%global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g')
2024-02-09 06:46:13 +00:00
%bcond_with bootstrap
2014-03-18 11:14:22 +00:00
2018-02-09 04:58:32 +00:00
%undefine __brp_mangle_shebangs
2014-03-18 11:14:22 +00:00
Name: rubygem-%{gem_name}
Version: %{mainver}
2023-03-24 07:29:49 +00:00
Release: %{?prever:0.}%{baserelease}%{?prever:.%{prerpmver}}%{?dist}
2014-03-18 11:14:22 +00:00
Summary: Common functionality to Rspec series
2023-03-15 07:56:54 +00:00
# SPDX confirmed
2014-03-18 11:14:22 +00:00
License: MIT
URL: https://github.com/rspec/rspec-support
Source0: https://rubygems.org/gems/%{gem_name}-%{mainver}%{?prever}.gem
2018-11-18 21:43:28 +00:00
# %%{SOURCE2} %%{name} %%{version}
2014-11-10 07:37:38 +00:00
Source1: rubygem-%{gem_name}-%{version}-full.tar.gz
Source2: rspec-related-create-full-tarball.sh
# tweak regex for search path
Patch100: rubygem-rspec-support-3.2.1-callerfilter-searchpath-regex.patch
2014-11-10 07:37:38 +00:00
2015-12-08 07:22:00 +00:00
#BuildRequires: ruby(release)
2014-03-18 11:14:22 +00:00
BuildRequires: rubygems-devel
2022-02-10 03:33:09 +00:00
%if %{without bootstrap}
2014-11-10 07:37:38 +00:00
BuildRequires: rubygem(rspec)
2015-12-08 07:22:00 +00:00
BuildRequires: rubygem(thread_order)
2016-07-23 16:21:21 +00:00
BuildRequires: rubygem(bigdecimal)
2022-01-29 14:37:26 +00:00
# spec/rspec/support/spec/shell_out_spec.rb -> lib/rspec/support/spec/library_wide_checks.rb
# -> rake (%%check)
BuildRequires: rubygem(rake)
2015-08-02 12:15:01 +00:00
BuildRequires: git
2014-11-10 07:37:38 +00:00
%endif
2014-03-18 11:14:22 +00:00
BuildArch: noarch
%description
`RSpec::Support` provides common functionality to `RSpec::Core`,
`RSpec::Expectations` and `RSpec::Mocks`. It is considered
suitable for internal use only at this time.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}
%global version_orig %{version}
%global version %{version_orig}%{?prever}
%prep
%setup -q -T -n %{gem_name}-%{version} -b 1
2014-03-18 11:14:22 +00:00
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
2023-07-01 07:13:53 +00:00
%patch -P100 -p1
2014-11-10 07:37:38 +00:00
2014-03-18 11:14:22 +00:00
%build
gem build %{gem_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
2014-11-10 07:37:38 +00:00
%check
2022-02-10 03:33:09 +00:00
%if %{without bootstrap}
2021-02-01 06:20:07 +00:00
# UTF-8 is needed
2018-11-18 21:43:28 +00:00
LANG=C.UTF-8
2017-02-03 15:59:32 +00:00
2015-12-08 07:22:00 +00:00
# Test failure needs investigation...
FAILFILE=()
FAILTEST=()
2016-07-23 15:47:46 +00:00
%if 0
2015-12-08 07:22:00 +00:00
FAILFILE+=("spec/rspec/support/differ_spec.rb")
FAILTEST+=("copes with encoded strings")
2016-07-23 15:47:46 +00:00
%endif
2015-12-08 07:22:00 +00:00
for ((i = 0; i < ${#FAILFILE[@]}; i++)) {
sed -i \
-e "\@${FAILTEST[$i]}@s|do$|, :broken => true do|" \
${FAILFILE[$i]}
}
2022-02-10 03:33:09 +00:00
export RUBYLIB=$(pwd)/lib
rspec spec/ || rspec --tag ~broken
2014-11-10 07:37:38 +00:00
%endif
2014-03-18 11:14:22 +00:00
%files
%dir %{gem_instdir}
2015-12-08 07:22:00 +00:00
%license %{gem_instdir}/LICENSE.md
2014-08-14 08:57:28 +00:00
%doc %{gem_instdir}/Changelog.md
%doc %{gem_instdir}/README.md
2014-03-18 11:14:22 +00:00
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
2020-12-11 06:16:20 +00:00
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 3.13.0-3
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.13.0-2
- Bump release for June 2024 mass rebuild
2024-02-09 06:22:54 +00:00
* Fri Feb 09 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.0-1
- 3.13.0
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2023-07-01 07:13:53 +00:00
* Sat Jul 1 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.12.1-1
- 3.12.1
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0-3.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sun Dec 11 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.12.0-3
- Backport upstrem patch for pending broken test with ruby >= 3.1.3
* Fri Dec 2 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.12.0-2
- Pull upstream patch (under review) for ruby filer deadlock treatment
2022-10-27 06:40:55 +00:00
* Thu Oct 27 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.12.0-1
- 3.12.0
2022-09-15 06:39:43 +00:00
* Thu Sep 15 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.11.1-1
- 3.11.1
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.0-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-02-10 03:33:09 +00:00
* Thu Feb 10 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.11.0-1
- 3.11.0
2022-01-29 14:37:26 +00:00
* Sat Jan 29 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.3-2
- BR: rubygem(rake) for %%check
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.3-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2021-11-04 05:17:48 +00:00
* Thu Nov 4 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.3-1
- 3.10.3
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.2-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-02-01 06:20:07 +00:00
* Mon Feb 1 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.2-1
- 3.10.2
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.1-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-12-29 05:38:30 +00:00
* Tue Dec 29 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.1-1
- 3.10.1
2020-12-11 05:42:20 +00:00
* Fri Dec 11 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.0-1
- Enable tests again
* Fri Dec 11 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.0-0.1
- 3.10.0
- Once disable test for bootstrap
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.3-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-05-03 05:19:03 +00:00
* Sun May 3 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.9.3-1
- 3.9.3
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.2-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2020-05-03 05:19:03 +00:00
* Mon Dec 30 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.9.2-1
2019-12-30 13:19:01 +00:00
- 3.9.2
2020-05-03 05:19:03 +00:00
* Mon Dec 30 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.9.1-1
2019-12-30 02:15:29 +00:00
- 3.9.1
2020-05-03 05:19:03 +00:00
* Tue Dec 10 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.9.0-2
2019-12-10 06:52:58 +00:00
- Enable tests again
2020-05-03 05:19:03 +00:00
* Tue Dec 10 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.9.0-0.1
2019-12-10 05:59:55 +00:00
- 3.9.0
- Once disable test for bootstrap
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.2-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-06-21 07:06:37 +00:00
* Fri Jun 21 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.8.2-1
- 3.8.2
* Tue Feb 5 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.8.0-2
- Backport upstream patch for ruby 2.6 changes
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-12-13 05:53:08 +00:00
* Thu Dec 13 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.8.0-1
- Enable tests again
2018-12-13 05:08:17 +00:00
* Wed Dec 12 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.8.0-0.1
- 3.8.0
- Once disable test for bootstrap
2018-11-18 21:43:28 +00:00
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.7.1-1.2
- Use C.UTF-8 locale
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-02-09 04:58:32 +00:00
* Fri Feb 9 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.7.1-1
- 3.7.1
2017-11-13 06:59:25 +00:00
* Mon Nov 13 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.7.0-1
- Enable tests again
2017-11-13 06:49:19 +00:00
* Mon Nov 13 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.7.0-0.1
- 3.7.0
- Once disable tests
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-05-06 14:41:29 +00:00
* Sat May 6 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.6.0-1
- Enable tests again
2017-05-06 13:15:52 +00:00
* Sat May 6 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.6.0-0.1
- 3.6.0
- Once disable tests
* Tue Feb 21 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.5.0-3
- Always use full tar.gz for installed files and
keep using gem file for gem spec (ref: bug 1425220)
2017-02-03 15:59:32 +00:00
* Fri Feb 03 2017 Jun Aruga <jaruga@redhat.com> - 3.5.0-2
- Fix for Ruby 2.4.0 compatibility.
2016-07-23 16:12:29 +00:00
* Sun Jul 24 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.5.0-1
- Enable tests again
2016-07-23 15:47:46 +00:00
* Sat Jul 23 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.5.0-0.1
- 3.5.0
- Once disable tests
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.1-2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-12-08 08:24:26 +00:00
* Tue Dec 8 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.4.1-2
- Enable tests again
2015-12-08 07:22:00 +00:00
* Tue Dec 8 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.4.1-1
- 3.4.1
- Once disable tests
2015-08-02 11:40:53 +00:00
* Sun Aug 2 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.0-2
- Enable tests again
2015-08-02 07:16:52 +00:00
* Sun Aug 2 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.0-1
- 3.3.0
- Once disable tests
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-02-25 06:36:01 +00:00
* Wed Feb 25 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.2-1
- 3.2.2
2015-02-09 02:20:14 +00:00
* Mon Feb 9 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.1-2
- Enable tests again
2015-02-09 00:46:53 +00:00
* Mon Feb 9 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.1-1
- 3.2.1
- Once disable tests
2014-11-10 11:47:32 +00:00
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.2-3
- Enable tests again
2014-11-10 08:43:45 +00:00
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.2-2
2014-11-10 09:00:53 +00:00
- Retry
2014-11-10 08:43:45 +00:00
2014-11-10 07:37:38 +00:00
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.2-1
- 3.1.2
- Once disable tests
* Fri Aug 15 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.4-1
- 3.0.4
2014-08-14 08:57:28 +00:00
* Thu Aug 14 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.3-1
- 3.0.3
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-0.4.beta2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-03-18 11:47:41 +00:00
* Tue Mar 18 2014 Mamoru TASAKA <mtasaka@tbz.t-com.ne.jp> - 3.0.0-0.4.beta1
2014-03-18 11:14:22 +00:00
- 3.0.0 beta 2
* Mon Feb 10 2014 Mamoru TASAKA <mtasaka@tbz.t-com.ne.jp> - 3.0.0-0.2.beta1
- Modify Provides EVR
* Mon Feb 03 2014 Mamoru TASAKA <mtasaka@tbz.t-com.ne.jp> - 3.0.0-0.1.beta1
- Initial package