import sources

This commit is contained in:
Adam Samalik 2023-05-08 11:30:21 +02:00
commit c3d2040125
3 changed files with 102 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/thread_order-1.1.0.gem

100
rubygem-thread_order.spec Normal file
View File

@ -0,0 +1,100 @@
%global gem_name thread_order
Name: rubygem-%{gem_name}
Version: 1.1.0
Release: 5%{?dist}
Summary: Test helper for ordering threaded code
License: MIT
URL: https://github.com/JoshCheek/thread_order
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: rubygem(rspec) >= 3
BuildArch: noarch
%description
Test helper for ordering threaded code.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build
gem build %{gem_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
pushd %{buildroot}
rm -f .%{gem_cache}
pushd .%{gem_instdir}
rm -rf \
.gitignore .travis.yml \
Gemfile \
spec/ \
%{gem_name}.gemspec \
%{nil}
popd
popd
%check
# The following test does not pass with using gem
FAILFILE=()
FAILTEST=()
FAILFILE+=("spec/thread_order_spec.rb")
FAILTEST+=("is implemented without depending on the stdlib")
pushd .%{gem_instdir}
for ((i = 0; i < ${#FAILFILE[@]}; i++)) {
sed -i \
-e "\@${FAILTEST[$i]}@s|do$|, :broken => true do|" \
${FAILFILE[$i]}
}
rspec spec/ || \
rspec spec/ --tag ~broken
popd
%files
%dir %{gem_instdir}
%license %{gem_instdir}/License.txt
%doc %{gem_instdir}/Readme.md
%{gem_libdir}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%changelog
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Sun Aug 09 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.1.0-1
- Initial package

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (thread_order-1.1.0.gem) = e460d23fb33e8254c389d94ae17c4c2bba8f9aeeb7987d479f31c3e334a7e87b919f3f74abd51181072c7eeb48ec2f1d222e2c1a4025f2d7a05016ac93ca80c0