1 |
colin |
303701 |
%define name irker |
2 |
boklm |
341290 |
%define version 1.11 |
3 |
boklm |
342837 |
%define release %mkrel 2 |
4 |
colin |
303701 |
|
5 |
boklm |
335825 |
%define hookdir %{_prefix}/lib/%{name} |
6 |
|
|
|
7 |
colin |
303701 |
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 |
boklm |
335834 |
Source1: irkerd.init |
16 |
colin |
303701 |
Patch0: irker-1.9-systemd-unit-user.patch |
17 |
boklm |
342837 |
Patch1: 0001-irkerhook.py-allow-values-in-irker.conf-containing.patch |
18 |
colin |
303701 |
BuildArch: noarch |
19 |
|
|
Requires(post,postun): rpm-helper |
20 |
|
|
Requires: python-irc |
21 |
colin |
303707 |
Requires: python-simplejson |
22 |
colin |
303701 |
BuildRequires: xmlto |
23 |
colin |
303707 |
BuildRequires: docbook-style-xsl |
24 |
colin |
303701 |
|
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 |
boklm |
335825 |
%__install -D --mode=755 irkerhook.py %{buildroot}%{hookdir}/irkerhook.py |
45 |
boklm |
335834 |
%__install -D --mode=755 %{SOURCE1} %{buildroot}%{_initrddir}/irkerd |
46 |
colin |
303701 |
|
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 |
boklm |
335825 |
%doc README |
64 |
boklm |
335834 |
%config(noreplace) %_initrddir/irkerd |
65 |
colin |
303701 |
%{_bindir}/%{name}* |
66 |
|
|
%{_mandir}/man*/%{name}* |
67 |
boklm |
335825 |
%dir %hookdir |
68 |
|
|
%{hookdir}/irkerhook.py |