# Generated from belphanior-calendar-watcher-servant-0.0.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name belphanior-calendar-watcher-servant Name: rubygem-%{gem_name} Version: 0.0.1 Release: 1%{?dist} Summary: Watches for events and notifies a servant when events occur License: http://www.apache.org/licenses/LICENSE-2.0.txt URL: http://belphanior.net Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildArch: noarch %description Watches a specified iCal-format calendar for events. When the time for an event comes, sends the name of the event to a servant that supports the "commandable" role (http://belphanior.net/roles/commandable/v1). For example, say you have an iCal at www.foo.com/calendar that has an entry named "wake me up" at 10AM today. If you have a servant at 127.0.0.1:3000 that supports "commandable" and understands the "wake me up" command, you could run the calendar_watcher_servant with a servant_config file that looks as follows: { "ip":"127.0.0.1", "port":"4000", "calendar url":"http://www.foo.com/calendar" "servant url":"http://127.0.0.1:3000" "update seconds":"60" } With this configuration, the calendar watcher servant will check the calendar every 60 seconds for new events. When it checks after 10AM, it will discover the "wake me up" event and send it to the servant at 127.0.0.1:3000. %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} # Run the test suite. popd %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %changelog * Mon Apr 18 2022 mockbuilder - 0.0.1-1 - Initial package