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