File ditto.spec of Package ditto

#
# spec file for package ditto
#
# Copyright (c) 2021, 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:           ditto
Version:        0~git20210201
Release:        0
Summary:        A tool for IDN homograph attacks and detection
License:        GPL-3.0-only
Group:          Productivity/Networking/Diagnostic
URL:            https://github.com/evilsocket/ditto
Source:         %{name}-%{version}.tar.gz
Source1:        vendor.tar.gz
BuildRequires:  go
BuildRequires:  golang-packaging
%{go_provides}

%description
Ditto is a small tool that accepts a domain name as input and
generates all its variants for an homograph attack as output,
checking which ones are available and which are already
registered.

%prep
%autosetup -a 1

%build
%goprep github.com/evilsocket/ditto/
%gobuild -mod=vendor cmd/...

%install
%goinstall

%files
%license LICENSE.md
%doc README.md
%{_bindir}/ditto

%changelog
openSUSE Build Service is sponsored by