%define name irker %define version 1.15 %define release %mkrel 1 %define hookdir %{_prefix}/lib/%{name} Name: %{name} Version: %{version} Release: %{release} Summary: IRC Message Relay License: BSD Group: Networking/IRC URL: http://www.catb.org/esr/irker/ Source0: http://www.catb.org/~esr/irker/%{name}-%{version}.tar.gz Patch0: irker-1.9-systemd-unit-user.patch BuildArch: noarch Requires(post,postun): rpm-helper Requires: python-irc Requires: python-simplejson BuildRequires: xmlto BuildRequires: docbook-style-xsl BuildRequires: systemd-devel %description An IRC client that runs as a daemon accepting notification requestsas JSON objects presented to a listening socket. It is meant to be used by hook scripts in version-control repositories, allowing them to send commit notifications to project IRC channels. A hook script that works with git, hg, and svn is included in the distribution. %prep %setup -q %apply_patches sed -i 's/-o 0 -g 0 //' Makefile %build %make %install rm -rf %{buildroot} %makeinstall_std %__install -D --mode=755 irkerhook.py %{buildroot}%{hookdir}/irkerhook.py %pre %_pre_useradd %{name} / /bin/false %post %_post_service %{name}d %preun %_preun_service %{name}d %postun %_postun_userdel %{name} %clean rm -rf %{buildroot} %files %doc README %{_bindir}/%{name}* %{_unitdir}/%{name}*.service %{_mandir}/man*/%{name}* %dir %hookdir %{hookdir}/irkerhook.py