]> git.pld-linux.org Git - packages/anope.git/blame - anope.spec
- NFY
[packages/anope.git] / anope.spec
CommitLineData
9a1af0fb 1Summary: Internet Relay Chat Services
2Summary(pl.UTF-8):Usługi dla sieci IRC
3Name: anope
4Version: 1.7.18
5Release: 1
6License: BSD-like or any GPL-compatible
7Group: Daemons
8Source0: http://dl.sourceforge.net/anope/%{name}-%{version}.tar.gz
9# Source0-md5: 87b9e7a6a6129a9e9c8d07b135da4a4f
10Source1: %{name}.init
11Source2: %{name}.sysconfig
12Patch0: %{name}-fhs.patch
13URL: http://www.anope.org
14BuildRequires: autoconf
15BuildRequires: automake
16BuildRequires: mysql-devel
17BuildRequires: rpmbuild(macros) >= 1.202
18BuildRequires: zlib-devel
19Requires(post,preun): /sbin/chkconfig
20Requires(postun): /usr/sbin/groupdel
21Requires(postun): /usr/sbin/userdel
22Requires(pre): /bin/id
23Requires(pre): /usr/bin/getgid
24Requires(pre): /usr/sbin/groupadd
25Requires(pre): /usr/sbin/useradd
26Requires: rc-scripts
27Provides: group(anope)
28Provides: user(anope)
29Obsoletes: ircservices
30Obsoletes: ircservices-hybrid
31Obsoletes: ircservices-ptlink
32Obsoletes: ircservices6
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%define _sysconfdir /etc/anope
36
37%description
38Anope IRC Services is a package of services for IRC networks.
39
40%description -l pl.UTF-8
41Anope IRC Services to pakiet z usługami dla sieci IRC (Internet Relay
42Chat).
43
44%prep
45%setup -q
46%patch0 -p1
47
48%build
49%{__aclocal}
50%{__autoconf}
51%configure \
52 --with-bindir=%{_sbindir} \
53 --with-datadir=%{_localstatedir}/lib/%{name}
54%{__make} \
55 MODULE_PATH=%{_libdir}/%{name}/modules
56
57%install
58rm -rf $RPM_BUILD_ROOT
59install -d $RPM_BUILD_ROOT{%{_localstatedir}/lib/%{name},%{_libdir}/%{name}/{modules,languages},%{_localstatedir}/log/ircservices,%{_sysconfdir}} \
60 $RPM_BUILD_ROOT%{_sbindir} \
61 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
62 $RPM_BUILD_ROOT%{_localstatedir}/log/anope/
63
64%{__make} install \
65 DESTDIR=$RPM_BUILD_ROOT \
66 BINDEST=$RPM_BUILD_ROOT%{_sbindir} \
67 MODULE_PATH=$RPM_BUILD_ROOT%{_libdir}/%{name}/modules \
68 DATDEST=$RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}
69
70mv $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/example.conf $RPM_BUILD_ROOT%{_sysconfdir}/anope.conf
71
72install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/anope
73install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/anope
74
75%clean
76rm -rf $RPM_BUILD_ROOT
77
78%pre
79%groupadd -f -g 218 anope
80%useradd -g anope -d /var/lib/anope -u 218 -c "Anope IRC services account" -s /bin/true anope
81
82%post
83/sbin/chkconfig --add anope
84%service %{name} restart "Anope IRC Services"
85
86%preun
87%service %{name} stop "Anope IRC Services"
88/sbin/chkconfig --del anope
89
90%postun
91if [ "$1" = "0" ]; then
92 %userremove anope
93 %groupremove anope
94fi
95
96%files
97%defattr(644,root,root,755)
98%attr(755,root,root) %{_sbindir}/*
99%attr(750,root,anope) %dir %{_sysconfdir}
100%attr(660,anope,anope) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
101%attr(754,root,root) /etc/rc.d/init.d/%{name}
102%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
103%attr(770,root,anope) %dir %{_localstatedir}/log/%{name}
104%attr(770,root,anope) %dir %{_localstatedir}/lib/%{name}
105%dir %{_libdir}/anope
106%dir %{_libdir}/anope/modules
107%attr(755,root,root) %{_libdir}/anope/modules/*.so
108#%{_localstatedir}/lib/%{name}/example.chk
109#%{_localstatedir}/lib/%{name}/example.conf
110%dir %{_libdir}/anope/languages
111%{_localstatedir}/lib/%{name}/languages/*
112%{_localstatedir}/lib/%{name}/mydbgen
113#%{_localstatedir}/lib/%{name}/tables.sql
This page took 0.06719 seconds and 4 git commands to generate.