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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 335833 - (show annotations) (download)
Fri Dec 28 13:41:49 2012 UTC (11 years, 3 months ago) by boklm
File size: 1347 byte(s)
remove systemd unit
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
23 %description
24 An IRC client that runs as a daemon accepting notification requestsas JSON
25 objects presented to a listening socket. It is meant to be used by hook scripts
26 in version-control repositories, allowing them to send commit notifications to
27 project IRC channels.
28
29 A hook script that works with git, hg, and svn is included in the distribution.
30
31 %prep
32 %setup -q
33 %apply_patches
34 sed -i 's/-o 0 -g 0 //' Makefile
35
36 %build
37 %make
38
39 %install
40 rm -rf %{buildroot}
41 %makeinstall_std
42 %__install -D --mode=755 irkerhook.py %{buildroot}%{hookdir}/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 %clean
57 rm -rf %{buildroot}
58
59 %files
60 %doc README
61 %{_bindir}/%{name}*
62 %{_mandir}/man*/%{name}*
63 %dir %hookdir
64 %{hookdir}/irkerhook.py

  ViewVC Help
Powered by ViewVC 1.1.30