X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=whois.spec;h=1ce8325ab29ce3d147466eb6db6155bd5ef88391;hb=b6025749868e6f7b5193ab98bdbccd738348bc71;hp=ef22458e096da16f7938fd7b685c10994110a865;hpb=878851b59cb2e9109126ea8a6d0d8754d31d6477;p=packages%2Fwhois.git diff --git a/whois.spec b/whois.spec index ef22458..1ce8325 100644 --- a/whois.spec +++ b/whois.spec @@ -1,25 +1,27 @@ # 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: 5.0.11 -Release: 2 -License: GPL v2 +Version: 5.2.3 +Release: 1 +License: GPL v2+ Group: Networking/Utilities -Source0: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.gz -# Source0-md5: 942e2d90b0bcd7d22765c8e3344fe118 +Source0: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz +# Source0-md5: 8144fc16bd11f04087c6f91f26ced381 Patch0: %{name}-idn.patch Patch1: %{name}-config.patch -Patch2: %{name}-tld.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) @@ -49,10 +51,6 @@ większosci zapytań. %setup -q %patch0 -p1 %patch1 -p1 -%patch2 -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 @@ -75,6 +73,8 @@ install whois.conf $RPM_BUILD_ROOT%{_sysconfdir} BASEDIR=$RPM_BUILD_ROOT \ prefix=%{_prefix} +%{__rm} $RPM_BUILD_ROOT{%{_bindir}/mkpasswd,%{_mandir}/man1/mkpasswd.1} + %find_lang %{name} %clean @@ -86,3 +86,4 @@ rm -rf $RPM_BUILD_ROOT %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*