48 lines
1.1 KiB
RPMSpec
48 lines
1.1 KiB
RPMSpec
|
|
%global gem_name turbolinks
|
||
|
|
Name: rubygem-%{gem_name}
|
||
|
|
Version: 5.1.1
|
||
|
|
Release: 1
|
||
|
|
Summary: Turbolinks makes navigating your web application faster
|
||
|
|
License: MIT
|
||
|
|
URL: https://github.com/turbolinks/turbolinks
|
||
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||
|
|
BuildRequires: ruby(release) rubygems-devel ruby
|
||
|
|
BuildArch: noarch
|
||
|
|
%description
|
||
|
|
Rails engine for Turbolinks 5 support.
|
||
|
|
|
||
|
|
%package doc
|
||
|
|
Summary: Documentation for %{name}
|
||
|
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
BuildArch: noarch
|
||
|
|
%description doc
|
||
|
|
Documentation for %{name}.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -c -T
|
||
|
|
%gem_install -n %{SOURCE0}
|
||
|
|
|
||
|
|
%build
|
||
|
|
|
||
|
|
%install
|
||
|
|
mkdir -p %{buildroot}%{gem_dir}
|
||
|
|
cp -a .%{gem_dir}/* \
|
||
|
|
%{buildroot}%{gem_dir}/
|
||
|
|
|
||
|
|
%check
|
||
|
|
|
||
|
|
%files
|
||
|
|
%dir %{gem_instdir}
|
||
|
|
%license %{gem_instdir}/LICENSE
|
||
|
|
%{gem_libdir}
|
||
|
|
%exclude %{gem_cache}
|
||
|
|
%{gem_spec}
|
||
|
|
|
||
|
|
%files doc
|
||
|
|
%doc %{gem_docdir}
|
||
|
|
%doc %{gem_instdir}/README.md
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Tue Jul 28 2020 zhanghua <zhanghua40@huawei.com> - 5.1.1-1
|
||
|
|
- package init
|