1 |
colin |
303701 |
%define name irker |
2 |
|
|
%define version 1.9 |
3 |
|
|
%define release %mkrel 1 |
4 |
|
|
|
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 |
|
|
Patch0: irker-1.9-systemd-unit-user.patch |
16 |
|
|
BuildArch: noarch |
17 |
|
|
Requires(post,postun): rpm-helper |
18 |
|
|
Requires: python-irc |
19 |
colin |
303707 |
Requires: python-simplejson |
20 |
colin |
303701 |
BuildRequires: xmlto |
21 |
colin |
303707 |
BuildRequires: docbook-style-xsl |
22 |
colin |
303709 |
BuildRequires: systemd-devel |
23 |
colin |
303701 |
|
24 |
|
|
%description |
25 |
|
|
An IRC client that runs as a daemon accepting notification requestsas JSON |
26 |
|
|
objects presented to a listening socket. It is meant to be used by hook scripts |
27 |
|
|
in version-control repositories, allowing them to send commit notifications to |
28 |
|
|
project IRC channels. |
29 |
|
|
|
30 |
|
|
A hook script that works with git, hg, and svn is included in the distribution. |
31 |
|
|
|
32 |
|
|
%prep |
33 |
|
|
%setup -q |
34 |
|
|
%apply_patches |
35 |
|
|
sed -i 's/-o 0 -g 0 //' Makefile |
36 |
|
|
|
37 |
|
|
%build |
38 |
|
|
%make |
39 |
|
|
|
40 |
|
|
%install |
41 |
|
|
rm -rf %{buildroot} |
42 |
|
|
%makeinstall_std |
43 |
boklm |
335825 |
%__install -D --mode=755 irkerhook.py %{buildroot}%{hookdir}/irkerhook.py |
44 |
colin |
303701 |
|
45 |
|
|
%pre |
46 |
|
|
%_pre_useradd %{name} / /bin/false |
47 |
|
|
|
48 |
|
|
%post |
49 |
|
|
%_post_service %{name}d |
50 |
|
|
|
51 |
|
|
%preun |
52 |
|
|
%_preun_service %{name}d |
53 |
|
|
|
54 |
|
|
%postun |
55 |
|
|
%_postun_userdel %{name} |
56 |
|
|
|
57 |
|
|
%clean |
58 |
|
|
rm -rf %{buildroot} |
59 |
|
|
|
60 |
|
|
%files |
61 |
boklm |
335825 |
%doc README |
62 |
colin |
303701 |
%{_bindir}/%{name}* |
63 |
|
|
%{_unitdir}/%{name}*.service |
64 |
|
|
%{_mandir}/man*/%{name}* |
65 |
boklm |
335825 |
%dir %hookdir |
66 |
|
|
%{hookdir}/irkerhook.py |