# Generated from calview-1.1.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name calview Name: rubygem-%{gem_name} Version: 1.1.0 Release: 1%{?dist} Summary: VCAL viewer for MUTT (can also be used to view a vcal file in a terminal) License: Unlicense URL: https://isene.com/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildArch: noarch %description Having used the [vcal2text](https://github.com/davebiffuk/vcal2text) for many years to view calendar invites in my mutt e-mail client, it started to fail on newer vcal attachments. It showed only parts of a calendar invite and spit out lots of errors beyond that. As it is written in perl and carries a bundle of dependencies, I decided to create my own in Ruby without dependencies. This solution is leaner (and meaner), and it works. Check Github page for more info: https://github.com/isene/calview. %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}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %{_bindir}/calview.rb %{gem_instdir}/bin %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %changelog * Mon Feb 07 2022 mockbuilder - 1.1.0-1 - Initial package