1 |
%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 |
BuildRequires: xmlto |
18 |
|
19 |
%description |
20 |
An IRC client that runs as a daemon accepting notification requestsas JSON |
21 |
objects presented to a listening socket. It is meant to be used by hook scripts |
22 |
in version-control repositories, allowing them to send commit notifications to |
23 |
project IRC channels. |
24 |
|
25 |
A hook script that works with git, hg, and svn is included in the distribution. |
26 |
|
27 |
%prep |
28 |
%setup -q |
29 |
%apply_patches |
30 |
sed -i 's/-o 0 -g 0 //' Makefile |
31 |
|
32 |
%build |
33 |
%make |
34 |
|
35 |
%install |
36 |
rm -rf %{buildroot} |
37 |
%makeinstall_std |
38 |
|
39 |
%pre |
40 |
%_pre_useradd %{name} / /bin/false |
41 |
|
42 |
%post |
43 |
%_post_service %{name}d |
44 |
|
45 |
%preun |
46 |
%_preun_service %{name}d |
47 |
|
48 |
%postun |
49 |
%_postun_userdel %{name} |
50 |
|
51 |
%clean |
52 |
rm -rf %{buildroot} |
53 |
|
54 |
%files |
55 |
%doc README irkerhook.py |
56 |
%{_bindir}/%{name}* |
57 |
%{_unitdir}/%{name}*.service |
58 |
%{_mandir}/man*/%{name}* |