+# TODO
+# - Why does whois provide something called mkpasswd (also provided by expect)
+# and should we rm it durring %install with a note as to why we aren't using it?
+# - "because of historical reasons" (quoting README)
+#
Summary: Enhanced WHOIS client
Summary(pl.UTF-8): Rozszerzony klient WHOIS
Summary(ru.UTF-8): Улучшенный клиент WHOIS
Summary(uk.UTF-8): Покращений клієнт WHOIS
Name: whois
-Version: 4.7.37
+Version: 5.2.0
Release: 1
-License: GPL v2
+License: GPL v2+
Group: Networking/Utilities
-Source0: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.gz
-# Source0-md5: c2784e02a8159bd46c31b3ea8dda28f0
+Source0: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz
+# Source0-md5: 0e5966b051735fff91792fa40c3d030f
Patch0: %{name}-idn.patch
Patch1: %{name}-config.patch
URL: http://www.linux.it/~md/software/
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
BuildRequires: libidn-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
-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}" \
- CFLAGS="%{rpmcflags}" \
+ CFLAGS="%{rpmcflags} %{rpmcppflags}" \
HAVE_LIBIDN=1
%{__make} -C po
BASEDIR=$RPM_BUILD_ROOT \
prefix=%{_prefix}
+%{__rm} $RPM_BUILD_ROOT{%{_bindir}/mkpasswd,%{_mandir}/man1/mkpasswd.1}
+
%find_lang %{name}
%clean
%attr(755,root,root) %{_bindir}/whois
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whois.conf
%{_mandir}/man1/whois.1*
+%{_mandir}/man5/whois.conf.5*