]> git.pld-linux.org Git - packages/whois.git/blobdiff - whois.spec
- updated to 5.4.1
[packages/whois.git] / whois.spec
index 0f54ac1b2c6f599d42db076948ddc3dd113f44c2..178c28ecdba3c8c6a804bc7e5cdd0cf461a99ca5 100644 (file)
@@ -1,25 +1,26 @@
-# 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?
-#
 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.14
+Version:       5.4.1
 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: 82c4c93ea589ce1dad1cb02ef04c08b9
+Source0:       http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz
+# Source0-md5: eb7c6a452160dc5261ab75d06d0783d9
 Patch0:                %{name}-idn.patch
 Patch1:                %{name}-config.patch
-Patch2:                %{name}-pl.po-update.patch
-URL:           http://www.linux.it/~md/software/
-BuildRequires: gettext-devel
-BuildRequires: libidn-devel
+Patch2:                %{name}-mkpwdhash.patch
+Patch3:                %{name}-pl.po-update.patch
+URL:           https://github.com/rfc1036/whois
+BuildRequires: gettext-tools
+BuildRequires: libidn2-devel >= 2.0.3
+BuildRequires: libxcrypt-devel >= 4.1
 BuildRequires: perl-base
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires:      libidn2 >= 2.0.3
 Obsoletes:     inetutils-whois
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -50,9 +51,7 @@ większosci zapytań.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
-
-mv -f po/{no,nb}.po
-%{__perl} -pi -e 's/no\.mo/nb.mo/' po/Makefile
+%patch3 -p1
 
 # Makefile vs po/Makefile mismatch
 echo 'install-pos: install' >> po/Makefile
@@ -61,20 +60,19 @@ echo 'install-pos: install' >> po/Makefile
 %{__make} \
        CC="%{__cc}" \
        CFLAGS="%{rpmcflags} %{rpmcppflags}" \
-       HAVE_LIBIDN=1
+       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 install-pos \
        BASEDIR=$RPM_BUILD_ROOT \
        prefix=%{_prefix}
 
+%{__cp} -p whois.conf $RPM_BUILD_ROOT%{_sysconfdir}
+
 %find_lang %{name}
 
 %clean
@@ -83,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc README debian/changelog
+%attr(755,root,root) %{_bindir}/mkpwdhash
 %attr(755,root,root) %{_bindir}/whois
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whois.conf
+%{_mandir}/man1/mkpwdhash.1*
 %{_mandir}/man1/whois.1*
+%{_mandir}/man5/whois.conf.5*
This page took 0.118324 seconds and 4 git commands to generate.