X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=whois.spec;h=d78827c2d7e206599a67dee959f34b9490b77ffc;hb=0751043fbb85c8ebd02c7e77c35433b776be55e7;hp=7cba24aeabd8cdc5bf53e7291f4e0dd1e3ca140d;hpb=4ea8b5466a35705cb2e9f0a2004183165125a53c;p=packages%2Fwhois.git diff --git a/whois.spec b/whois.spec index 7cba24a..d78827c 100644 --- a/whois.spec +++ b/whois.spec @@ -3,20 +3,21 @@ 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.3.1 +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: 5c436e40a7257a44401c001fc05c668c Patch0: %{name}-idn.patch -Patch1: %{name}-pl.po-update.patch -Patch2: %{name}-as_del_list.patch -Patch3: %{name}-config.patch -URL: http://www.linux.it/~md/software/ -BuildRequires: gettext-devel -BuildRequires: libidn-devel +Patch1: %{name}-config.patch +Patch2: %{name}-mkpwdhash.patch +URL: https://github.com/rfc1036/whois +BuildRequires: gettext-tools +BuildRequires: libidn2-devel BuildRequires: perl-base +BuildRequires: tar >= 1:1.22 +BuildRequires: xz Obsoletes: inetutils-whois BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -47,27 +48,27 @@ większosci zapytań. %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}" \ - HAVE_LIBIDN=1 + CFLAGS="%{rpmcflags} %{rpmcppflags}" \ + 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 \ +%{__make} install install-pos \ BASEDIR=$RPM_BUILD_ROOT \ prefix=%{_prefix} +%{__cp} -p whois.conf $RPM_BUILD_ROOT%{_sysconfdir} + %find_lang %{name} %clean @@ -76,6 +77,9 @@ 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}/mkpwdhash +%attr(755,root,root) %{_bindir}/whois %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whois.conf -%{_mandir}/man1/* +%{_mandir}/man1/mkpwdhash.1* +%{_mandir}/man1/whois.1* +%{_mandir}/man5/whois.conf.5*