commit
3b2be2c6ce
55
rubygem-sprockets-rails.spec
Normal file
55
rubygem-sprockets-rails.spec
Normal file
@ -0,0 +1,55 @@
|
||||
%global gem_name sprockets-rails
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 3.2.1
|
||||
Release: 1
|
||||
Summary: Sprockets Rails integration
|
||||
License: MIT
|
||||
URL: https://github.com/rails/sprockets-rails
|
||||
Source0: https://rubygems.org/gems/sprockets-rails-%{version}.gem
|
||||
Source1: https://github.com/rails/sprockets-rails/archive/v%{version}.tar.gz
|
||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) rubygem(railties) >= 3.0
|
||||
BuildRequires: rubygem(rake) rubygem(sprockets)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
Provides Sprockets implementation for Rails 4.x (and beyond) Asset Pipeline.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version} -b 1
|
||||
ln -s %{gem_name}-%{version}/test test
|
||||
|
||||
%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}
|
||||
ln -s %{_builddir}/%{gem_name}-%{version}/test .
|
||||
ruby -Ilib -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
|
||||
popd
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%license %{gem_instdir}/MIT-LICENSE
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/README.md
|
||||
|
||||
%changelog
|
||||
* Fri Aug 21 2020 shenleizhao <shenleizhao@huawei.com> - 3.2.1-1
|
||||
- package init
|
||||
4
rubygem-sprockets-rails.yaml
Normal file
4
rubygem-sprockets-rails.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: rails/sprockets-rails
|
||||
tag_prefix: "v"
|
||||
separator: "."
|
||||
BIN
sprockets-rails-3.2.1.gem
Normal file
BIN
sprockets-rails-3.2.1.gem
Normal file
Binary file not shown.
BIN
v3.2.1.tar.gz
Normal file
BIN
v3.2.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user