Summary(ru.UTF-8): Улучшенный клиент WHOIS
Summary(uk.UTF-8): Покращений клієнт WHOIS
Name: whois
-Version: 4.7.21
-Release: 4
-License: GPL
+Version: 5.3.1
+Release: 1
+License: GPL v2+
Group: Networking/Utilities
-Source0: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.gz
-# Source0-md5: 465479682f31f0627ebc4ab3e365b7d2
+Source0: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz
+# Source0-md5: 5c436e40a7257a44401c001fc05c668c
Patch0: %{name}-idn.patch
-Patch1: %{name}-pl.po-update.patch
-Patch2: %{name}-as_del_list.patch
-Patch3: %{name}-config.patch
-URL: http://www.linux.it/~md/software/
-BuildRequires: gettext-devel
-BuildRequires: libidn-devel
+Patch1: %{name}-config.patch
+Patch2: %{name}-mkpwdhash.patch
+URL: https://github.com/rfc1036/whois
+BuildRequires: gettext-tools
+BuildRequires: libidn2-devel
BuildRequires: perl-base
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
Obsoletes: inetutils-whois
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch3 -p1
-mv -f po/{no,nb}.po
-%{__perl} -pi -e 's/no\.mo/nb.mo/' po/Makefile
+# Makefile vs po/Makefile mismatch
+echo 'install-pos: install' >> po/Makefile
%build
%{__make} \
CC="%{__cc}" \
- OPTS="%{rpmcflags}" \
- HAVE_LIBIDN=1
+ CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+ HAVE_ICONV=1
+
+%{__make} -C po
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_mandir}/man1}
-
-install whois.conf $RPM_BUILD_ROOT%{_sysconfdir}
-
-%{__make} install \
+%{__make} install install-pos \
BASEDIR=$RPM_BUILD_ROOT \
prefix=%{_prefix}
+%{__cp} -p whois.conf $RPM_BUILD_ROOT%{_sysconfdir}
+
%find_lang %{name}
%clean
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc README debian/changelog
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/mkpwdhash
+%attr(755,root,root) %{_bindir}/whois
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whois.conf
-%{_mandir}/man1/*
+%{_mandir}/man1/mkpwdhash.1*
+%{_mandir}/man1/whois.1*
+%{_mandir}/man5/whois.conf.5*