X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=whois.spec;h=71d6ede4e5935f728af5f89f71d540db4f9d11c7;hb=refs%2Fheads%2FRA-branch;hp=586c0881e779309fc52c60855780393927dc3a6e;hpb=1ce798792c8e4da859f9295e47199937c7f0192c;p=packages%2Fwhois.git diff --git a/whois.spec b/whois.spec index 586c088..71d6ede 100644 --- a/whois.spec +++ b/whois.spec @@ -3,15 +3,16 @@ Summary(pl): Rozszerzony klient WHOIS Summary(ru): õÌÕÞÛÅÎÎÙÊ ËÌÉÅÎÔ WHOIS Summary(uk): ðÏËÒÁÝÅÎÉÊ Ë̦¤ÎÔ WHOIS Name: whois -Version: 4.6.7 +Version: 4.7.11 Release: 1 License: GPL Group: Networking/Utilities -Source0: http://www.linux.it/~md/software/%{name}_%{version}.tar.gz -# Source0-md5: 36929e69816f0d9a938057c700fdfbc6 -Patch0: %{name}-Makefile.patch +#Source0: http://www.linux.it/~md/software/%{name}_%{version}.tar.gz +Source0: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.gz +# Source0-md5: aca7ac4c907232f2eea5e7cbb7d6245d URL: http://www.linux.it/~md/software/ BuildRequires: gettext-devel +BuildRequires: libidn-devel BuildRequires: %{_bindir}/perl BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -39,18 +40,25 @@ wi %prep %setup -q -%patch0 -p1 + +mv -f po/{no,nb}.po +%{__perl} -pi -e 's/no\.mo/nb.mo/' po/Makefile %build %{__make} \ CC="%{__cc}" \ - OPTS="%{rpmcflags} -DHAVE_GETADDRINFO=1" + OPTS="%{rpmcflags}" \ + HAVE_LIBIDN=1 %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_mandir}/man1} + +install whois.conf $RPM_BUILD_ROOT%{_sysconfdir} %{__make} install \ - DESTDIR=$RPM_BUILD_ROOT + BASEDIR=$RPM_BUILD_ROOT \ + prefix=%{_prefix} %find_lang %{name} @@ -59,6 +67,7 @@ rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) -%doc README +%doc README debian/changelog %attr(755,root,root) %{_bindir}/* +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whois.conf %{_mandir}/man1/*