/[packages]/updates/infra_1/irker/pristine/SPECS/irker.spec
ViewVC logotype

Contents of /updates/infra_1/irker/pristine/SPECS/irker.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 335832 - (show annotations) (download)
Fri Dec 28 13:27:38 2012 UTC (11 years, 3 months ago) by boklm
File size: 1405 byte(s)
SILENT: Copy irker to infra_1


1 %define name irker
2 %define version 1.15
3 %define release %mkrel 1
4
5 %define hookdir %{_prefix}/lib/%{name}
6
7 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 Requires: python-simplejson
20 BuildRequires: xmlto
21 BuildRequires: docbook-style-xsl
22 BuildRequires: systemd-devel
23
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 %__install -D --mode=755 irkerhook.py %{buildroot}%{hookdir}/irkerhook.py
44
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 %doc README
62 %{_bindir}/%{name}*
63 %{_unitdir}/%{name}*.service
64 %{_mandir}/man*/%{name}*
65 %dir %hookdir
66 %{hookdir}/irkerhook.py

  ViewVC Help
Powered by ViewVC 1.1.30