]> git.pld-linux.org Git - packages/whois.git/blobdiff - whois.spec
- updated gettext BR
[packages/whois.git] / whois.spec
index 7cba24aeabd8cdc5bf53e7291f4e0dd1e3ca140d..5733ed18abea76290da3df95e2f299fa73b3ad33 100644 (file)
@@ -1,22 +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.21
-Release:       4
-License:       GPL
+Version:       5.2.0
+Release:       1
+License:       GPL v2+
 Group:         Networking/Utilities
-Source0:       http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.gz
-# Source0-md5: 465479682f31f0627ebc4ab3e365b7d2
+Source0:       http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz
+# Source0-md5: 0e5966b051735fff91792fa40c3d030f
 Patch0:                %{name}-idn.patch
-Patch1:                %{name}-pl.po-update.patch
-Patch2:                %{name}-as_del_list.patch
-Patch3:                %{name}-config.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)
 
@@ -46,28 +51,30 @@ większosci zapytań.
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
-%patch3 -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
@@ -76,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*
This page took 0.036725 seconds and 4 git commands to generate.