]> git.pld-linux.org Git - packages/whois.git/blobdiff - whois.spec
- up to 5.2.3
[packages/whois.git] / whois.spec
index 511e9a5e1e79c7acb2ce3fbea9f94ea845d30bde..1ce8325ab29ce3d147466eb6db6155bd5ef88391 100644 (file)
@@ -1,19 +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
+Summary(pl.UTF-8):     Rozszerzony klient WHOIS
+Summary(ru.UTF-8):     Улучшенный клиент WHOIS
+Summary(uk.UTF-8):     Покращений клієнт WHOIS
 Name:          whois
-Version:       4.7.20
+Version:       5.2.3
 Release:       1
-License:       GPL
+License:       GPL v2+
 Group:         Networking/Utilities
-Source0:       http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.gz
-# Source0-md5: 81cea7350890d2a4dc974f661be31c7d
+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)
 
@@ -42,26 +50,31 @@ większosci zapytań.
 %prep
 %setup -q
 %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
@@ -70,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.041152 seconds and 4 git commands to generate.