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