# Generated from victor-0.3.3.gem by gem2rpm -*- rpm-spec -*- %global gem_name victor Name: rubygem-%{gem_name} Version: 0.3.3 Release: 1%{?dist} Summary: SVG Builder License: MIT URL: https://github.com/DannyBen/victor Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/DannyBen/victor.git --no-checkout # git -C victor archive -v -o victor-0.3.3-spec.txz v0.3.3 spec/ Source1: %{gem_name}-%{version}%{?prerelease}-spec.txz # BuildRequires: ruby(release) BuildRequires: rubygem(rspec) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.3.0 BuildArch: noarch %description Build SVG images with ease. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} -b1 # Remove executable bit from .svg files # TODO: upstream issue #find %{_builddir}/templates/ -type f -name '*.svg' -exec chmod -x \; %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # Symlink the tests into place ln -s %{_builddir}/spec #rspec spec popd %files %dir %{gem_instdir} %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %changelog * Tue May 10 2022 Pavel Valena - 0.3.3-1 - Initial package