]>
Commit | Line | Data |
---|---|---|
1 | Summary: Enhanced WHOIS client | |
2 | Summary(pl.UTF-8): Rozszerzony klient WHOIS | |
3 | Summary(ru.UTF-8): Улучшенный клиент WHOIS | |
4 | Summary(uk.UTF-8): Покращений клієнт WHOIS | |
5 | Name: whois | |
6 | Version: 5.5.18 | |
7 | Release: 2 | |
8 | License: GPL v1+ | |
9 | Group: Networking/Utilities | |
10 | Source0: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz | |
11 | # Source0-md5: be8aaa843a0030f656b0ac3ed945e4e6 | |
12 | Patch0: %{name}-idn.patch | |
13 | Patch1: %{name}-config.patch | |
14 | Patch2: %{name}-mkpwdhash.patch | |
15 | Patch3: %{name}-pl.po-update.patch | |
16 | URL: https://github.com/rfc1036/whois | |
17 | BuildRequires: gettext-tools | |
18 | BuildRequires: libidn2-devel >= 2.0.3 | |
19 | BuildRequires: libxcrypt-devel >= 4.1 | |
20 | BuildRequires: perl-base | |
21 | BuildRequires: pkgconfig | |
22 | BuildRequires: tar >= 1:1.22 | |
23 | BuildRequires: xz | |
24 | Requires: libidn2 >= 2.0.3 | |
25 | Obsoletes: inetutils-whois | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | This is a new whois (RFC 954) client rewritten from scratch. It is | |
30 | derived from and compatible with the usual BSD and RIPE whois(1) | |
31 | programs. It is intelligent and can automatically select the | |
32 | appropriate whois server for most queries. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | To jest nowy klient usługi whois (RFC 954) napisany całkowicie od | |
36 | nowa. Jest kompatybilny zarówno z whois z BSD oraz RIPE. Jest | |
37 | inteligentny i automatycznie dobiera poprawny serwer whois dla | |
38 | większosci zapytań. | |
39 | ||
40 | %description -l ru.UTF-8 | |
41 | Это написанный с "нуля" клиент (RFC 954), совместимый с whois(1) | |
42 | программами BSD и RIPE. В большинстве случаев он может автоматически | |
43 | выбирать правильный whois сервер в зависимости от запроса. | |
44 | ||
45 | %description -l uk.UTF-8 | |
46 | Це заново написаний клієнт whois (RFC 954), сумісний з whois(1) | |
47 | програмами BSD та RIPE. Він в більшості випадків може автоматично | |
48 | вибирати правильний whois сервер в залежності від запиту. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | %patch0 -p1 | |
53 | %patch1 -p1 | |
54 | %patch2 -p1 | |
55 | %patch3 -p1 | |
56 | ||
57 | # Makefile vs po/Makefile mismatch | |
58 | echo 'install-pos: install' >> po/Makefile | |
59 | ||
60 | %build | |
61 | %{__make} \ | |
62 | CC="%{__cc}" \ | |
63 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ | |
64 | HAVE_ICONV=1 | |
65 | ||
66 | %{__make} -C po | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_mandir}/man1} | |
71 | ||
72 | %{__make} install install-pos \ | |
73 | BASEDIR=$RPM_BUILD_ROOT \ | |
74 | prefix=%{_prefix} | |
75 | ||
76 | %{__cp} -p whois.conf $RPM_BUILD_ROOT%{_sysconfdir} | |
77 | ||
78 | %find_lang %{name} | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %files -f %{name}.lang | |
84 | %defattr(644,root,root,755) | |
85 | %doc README debian/changelog | |
86 | %attr(755,root,root) %{_bindir}/mkpwdhash | |
87 | %attr(755,root,root) %{_bindir}/whois | |
88 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whois.conf | |
89 | %{bash_compdir}/mkpwdhash | |
90 | %{bash_compdir}/whois | |
91 | %{_mandir}/man1/mkpwdhash.1* | |
92 | %{_mandir}/man1/whois.1* | |
93 | %{_mandir}/man5/whois.conf.5* |