]> git.pld-linux.org Git - packages/whois.git/blob - whois.spec
- Up to 5.0.10
[packages/whois.git] / whois.spec
1 # TODO
2 # - Why does whois provide something called mkpasswd (also provided by expect)
3 #   and should we rm it durring %install with a note as to why we aren't using it?
4 #
5 Summary:        Enhanced WHOIS client
6 Summary(pl.UTF-8):      Rozszerzony klient WHOIS
7 Summary(ru.UTF-8):      Улучшенный клиент WHOIS
8 Summary(uk.UTF-8):      Покращений клієнт WHOIS
9 Name:           whois
10 Version:        5.0.10
11 Release:        1
12 License:        GPL v2
13 Group:          Networking/Utilities
14 Source0:        http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.gz
15 # Source0-md5:  d7626a3f789da85e70e4b931b6b34a26
16 Patch0:         %{name}-idn.patch
17 Patch1:         %{name}-config.patch
18 URL:            http://www.linux.it/~md/software/
19 BuildRequires:  gettext-devel
20 BuildRequires:  libidn-devel
21 BuildRequires:  perl-base
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
52 mv -f po/{no,nb}.po
53 %{__perl} -pi -e 's/no\.mo/nb.mo/' po/Makefile
54
55 # Makefile vs po/Makefile mismatch
56 echo 'install-pos: install' >> po/Makefile
57
58 %build
59 %{__make} \
60         CC="%{__cc}" \
61         CFLAGS="%{rpmcflags}" \
62         HAVE_LIBIDN=1
63
64 %{__make} -C po
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_mandir}/man1}
69
70 install whois.conf $RPM_BUILD_ROOT%{_sysconfdir}
71
72 %{__make} install install-pos \
73         BASEDIR=$RPM_BUILD_ROOT \
74         prefix=%{_prefix}
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}/whois
85 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whois.conf
86 %{_mandir}/man1/whois.1*
This page took 0.092411 seconds and 3 git commands to generate.