]> git.pld-linux.org Git - packages/dents.git/blob - dents.spec
- reverting last change: removing new macros from %p{re,ost}{,un}
[packages/dents.git] / dents.spec
1 Summary:        This is the DENTS nameserver
2 Name:           dents
3 Version:        0.3.1
4 Release:        1
5 License:        GPL
6 Group:          Networking/Daemons
7 Group(de):      Netzwerkwesen/Server
8 Group(pl):      Sieciowe/Serwery
9 Source0:        http://ftp1.sourceforge.net/dents/%{name}-%{version}.tar.gz
10 URL:            http://sourceforge.net/projects/dents/
11 BuildRequires:  glib-devel
12 Prereq:         rc-scripts
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 Dents. It's a name server that doesn't suck.
17
18 %prep
19 %setup -q
20
21 %build
22 %configure
23 %{__make}
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27
28 %{__make} install \
29         DESTDIR=$RPM_BUILD_ROOT
30
31 %post
32 /sbin/chkconfig --add dents
33 if [ -f /var/lock/subsys/dents ]; then
34         /etc/rc.d/init.d/dents restart 1>&2
35 else
36         echo "Run \"/etc/rc.d/init.d/dents start\" to start dents DNS server."
37 fi
38
39
40 %preun
41 /sbin/chkconfig --del dents
42 if [ "$1" = "0" ]; then
43         if [ -f /var/lock/subsys/dents ]; then
44                 /etc/rc.d/init.d/dents stop 1>&2
45         fi
46         /sbin/chkconfig --del dents
47 fi
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %attr(755,root,root) %{_sbindir}/dents
55 %dir %{_libdir}/dents
56 %attr(755,root,root) %{_libdir}/dents/mod_*.so*
This page took 0.046621 seconds and 4 git commands to generate.