X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=whois.spec;h=1ce8325ab29ce3d147466eb6db6155bd5ef88391;hb=b6025749868e6f7b5193ab98bdbccd738348bc71;hp=f315c93be7213d080e695774e04f3cffef56c9a0;hpb=5912e67c9a6ed59b206524be77c7ed8edf6043b4;p=packages%2Fwhois.git diff --git a/whois.spec b/whois.spec index f315c93..1ce8325 100644 --- a/whois.spec +++ b/whois.spec @@ -1,20 +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: 4.7.24 +Version: 5.2.3 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: 479ebc79d1e8189e16ab51b4d8981529 +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 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) @@ -45,25 +52,29 @@ większosci zapytań. %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}" \ - OPTS="%{rpmcflags}" \ + CFLAGS="%{rpmcflags} %{rpmcppflags}" \ HAVE_LIBIDN=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} +%{__rm} $RPM_BUILD_ROOT{%{_bindir}/mkpasswd,%{_mandir}/man1/mkpasswd.1} + %find_lang %{name} %clean @@ -72,6 +83,7 @@ rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) %doc README debian/changelog -%attr(755,root,root) %{_bindir}/* +%attr(755,root,root) %{_bindir}/whois %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whois.conf -%{_mandir}/man1/* +%{_mandir}/man1/whois.1* +%{_mandir}/man5/whois.conf.5*