# Generated from ucf-2.0.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name ucf Name: rubygem-%{gem_name} Version: 2.0.2 Release: 1%{?dist} Summary: Universal Container Format (UCF) Ruby Library License: BSD URL: http://mygrid.github.io/ruby-ucf/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9.3 # BuildRequires: rubygem(test-unit) >= 3.0 # BuildRequires: rubygem(test-unit) < 4 # BuildRequires: rubygem(coveralls) # BuildRequires: rubygem(nokogiri) >= 1.6 # BuildRequires: rubygem(nokogiri) < 2 BuildArch: noarch %description A Ruby library for working with Universal Container Format files - a type of EPUB document. See the UCF specification (https://learn.adobe.com/wiki/display/PDFNAV/Universal+Container+Format) for details. They are very similar, although not as restrictive, as the EPUB Open Container Format (OCF) (http://www.idpf.org/epub/30/spec/epub30-ocf.html). %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %{gem_instdir}/.ruby-env %{gem_instdir}/.ruby-gemset %{gem_instdir}/.ruby-version %exclude %{gem_instdir}/.travis.yml %license %{gem_instdir}/Licence.rdoc %{gem_libdir} %{gem_instdir}/version.yml %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/Changes.rdoc %{gem_instdir}/Gemfile %{gem_instdir}/Rakefile %doc %{gem_instdir}/ReadMe.rdoc %{gem_instdir}/examples %{gem_instdir}/test %{gem_instdir}/ucf.gemspec %changelog * Thu Sep 16 2021 mockbuilder - 2.0.2-1 - Initial package