File dirb.spec of Package dirb

#
# spec file for package dirb
#
# Copyright (c) 2020, 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 https://bugs.opensuse.org/
#


Name:           dirb
Version:        2.22
Release:        0
Summary:        A web content scanner, brute forceing for hidden files
License:        GPL-2.0-only
Group:          Productivity/Networking/Diagnostic
URL:            http://dirb.sourceforge.net/
Source:         https://sourceforge.net/projects/%{name}/files/%{name}/%{version}/dirb222.tar.gz
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libcurl) >= 7.10.1

%description
A web content scanner, brute forceing for hidden files.

%prep
%setup -q -c -n dirb222

%build
chmod +x dirb222 && cd dirb222
chmod +x configure
export CFLAGS="%optflags -fcommon"
%configure
%make_build

%install
cd dirb222
%make_install
# Avoid file conflict with gendict from package icu
mv %{buildroot}%{_bindir}/gendict %{buildroot}%{_bindir}/gendict_dirb
install -d %{buildroot}%{_datadir}/dirb
cp -R wordlists/ %{buildroot}%{_datadir}/dirb

%files
%license dirb222/LICENSE.txt
%doc dirb222/README.txt
%{_bindir}/dirb
%{_bindir}/gendict_dirb
%{_bindir}/html2dic
%{_datadir}/dirb
%{_mandir}/man1/dirb.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by