1 |
Name: irker |
2 |
Version: 2.24 |
3 |
Release: %mkrel 1 |
4 |
Summary: IRC Message Relay |
5 |
License: BSD |
6 |
Group: Networking/IRC |
7 |
URL: https://gitlab.com/esr/irker/ |
8 |
Source0: https://gitlab.com/esr/irker/-/archive/%{version}/%{name}-%{version}.tar.gz |
9 |
BuildArch: noarch |
10 |
BuildRequires: xmlto |
11 |
BuildRequires: docbook-style-xsl |
12 |
BuildRequires: pkgconfig(libsystemd) |
13 |
|
14 |
Requires(post,postun): rpm-helper |
15 |
Requires: python3-irc |
16 |
Requires: python3-simplejson |
17 |
|
18 |
%description |
19 |
An IRC client that runs as a daemon accepting notification requests as JSON |
20 |
objects presented to a listening socket. It is meant to be used by hook scripts |
21 |
in version-control repositories, allowing them to send commit notifications to |
22 |
project IRC channels. |
23 |
|
24 |
A hook script that works with git, hg, and svn is included in the distribution. |
25 |
|
26 |
%prep |
27 |
%setup -q |
28 |
%autopatch -p1 |
29 |
|
30 |
# Avoid chowning when running make install |
31 |
sed -i 's/-o 0 -g 0 //' Makefile |
32 |
|
33 |
# python shebangs |
34 |
%py3_shebang_fix *.py irk irkerd |
35 |
|
36 |
%build |
37 |
%make_build -j4 |
38 |
|
39 |
%install |
40 |
%make_install |
41 |
|
42 |
install -Dpm755 irkerhook.py %{buildroot}%{_prefix}/lib/%{name}/irkerhook.py |
43 |
|
44 |
%pre |
45 |
%_pre_useradd %{name} / /bin/false |
46 |
|
47 |
%post |
48 |
%_post_service %{name}d |
49 |
|
50 |
%preun |
51 |
%_preun_service %{name}d |
52 |
|
53 |
%postun |
54 |
%_postun_userdel %{name} |
55 |
|
56 |
%files |
57 |
%doc README |
58 |
%{_bindir}/%{name}* |
59 |
%{_unitdir}/%{name}*.service |
60 |
%{_mandir}/man*/irk* |
61 |
%dir %{_prefix}/lib/%{name} |
62 |
%{_prefix}/lib/%{name}/irkerhook.py* |