%global debug_package %{nil} Name: nali Version: 0.2 Release: 2%{?dist} Summary: Network Utility which queries IP address location using QQWry.Dat Group: Network License: GPL URL: https://code.google.com/p/qqwry Source0: %{name}-%{version}.tar.gz Source1: update-qqwry Patch0: optimize.patch BuildRequires: gcc curl Requires: /usr/bin/perl %description nali is a network utility, which uses QQWry.Dat database to query IP address location. %prep %setup -q %patch 0 -p1 %build curl -L https://github.com/out0fmemory/qqwry.dat/blob/master/qqwry_lastest.dat -o /tmp/QQWry.Dat && mv /tmp/QQWry.Dat share/QQWry.Dat #wget --no-check-certificate https://chenze.name/wenjian/QQWry.Dat -O /tmp/QQWry.Dat && mv /tmp/QQWry.Dat share/QQWry.Dat %configure --prefix=/usr make %install make install DESTDIR=%{buildroot} rm -rf %{buildroot}/%{_bindir}/nali-update install -m0755 %{SOURCE1} %{buildroot}/%{_bindir}/nali-update %files %doc INSTALL LICENSE README %{_bindir}/qqwrynali %{_bindir}/nali %{_bindir}/nali-traceroute %{_bindir}/nali-tracepath %{_bindir}/nali-dig %{_bindir}/nali-nslookup %{_bindir}/nali-ping %{_bindir}/nali-update %{_datadir}/nali/QQWry.Dat %{_datadir}/nali/nali.pl %changelog * Thu Apr 30 2020 Yupeng Chang - 0.2-2 - Update scripts * Fri Aug 29 2014 Yupeng Chang - 0.2-1 - Initial build