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