Name: dashbot Version: 1.5 Release: 1%{dist} Summary: A simple ruby bot to upload images/gifs posted in slack to a datadog board License: GPLv3 URL: https://github.com/BunnyApocalypse/dashbot Source0: https://github.com/BunnyApocalypse/dashbot/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Requires: ruby Requires: rubygem-websocket-driver Requires: rubygem-eventmachine Requires: rubygem-dogapi Requires: rubygem-slack-ruby-client Requires: rubygem-faye-websocket BuildArch: noarch %{?systemd_requires} BuildRequires: systemd %description A simple ruby bot to upload images/gifs posted in slack to a datadog board %prep %setup -q %build echo "Nothing to build" %install mkdir -p %{buildroot}/usr/lib/systemd/system install -m 0644 dashbot.service %{buildroot}/usr/lib/systemd/system mkdir -p %{buildroot}/bin install -m 0755 dashbot.rb %{buildroot}/bin/dashbot mkdir -p %{buildroot}/etc/dashbot install -m 0644 environment.rb %{buildroot}/etc/dashbot/environment.rb %post %systemd_post dashbot.service useradd -r -s /bin/nologin -d /run/dashbot dashbot mkdir -p /run/dashbot chown -R dashbot /run/dashbot %preun %systemd_preun dashbot.service %postun %systemd_postun_with_restart dashbot.service userdel dashbot rm -rf /run/dashbot %files %license LICENSE /bin/dashbot /usr/lib/systemd/system/dashbot.service /etc/dashbot/environment.rb %changelog * Mon Jul 30 2018 Chris King - 1.0 - First dashbot package