]>
Commit | Line | Data |
---|---|---|
1df1298d | 1 | Summary: Internet Relay Chat Services |
2 | Summary(pl.UTF-8): Usługi dla sieci IRC | |
3 | Name: atheme | |
4 | Version: 2.1.1 | |
5 | Release: 1 | |
6 | License: BSD-like or any GPL-compatible | |
7 | Group: Daemons | |
8 | Source0: http://www.atheme.net/releases/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 5ef988f6dd81b7d7e535b343f9874be6 | |
10 | Source1: %{name}.init | |
11 | Source2: %{name}.sysconfig | |
12 | URL: http://www.atheme.net/ | |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
2400d4cf | 15 | BuildRequires: rpmbuild(macros) >= 1.268 |
1df1298d | 16 | BuildRequires: zlib-devel |
17 | Requires(post,preun): /sbin/chkconfig | |
18 | Requires(postun): /usr/sbin/groupdel | |
19 | Requires(postun): /usr/sbin/userdel | |
20 | Requires(pre): /bin/id | |
21 | Requires(pre): /usr/bin/getgid | |
22 | Requires(pre): /usr/sbin/groupadd | |
23 | Requires(pre): /usr/sbin/useradd | |
36ae1004 | 24 | Requires: rc-scripts >= 0.4.0.20 |
1df1298d | 25 | Provides: group(atheme) |
26 | Provides: user(atheme) | |
27 | Obsoletes: ircservices | |
28 | Obsoletes: ircservices-hybrid | |
29 | Obsoletes: ircservices-ptlink | |
30 | Obsoletes: ircservices6 | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %define _sysconfdir /etc/atheme | |
34 | ||
35 | %description | |
36 | Atheme IRC Services is a package of services for IRC networks. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | Atheme IRC Services to pakiet z usługami dla sieci IRC (Internet Relay | |
40 | Chat). | |
41 | ||
42 | %prep | |
43 | %setup -q | |
44 | ||
45 | %build | |
46 | %{__aclocal} | |
47 | %{__autoconf} | |
48 | CFLAGS="%{rpmcflags} %{?debug:-DDEBUGMODE}" | |
49 | %configure \ | |
50 | --enable-fhs-paths \ | |
51 | --bindir=%{_sbindir} | |
52 | %{__make} | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | install -d $RPM_BUILD_ROOT{%{_libdir}/ircservices,%{_var}/log/ircservices,%{_sysconfdir}} \ | |
57 | $RPM_BUILD_ROOT%{_sbindir} \ | |
58 | $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_localstatedir}/languages} \ | |
59 | $RPM_BUILD_ROOT%{_var}/log/atheme/ | |
60 | ||
61 | %{__make} install \ | |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
64 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/atheme | |
65 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/atheme | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %pre | |
71 | %groupadd -f -g 217 atheme | |
72 | %useradd -g atheme -d /var/lib/atheme -u 217 -c "Atheme IRC services account" -s /bin/true atheme | |
73 | ||
74 | %post | |
75 | /sbin/chkconfig --add atheme | |
d25eab87 | 76 | %service %{name} restart "Atheme IRC Services" |
1df1298d | 77 | |
78 | %preun | |
2400d4cf ER |
79 | if [ "$1" = 0 ]; then |
80 | %service %{name} stop | |
81 | /sbin/chkconfig --del atheme | |
82 | fi | |
1df1298d | 83 | |
84 | %postun | |
85 | if [ "$1" = "0" ]; then | |
86 | %userremove atheme | |
87 | %groupremove atheme | |
88 | fi | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
92 | %doc README doc/* | |
93 | %attr(755,root,root) %{_sbindir}/* | |
94 | %attr(750,root,atheme) %dir %{_sysconfdir} | |
95 | %attr(660,atheme,atheme) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
96 | %attr(754,root,root) /etc/rc.d/init.d/atheme | |
97 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/atheme | |
98 | %dir %{_var}/log/atheme | |
99 | %attr(770,root,atheme) %dir %{_var}/log/atheme | |
100 | %attr(770,root,atheme) %dir %{_localstatedir} | |
101 | %dir %{_libdir}/atheme | |
102 | %dir %{_libdir}/atheme/backend | |
103 | %attr(755,root,root) %{_libdir}/atheme/backend/*.so | |
104 | %dir %{_libdir}/atheme/crypto | |
105 | %attr(755,root,root) %{_libdir}/atheme/crypto/*.so | |
106 | %dir %{_libdir}/atheme/modules | |
107 | %dir %{_libdir}/atheme/modules/chanserv | |
108 | %attr(755,root,root) %{_libdir}/atheme/modules/chanserv/*.so | |
109 | %dir %{_libdir}/atheme/modules/global | |
110 | %attr(755,root,root) %{_libdir}/atheme/modules/global/*.so | |
111 | %dir %{_libdir}/atheme/modules/memoserv | |
112 | %attr(755,root,root) %{_libdir}/atheme/modules/memoserv/*.so | |
113 | %dir %{_libdir}/atheme/modules/nickserv | |
114 | %attr(755,root,root) %{_libdir}/atheme/modules/nickserv/*.so | |
115 | %dir %{_libdir}/atheme/modules/operserv | |
116 | %attr(755,root,root) %{_libdir}/atheme/modules/operserv/*.so | |
117 | %dir %{_libdir}/atheme/modules/saslserv | |
118 | %attr(755,root,root) %{_libdir}/atheme/modules/saslserv/*.so | |
119 | %dir %{_libdir}/atheme/modules/xmlrpc | |
120 | %attr(755,root,root) %{_libdir}/atheme/modules/xmlrpc/*.so | |
121 | %dir %{_libdir}/atheme/protocol | |
122 | %attr(755,root,root) %{_libdir}/atheme/protocol/*.so | |
123 | %dir %{_datadir}/%{name} | |
124 | %dir %{_datadir}/%{name}/help | |
125 | %dir %{_datadir}/%{name}/help/cservice | |
126 | %{_datadir}/%{name}/help/cservice/* | |
127 | %dir %{_datadir}/%{name}/help/gservice | |
128 | %{_datadir}/%{name}/help/gservice/* | |
129 | %{_datadir}/%{name}/help/help | |
130 | %dir %{_datadir}/%{name}/help/memoserv | |
131 | %{_datadir}/%{name}/help/memoserv/* | |
132 | %dir %{_datadir}/%{name}/help/nickserv | |
133 | %{_datadir}/%{name}/help/nickserv/* | |
134 | %dir %{_datadir}/%{name}/help/oservice | |
135 | %{_datadir}/%{name}/help/oservice/* | |
136 | %dir %{_datadir}/%{name}/help/saslserv | |
137 | %{_datadir}/%{name}/help/saslserv/* | |
138 | %dir %{_datadir}/%{name}/help/userserv | |
139 | %{_datadir}/%{name}/help/userserv/* |