Name: loopabull Version: 0.0.3 Release: 3%{?dist} Summary: Event loop driven Ansible playbook execution engine License: GPLv3+ URL: https://github.com/maxamillion/loopabull Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: systemd Requires: ansible %if 0%{?rhel} && 0%{?rhel} <= 7 BuildRequires: python-setuptools Requires: python-fedmsg-core %else BuildRequires: python2-setuptools Requires: python2-fedmsg-core %endif %description %{summary}. %prep %autosetup -n %{name}-%{name}-%{version} %build %py2_build %install %py2_install # Install config install -D -p -m 0644 systemd/%{name}.yml %{buildroot}%{_sysconfdir}/%{name}.yml # Install sysconfig install -D -p -m 0644 systemd/sysconfig.%{name} %{buildroot}%{_sysconfdir}/sysconfig/%{name} # Install systemd unit file install -D -p -m 0644 systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service # Install man page install -D -p -m 0644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun %{name}.service %files %license LICENSE %doc README.rst examples %doc %{_mandir}/man1/%{name}.1* %{python2_sitelib}/%{name}-*.egg-info/ %{python2_sitelib}/%{name}/ %{_bindir}/%{name} %{_unitdir}/%{name}.service %config(noreplace) %{_sysconfdir}/%{name}.yml %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %changelog * Wed Aug 17 2016 Adam Miller - 0.0.3-3 - merge in patch from Igor Gnatenko for spec clean up * Wed Aug 17 2016 Adam Miller - 0.0.3-2 - fix py2 macros, set doc attribute on examples and man page, fix source url * Tue Aug 16 2016 Adam Miller - 0.0.3-1 - First Fedora package of loopabull