]> git.pld-linux.org Git - packages/dnswalk.git/blob - dnswalk.spec
- autodeps bcond
[packages/dnswalk.git] / dnswalk.spec
1 #
2 # Conditional build:
3 %bcond_without  autodeps        # don't BR packages needed only for resolving deps
4 #
5 %include        /usr/lib/rpm/macros.perl
6 Summary:        The dnswalk DNS database debugger
7 Name:           dnswalk
8 Version:        2.0.2
9 Release:        0.2
10 License:        Artistic
11 Group:          Applications/Networking
12 Source0:        http://www.visi.com/~barr/dnswalk/%{name}-%{version}.tar.gz
13 # Source0-md5:  62b9302822353fad71d51aefdae1cad1
14 Patch0:         %{name}-perlpath.patch
15 Patch1:         %{name}-delete-filterout.patch
16 URL:            http://www.visi.com/~barr/dnswalk/
17 BuildRequires:  rpm-perlprov >= 4.1-13
18 %if %{with autodeps}
19 BuildRequires:  perl-Net-DNS
20 %endif
21 Buildarch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 dnswalk is a DNS debugger. It performs zone transfers of specified
26 domains, and checks the database in numerous ways for internal
27 consistency, as well as accuracy.
28
29 %prep
30 %setup -q -c -a0
31 %patch0 -p1
32 %patch1 -p0
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36
37 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}
38 install %{name} $RPM_BUILD_ROOT%{_sbindir}
39 install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %doc CHANGES README TODO makereports sendreports rfc1912.txt do-dnswalk
47 %attr(755,root,root) %{_sbindir}/%{name}
48 %{_mandir}/man1/%{name}.1*
This page took 0.041271 seconds and 3 git commands to generate.