File nali.spec of Package nali

#
# spec file for package nali
#
# Copyright (c) 2023 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/
#

%if "%{?_target_cpu}" == "x86_64"
%define arch_type x64
%endif

Name:           nali
Version:        v0.8.1
Release:        0
Summary:        An offline tool for querying IP geographic information and CDN provider.
License:        MIT
Group:          Productivity/Networking/Other
URL:            https://github.com/zu1k/nali
Source0:        %{name}-linux-amd64-%{version}.gz

BuildRequires:  gzip


%description
nali - An offline tool for querying IP geographic information and CDN provider. (binary version)

%prep


%build


%install
mkdir -p %{buildroot}%{_bindir}
gzip -dc < %{SOURCE0} > %{buildroot}/%{name}
mv %{buildroot}/%{name} %{buildroot}%{_bindir}/%{name}
chmod 0755 %{buildroot}%{_bindir}/%{name}

%post


%postun


%files
%defattr(-,root,root)
%{_bindir}/%{name}

%changelog

openSUSE Build Service is sponsored by