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