commit
68a1355f9d
BIN
backports-3.11.4.gem
Normal file
BIN
backports-3.11.4.gem
Normal file
Binary file not shown.
63
rubygem-backports.spec
Normal file
63
rubygem-backports.spec
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
%global gem_name backports
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 3.11.4
|
||||||
|
Release: 1
|
||||||
|
Summary: Backports of Ruby features for older Ruby
|
||||||
|
License: MIT
|
||||||
|
URL: http://github.com/marcandre/backports
|
||||||
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(activesupport) rubygem(test-unit)
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
Essential backports that enable many of the nice features of Ruby 1.8.7 up to
|
||||||
|
2.1.0 for earlier versions.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
%description doc
|
||||||
|
Documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{gem_name}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
|
%gem_install
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -a .%{gem_dir}/* \
|
||||||
|
%{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
sed -i "s/^/#/" lib/backports/rails/module.rb
|
||||||
|
ruby -Ilib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%exclude %{gem_instdir}/.*
|
||||||
|
%license %{gem_instdir}/LICENSE.txt
|
||||||
|
%{gem_instdir}/backports.gemspec
|
||||||
|
%{gem_libdir}
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%doc %{gem_instdir}/CHANGELOG.rdoc
|
||||||
|
%{gem_instdir}/Gemfile*
|
||||||
|
%doc %{gem_instdir}/README.rdoc
|
||||||
|
%{gem_instdir}/Rakefile
|
||||||
|
%{gem_instdir}/default.mspec
|
||||||
|
%{gem_instdir}/frozen_old_spec
|
||||||
|
%{gem_instdir}/set_version
|
||||||
|
%{gem_instdir}/spec
|
||||||
|
%{gem_instdir}/test
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Aug 19 2020 shenleizhao <shenleizhao@huawei.com> - 3.11.4-1
|
||||||
|
- package init
|
||||||
4
rubygem-backports.yaml
Normal file
4
rubygem-backports.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: marcandre/backports
|
||||||
|
tag_prefix: "v"
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user