]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - init script | |
3 | Summary: This is the DENTS nameserver | |
4 | Summary(pl.UTF-8): Serwer nazw DENTS | |
5 | Name: dents | |
6 | Version: 0.3.1 | |
7 | Release: 1 | |
8 | License: GPL | |
9 | Group: Networking/Daemons | |
10 | Source0: http://dl.sourceforge.net/dents/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: b7ffc0305143731b70934240acd426b6 | |
12 | URL: http://sourceforge.net/projects/dents/ | |
13 | BuildRequires: glib-devel | |
14 | BuildRequires: rpmbuild(macros) >= 1.268 | |
15 | Requires(post,preun): /sbin/chkconfig | |
16 | Requires: rc-scripts | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Dents. It's a name server that doesn't suck. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | Dents. Jest to serwer nazw, który nie obsysa. | |
24 | ||
25 | %prep | |
26 | %setup -q | |
27 | ||
28 | %build | |
29 | %configure2_13 | |
30 | %{__make} | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
35 | %{__make} install \ | |
36 | DESTDIR=$RPM_BUILD_ROOT | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %post | |
42 | /sbin/chkconfig --add dents | |
43 | %service dents restart | |
44 | ||
45 | %preun | |
46 | if [ "$1" = "0" ]; then | |
47 | %service dents stop | |
48 | /sbin/chkconfig --del dents | |
49 | fi | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %attr(755,root,root) %{_sbindir}/dents | |
54 | %dir %{_libdir}/dents | |
55 | %attr(755,root,root) %{_libdir}/dents/mod_*.so* |