Summary(ru): õÌÕÞÛÅÎÎÙÊ ËÌÉÅÎÔ WHOIS
Summary(uk): ðÏËÒÁÝÅÎÉÊ Ë̦¤ÎÔ WHOIS
Name: whois
-Version: 4.6.6
+Version: 4.7.11
Release: 1
License: GPL
Group: Networking/Utilities
-Source0: http://www.linux.it/~md/software/%{name}_%{version}.tar.gz
-# Source0-md5: eceebd6e1aaa82b376eee30f59032662
-Patch0: %{name}-Makefile.patch
+#Source0: http://www.linux.it/~md/software/%{name}_%{version}.tar.gz
+Source0: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.gz
+# Source0-md5: aca7ac4c907232f2eea5e7cbb7d6245d
URL: http://www.linux.it/~md/software/
BuildRequires: gettext-devel
+BuildRequires: libidn-devel
BuildRequires: %{_bindir}/perl
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
-%patch0 -p1
+
+mv -f po/{no,nb}.po
+%{__perl} -pi -e 's/no\.mo/nb.mo/' po/Makefile
%build
%{__make} \
CC="%{__cc}" \
- OPTS="%{rpmcflags} -DHAVE_GETADDRINFO=1"
+ OPTS="%{rpmcflags}" \
+ HAVE_LIBIDN=1
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_mandir}/man1}
+
+install whois.conf $RPM_BUILD_ROOT%{_sysconfdir}
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ BASEDIR=$RPM_BUILD_ROOT \
+ prefix=%{_prefix}
%find_lang %{name}
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc README
+%doc README debian/changelog
%attr(755,root,root) %{_bindir}/*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whois.conf
%{_mandir}/man1/*