]> git.pld-linux.org Git - packages/whois.git/blobdiff - whois.spec
- up to 5.2.12
[packages/whois.git] / whois.spec
index 228b77ed2bc343eeabf3df15cd22f471596174bc..7889a5c0e352a58cba81e8e5413ad4830f64f532 100644 (file)
@@ -3,18 +3,20 @@ Summary(pl.UTF-8):    Rozszerzony klient WHOIS
 Summary(ru.UTF-8):     Улучшенный клиент WHOIS
 Summary(uk.UTF-8):     Покращений клієнт WHOIS
 Name:          whois
-Version:       5.0.0
+Version:       5.2.12
 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: 18d74a07d711262b75f04a1c319bc833
+Source0:       http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz
+# Source0-md5: b8f1482827137788016a418cc1ae364b
 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,16 +47,13 @@ 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}" \
-       CFLAGS="%{rpmcflags}" \
+       CFLAGS="%{rpmcflags} %{rpmcppflags}" \
        HAVE_LIBIDN=1
 
 %{__make} -C po
@@ -62,14 +61,11 @@ echo 'install-pos: install' >> po/Makefile
 %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 \
+%{__make} install-whois install-pos \
        BASEDIR=$RPM_BUILD_ROOT \
        prefix=%{_prefix}
 
-rm -r $RPM_BUILD_ROOT%{_datadir}/locale/zh_CN.po
+cp -p whois.conf $RPM_BUILD_ROOT%{_sysconfdir}
 
 %find_lang %{name}
 
@@ -82,3 +78,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*
This page took 0.049537 seconds and 4 git commands to generate.