|
# Generated from polyglot-0.3.5.gem by gem2rpm -*- rpm-spec -*-
|
|
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
%{!?scl:%global pkg_name %{name}}
|
|
|
|
%global gem_name polyglot
|
|
|
|
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
Version: 0.3.5
|
|
Release: 3%{?dist}
|
|
Summary: Augment 'require' to load non-Ruby file types
|
|
Group: Development/Languages
|
|
License: MIT
|
|
URL: http://github.com/cjheath/polyglot
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
BuildRequires: %{?scl_prefix_ruby}ruby
|
|
BuildArch: noarch
|
|
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
|
%{?scl:Requires: %{?scl_prefix}runtime}
|
|
|
|
%description
|
|
The Polyglot library allows a Ruby module to register a loader
|
|
for the file type associated with a filename extension, and it
|
|
augments 'require' to find and load matching files.
|
|
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Group: Documentation
|
|
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
Documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -n %{pkg_name}-%{version} -q -c -T
|
|
%{?scl:scl enable %{scl} - << \EOF}
|
|
%gem_install -n %{SOURCE0}
|
|
%{?scl:EOF}
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%license %{gem_instdir}/License.txt
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/History.txt
|
|
%doc %{gem_instdir}/README.txt
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%changelog
|
|
* Tue Apr 06 2021 Eric D. Helms <ericdhelms@gmail.com> - 0.3.5-3
|
|
- Rebuild for Ruby 2.7
|
|
|
|
* Fri Sep 07 2018 Eric D. Helms <ericdhelms@gmail.com> - 0.3.5-2
|
|
- Rebuild for Rails 5.2 and Ruby 2.5
|
|
|
|
* Wed Jan 10 2018 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> 0.3.5-1
|
|
- new package built with tito
|
|
|