# Generated from omnifocus-rt-1.0.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name omnifocus-rt Name: rubygem-%{gem_name} Version: 1.0.2 Release: 1%{?dist} Summary: Plugin for omnifocus gem to provide rt BTS synchronization License: MIT URL: https://github.com/seattlerb/omnifocus-rt Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(minitest) >= 5.6 # BuildRequires: rubygem(minitest) < 6 # BuildRequires: rubygem(hoe) >= 3.13 # BuildRequires: rubygem(hoe) < 4 BuildArch: noarch %description Plugin for omnifocus gem to provide rt BTS synchronization. The first time this runs it creates a yaml file in your home directory for the rt url, username, password, default queue and query. The query is optional. If you don't supply it omnifocus-rt will pull all tickets from the default queue assigned to the specified user. The use a custom query you must supply it in the config file. omnifocus-rt uses the REST interface to RT. More information about query formatting is available here: http://wiki.bestpractical.com/view/REST Example: :rt_url: rt :queue: QA :username: user :password: pass :query: "Queue='QA'ANDOwner='Nobody'ANDStatus!='rejected'". %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} %{gem_instdir}/.autotest %{gem_instdir}/Manifest.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 19 2022 mockbuilder - 1.0.2-1 - Initial package