File dnsmap.spec of Package dnsmap

#
# spec file for package dnsmap
#
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           dnsmap
Version:        0.30
Release:        0
Summary:        DNS network mapper
License:        GPL-2.0+
Group:          Productivity/Networking/Other
Url:            http://code.google.com/p/dnsmap/
Source:         %{name}-%{version}.tar.gz
Patch0:		dnsmap-obey-cflags.diff

%description
dnsmap is a small tool that perform brute-forcing of domains.
It can use a built-in list or an external dictionary file and
saves output to TXT/CSV format.

%prep
%setup -q
%patch0 -p1

%build
make VERBOSE=1 CFLAGS="%{optflags}" %{?_smp_mflags}

%install
install -Dpm0755 dnsmap %{buildroot}%{_bindir}/dnsmap
install -Dpm0755 dnsmap-bulk.sh %{buildroot}%{_bindir}/dnsmap-bulk
install -Dpm0644 wordlist_TLAs.txt %{buildroot}/%{_datadir}/dnsmap/wordlist_TLAs.txt

%files
%defattr(-,root,root)
%doc gpl-2.0.txt README.txt use_cases.txt
%{_bindir}/dnsmap
%{_bindir}/dnsmap-bulk
%dir %{_datadir}/dnsmap
%{_datadir}/dnsmap/wordlist_TLAs.txt

%changelog
openSUSE Build Service is sponsored by