package init
This commit is contained in:
parent
554aa3cc15
commit
070f7e1b89
67
rubygem-spring.spec
Normal file
67
rubygem-spring.spec
Normal file
@ -0,0 +1,67 @@
|
||||
%global gem_name spring
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 2.0.0
|
||||
Release: 1
|
||||
Summary: Rails application preloader
|
||||
License: MIT
|
||||
URL: https://github.com/rails/spring
|
||||
Source0: https://rubygems.org/gems/spring-%{version}.gem
|
||||
Source1: https://github.com/rails/spring/archive/v%{version}.tar.gz
|
||||
Requires: ruby(release) ruby(rubygems) %{_bindir}/ps
|
||||
BuildRequires: ruby(release) rubygems-devel rubygem(minitest) rubygem(bundler)
|
||||
BuildRequires: rubygem(activesupport)
|
||||
BuildArch: noarch
|
||||
Provides: bundled(okjson) = 43
|
||||
%description
|
||||
Spring is a Rails application preloader. It speeds up development by keeping
|
||||
your application running in the background so you don't need to boot it every
|
||||
time you run a test, rake task or migration.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
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 -pa .%{gem_dir}/* \
|
||||
%{buildroot}%{gem_dir}/
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
cp -pa .%{_bindir}/* \
|
||||
%{buildroot}%{_bindir}/
|
||||
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
tar xf %{SOURCE1}
|
||||
cd %{gem_name}-%{version}
|
||||
ruby -Ilib:test -e 'Dir.glob "./test/unit/**/*_test.rb", &method(:require)'
|
||||
popd
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%{_bindir}/spring
|
||||
%{gem_instdir}/bin
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
%license %{gem_instdir}/LICENSE.txt
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/README.md
|
||||
|
||||
%changelog
|
||||
* Mon Aug 10 2020 yanan li <liyanan032@huawei.com> - 2.0.0-1
|
||||
- Package init
|
||||
5
rubygem-spring.yaml
Normal file
5
rubygem-spring.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/rails/spring.git
|
||||
version_control: github
|
||||
src_repo: rails/spring
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
BIN
spring-2.0.0.gem
Normal file
BIN
spring-2.0.0.gem
Normal file
Binary file not shown.
BIN
v2.0.0.tar.gz
Normal file
BIN
v2.0.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user