1 |
%define name irker |
2 |
%define version 1.11 |
3 |
%define release %mkrel 2 |
4 |
|
5 |
%define hookdir %{_prefix}/lib/%{name} |
6 |
|
7 |
Name: %{name} |
8 |
Version: %{version} |
9 |
Release: %{release} |
10 |
Summary: IRC Message Relay |
11 |
License: BSD |
12 |
Group: Networking/IRC |
13 |
URL: http://www.catb.org/esr/irker/ |
14 |
Source0: http://www.catb.org/~esr/irker/%{name}-%{version}.tar.gz |
15 |
Source1: irkerd.init |
16 |
Patch0: irker-1.9-systemd-unit-user.patch |
17 |
Patch1: 0001-irkerhook.py-allow-values-in-irker.conf-containing.patch |
18 |
BuildArch: noarch |
19 |
Requires(post,postun): rpm-helper |
20 |
Requires: python-irc |
21 |
Requires: python-simplejson |
22 |
BuildRequires: xmlto |
23 |
BuildRequires: docbook-style-xsl |
24 |
|
25 |
%description |
26 |
An IRC client that runs as a daemon accepting notification requestsas JSON |
27 |
objects presented to a listening socket. It is meant to be used by hook scripts |
28 |
in version-control repositories, allowing them to send commit notifications to |
29 |
project IRC channels. |
30 |
|
31 |
A hook script that works with git, hg, and svn is included in the distribution. |
32 |
|
33 |
%prep |
34 |
%setup -q |
35 |
%apply_patches |
36 |
sed -i 's/-o 0 -g 0 //' Makefile |
37 |
|
38 |
%build |
39 |
%make |
40 |
|
41 |
%install |
42 |
rm -rf %{buildroot} |
43 |
%makeinstall_std |
44 |
%__install -D --mode=755 irkerhook.py %{buildroot}%{hookdir}/irkerhook.py |
45 |
%__install -D --mode=755 %{SOURCE1} %{buildroot}%{_initrddir}/irkerd |
46 |
|
47 |
%pre |
48 |
%_pre_useradd %{name} / /bin/false |
49 |
|
50 |
%post |
51 |
%_post_service %{name}d |
52 |
|
53 |
%preun |
54 |
%_preun_service %{name}d |
55 |
|
56 |
%postun |
57 |
%_postun_userdel %{name} |
58 |
|
59 |
%clean |
60 |
rm -rf %{buildroot} |
61 |
|
62 |
%files |
63 |
%doc README |
64 |
%config(noreplace) %_initrddir/irkerd |
65 |
%{_bindir}/%{name}* |
66 |
%{_mandir}/man*/%{name}* |
67 |
%dir %hookdir |
68 |
%{hookdir}/irkerhook.py |