File python-wtfis.spec of Package python-wtfis
#
# spec file for package python-wtfis
#
# Copyright (c) 2025 SUSE LLC
#
# 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: python-wtfis
Version: 0.15.0
Release: 0
Summary: Passive hostname, domain and IP lookup tool for non-robots
License: MIT
URL: https://github.com/pirxthepilot/wtfis
Source: https://files.pythonhosted.org/packages/source/w/wtfis/wtfis-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
Requires: python-pydantic >= 2.12.5
Requires: python-python-dotenv >= 1.2.2
Requires: python-requests >= 2.32.5
Requires: python-rich >= 14.3.3
Requires(post): update-alternatives
BuildArch: noarch
%python_subpackages
%description
wtfis is a commandline tool that gathers information about a domain, FQDN or IP address using various OSINT services. Unlike other tools of its kind, it's built specifically for human consumption, providing results that are pretty (YMMV) and easy to read and understand.
This tool assumes that you are using free tier / community level accounts, and so makes as few API calls as possible to minimize hitting quotas and rate limits.
The project name is a play on "whois".
%prep
%autosetup -p1 -n wtfis-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/wtfis
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative wtfis
%postun
%python_uninstall_alternative wtfis
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/wtfis
%{python_sitelib}/wtfis
%{python_sitelib}/wtfis-%{version}.dist-info
%changelog