Blame SPECS/rubygem-turbolinks-source.spec

2d8954
%{?scl:%scl_package rubygem-%{gem_name}}
2d8954
%{!?scl:%global pkg_name %{name}}
2d8954
2d8954
# Generated from turbolinks-source-5.0.0.gem by gem2rpm -*- rpm-spec -*-
2d8954
%global gem_name turbolinks-source
2d8954
2d8954
Name: %{?scl_prefix}rubygem-%{gem_name}
2d8954
Version: 5.0.0
2d8954
Release: 1%{?dist}
2d8954
Summary: Turbolinks JavaScript assets
2d8954
Group: Development/Languages
2d8954
License: MIT
2d8954
URL: https://github.com/turbolinks/turbolinks-source-gem
2d8954
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
2d8954
Requires: %{?scl_prefix_ruby}ruby(release)
2d8954
Requires: %{?scl_prefix_ruby}ruby(rubygems)
2d8954
BuildRequires: %{?scl_prefix_ruby}ruby(release)
2d8954
BuildRequires: %{?scl_prefix_ruby}ruby(rubygems)
2d8954
BuildRequires: %{?scl_prefix_ruby}ruby
2d8954
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
2d8954
BuildArch: noarch
2d8954
# We don't have js-turbolinks in Fedora yet and it would be quite demmanding
2d8954
# to unbundle it :/ Anyway, I started discussion with upstream on this topic.
2d8954
# https://github.com/turbolinks/turbolinks-rails/issues/11
2d8954
Provides: bundled(turbolinks) = 5.0.0
2d8954
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
2d8954
2d8954
# Explicitly require runtime subpackage, as long as older scl-utils do not generate it
2d8954
%{?scl:Requires: %{?scl_prefix}runtime}
2d8954
2d8954
%description
2d8954
Turbolinks JavaScript assets.
2d8954
2d8954
%package doc
2d8954
Summary: Documentation for %{pkg_name}
2d8954
Group: Documentation
2d8954
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
2d8954
BuildArch: noarch
2d8954
2d8954
%description doc
2d8954
Documentation for %{pkg_name}.
2d8954
2d8954
%prep
2d8954
%{?scl:scl enable %{scl} - << \EOF}
2d8954
set -e
2d8954
gem unpack %{SOURCE0}
2d8954
2d8954
%setup -q -D -T -n  %{gem_name}-%{version}
2d8954
2d8954
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
2d8954
%{?scl:EOF}
2d8954
2d8954
%build
2d8954
%{?scl:scl enable %{scl} - << \EOF}
2d8954
set -e
2d8954
gem build %{gem_name}.gemspec
2d8954
2d8954
%gem_install
2d8954
%{?scl:EOF}
2d8954
2d8954
%install
2d8954
mkdir -p %{buildroot}%{gem_dir}
2d8954
cp -a .%{gem_dir}/* \
2d8954
        %{buildroot}%{gem_dir}/
2d8954
2d8954
%check
2d8954
pushd .%{gem_instdir}
2d8954
# There are no tests upstream.
2d8954
popd
2d8954
2d8954
%files
2d8954
# There is no %%license macro on RHEL6.
2d8954
# https://bugzilla.redhat.com/show_bug.cgi?id=1386246
2d8954
%{!?_licensedir:%global license %%doc}
2d8954
2d8954
%dir %{gem_instdir}
2d8954
%license %{gem_instdir}/LICENSE
2d8954
%{gem_libdir}
2d8954
%exclude %{gem_cache}
2d8954
%{gem_spec}
2d8954
2d8954
%files doc
2d8954
%doc %{gem_docdir}
2d8954
%doc %{gem_instdir}/README.md
2d8954
2d8954
%changelog
2d8954
* Fri Jul 22 2016 Vít Ondruch <vondruch@redhat.com> - 5.0.0-1
2d8954
- Initial package