代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/whois 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%{bcond_with whois_enables_mkpasswd}
%{bcond_without whois_enables_idn}
%{bcond_without whois_enables_libidn2}
Name: whois
Version: 5.5.23
Release: 1
Summary: Improved WHOIS client
License: GPLv2+
URL: https://github.com/rfc1036/whois
Source0: https://github.com/rfc1036/whois/archive/refs/tags/v%{version}.tar.gz
BuildRequires: coreutils gcc gettext
%if %{with whois_enables_idn}
%if %{with whois_enables_libidn2}
BuildRequires: pkgconfig(libidn2) >= 2.0.3
%else
BuildRequires: pkgconfig(libidn)
BuildConflicts: pkgconfig(libidn2)
%endif
%else
BuildConflicts: pkgconfig(libidn)
BuildConflicts: pkgconfig(libidn2)
%endif
%if %{with whois_enables_mkpasswd}
BuildRequires: pkgconfig(libcrypt) pkgconfig(libxcrypt) >= 4.1
%endif
BuildRequires: make perl-interpreter perl(autodie) perl(strict) perl(warnings)
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
Requires: whois-nls = %{version}-%{release}
%global genname whois
%global alternative md
%global cfgfile %{name}.conf
%description
Searches for an object in a RFC 3912 database. This version of the WHOIS client tries to guess the right server to ask for the specified object. If no guess can be made it will connect to whois.networksolutions.com for NIC handles or whois.arin.net for IPv4 addresses and network names.
%if %{with whois_enables_mkpasswd}
%package -n mkpasswd
Summary: Encrypt a password with crypt(3) function using a salt
Requires: whois-nls = %{version}-%{release}
Provides: whois-mkpasswd = %{version}-%{release}
%description -n mkpasswd
mkpasswd tool encrypts a given password with the crypt(3) libc function
using a given salt.
%endif
%package nls
Summary: Gettext catalogs for whois tools
BuildArch: noarch
%description nls
whois tools messages translated into different natural languages.
%prep
mv %{_sourcedir}/%{name}-%{version}.tar.gz %{_sourcedir}/v%{version}.tar.gz
%autosetup -n %{name}-%{version}
%build
%{make_build} CONFIG_FILE="%{_sysconfdir}/%{cfgfile}" \
HAVE_ICONV=1 \
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="%{__global_ldflags}"
%install
%if %{with whois_enables_mkpasswd}
make install-mkpasswd install-pos BASEDIR=$RPM_BUILD_ROOT
%endif
make install-whois install-pos BASEDIR=$RPM_BUILD_ROOT
install -p -m644 -D %{cfgfile} $RPM_BUILD_ROOT%{_sysconfdir}/%{cfgfile}
%find_lang %{name}
mv $RPM_BUILD_ROOT%{_bindir}/%{name}{,.%{alternative}}
touch $RPM_BUILD_ROOT%{_bindir}/%{name}
chmod 755 $RPM_BUILD_ROOT%{_bindir}/%{name}
mv $RPM_BUILD_ROOT%{_mandir}/man1/%{name}{,.%{alternative}}.1
touch $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
%post
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{name} \
%{genname} %{_bindir}/%{name}.%{alternative} 30 \
--slave %{_mandir}/man1/%{name}.1.gz \
%{genname}-man %{_mandir}/man1/%{name}.%{alternative}.1.gz
%postun
if [ $1 -eq 0 ] ; then
%{_sbindir}/update-alternatives --remove \
%{genname} %{_bindir}/%{name}.%{alternative}
fi
%files
%license COPYING debian/copyright
%doc README debian/changelog
%config(noreplace) %{_sysconfdir}/%{cfgfile}
%{_bindir}/%{name}.%{alternative}
%ghost %{_bindir}/%{name}
%{_mandir}/man1/%{name}.%{alternative}.*
%ghost %{_mandir}/man1/%{name}.1.gz
%{_mandir}/man5/%{cfgfile}.5.*
%files nls -f %{name}.lang
%if %{with whois_enables_mkpasswd}
%files -n mkpasswd
%license COPYING debian/copyright
%doc README debian/changelog
%{_bindir}/mkpasswd
%{_mandir}/man1/mkpasswd.*
%endif
%changelog
* Wed Nov 14 2024 zhangxianjun <zhangxianjun@kylinos.cn> 5.5.23-1
- update to 5.5.23
- Updated the .sc, .新加坡 (.xn--yfro4i67o, Singapore) and .சிங்கப்பூர்(.xn--clchc0ea0b2g2a9gcd, Singapore) TLD servers.
- Updated the .cv and .sd TLD servers.
- Remove 4 new gTLDs which are no longer active.
- Fixed a segmentation fault with --no-recursion.
- Updated the .bm and .vi TLD servers.
- Removed 4 new gTLDs which are no longer active.
* Mon Jan 08 2024 xu_ping <707078654@qq.com> 5.5.20-1
- update to 5.5.20
* Fri May 19 2023 kiritakekumi <root@niconiconi.us> 5.5.17-1
- update to 5.5.17
* The Jan 7 2022 zhuwenshuo <1003254035@qq.com> 5.5.15-1
- update to 5.5.15
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 5.5.10-1
- package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。