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