%{?scl:%scl_package rubygem-%{gem_name}} %{!?scl:%global pkg_name %{name}} %global gem_name unf Name: %{?scl_prefix}rubygem-%{gem_name} Version: 0.1.3 Release: 6%{?dist} Summary: Unicode normalization form support for Ruby/JRuby Group: Development/Languages License: MIT URL: https://github.com/knu/ruby-unf Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Requires: %{?scl_prefix_ruby}ruby(release) Requires: %{?scl_prefix_ruby}ruby(rubygems) Requires: %{?scl_prefix}rubygem(unf_ext) BuildRequires: %{?scl_prefix_ruby}rubygems-devel BuildRequires: %{?scl_prefix_ruby}ruby(release) BuildRequires: %{?scl_prefix_ruby}rubygems BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} %{?scl:Obsoletes: ruby193-rubygem-%{gem_name}} %description A wrapper library to bring Unicode Normalization Form support to Ruby/JRuby. %package doc Summary: Documentation for %{pkg_name} Group: Documentation Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} %{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc} BuildArch: noarch %description doc Documentation for %{pkg_name} %prep %{?scl:scl enable %{scl} "} gem unpack %{SOURCE0} %{?scl:"} %setup -q -D -T -n %{gem_name}-%{version} %{?scl:scl enable %{scl} "} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %{?scl:"} %build # Create the gem as gem install only works on a gem file %{?scl:scl enable %{scl} "} gem build %{gem_name}.gemspec %{?scl:"} %{?scl:scl enable %{scl} - < 0.1.3-6 - Final set of rebuilds (ericdhelms@gmail.com) - Use HTTPS URLs for github and rubygems (ewoud@kohlvanwijngaarden.nl) - Set proper download URLs for rubygems (komidore64@gmail.com) * Wed May 25 2016 Dominic Cleal 0.1.3-5 - Re-introduce unf, modernise spec (dominic@cleal.org) - Add full rubygems.org source URL (dcleal@redhat.com) * Fri May 30 2014 Dominic Cleal 0.1.3-4 - Modernise spec for EL7 (dcleal@redhat.com) * Tue Nov 19 2013 Dominic Cleal 0.1.3-3 - Add dependency on unf_ext (dcleal@redhat.com) - Fix project URL, typo (dcleal@redhat.com) * Tue Nov 12 2013 Sam Kottler 0.1.3-2 - new package built with tito * Tue Nov 12 2013 Sam Kottler 0.1.3-1 - Initial creation of the package (shk@redhat.com)