]> git.pld-linux.org Git - packages/whois.git/blob - whois.spec
dfae0bdc7cb84ec7e74ef89a869ed36a5fc1e3cf
[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 #   - "because of historical reasons" (quoting README)
5 #
6 Summary:        Enhanced WHOIS client
7 Summary(pl.UTF-8):      Rozszerzony klient WHOIS
8 Summary(ru.UTF-8):      Улучшенный клиент WHOIS
9 Summary(uk.UTF-8):      Покращений клієнт WHOIS
10 Name:           whois
11 Version:        5.1.5
12 Release:        1
13 License:        GPL v2+
14 Group:          Networking/Utilities
15 Source0:        http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz
16 # Source0-md5:  2723e8916cb301999466fd0017d00def
17 Patch0:         %{name}-idn.patch
18 Patch1:         %{name}-config.patch
19 URL:            http://www.linux.it/~md/software/
20 BuildRequires:  gettext-devel
21 BuildRequires:  libidn-devel
22 BuildRequires:  perl-base
23 BuildRequires:  tar >= 1:1.22
24 BuildRequires:  xz
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
55 # Makefile vs po/Makefile mismatch
56 echo 'install-pos: install' >> po/Makefile
57
58 %build
59 %{__make} \
60         CC="%{__cc}" \
61         CFLAGS="%{rpmcflags} %{rpmcppflags}" \
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 %{__rm} $RPM_BUILD_ROOT{%{_bindir}/mkpasswd,%{_mandir}/man1/mkpasswd.1}
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}/whois
87 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whois.conf
88 %{_mandir}/man1/whois.1*
89 %{_mandir}/man5/whois.conf.5*
This page took 0.057493 seconds and 2 git commands to generate.