]> git.pld-linux.org Git - packages/whois.git/blobdiff - whois.spec
- rel 2; fix .asia whois server
[packages/whois.git] / whois.spec
index 4ccda618bc4bacacae50a23ab813db73877afa24..174822538e21b81210622acdd65dde2b6eb9a477 100644 (file)
@@ -1,35 +1,70 @@
-Summary:       whois client program 
+Summary:       Enhanced WHOIS client
+Summary(pl.UTF-8):     Rozszerzony klient WHOIS
+Summary(ru.UTF-8):     Улучшенный клиент WHOIS
+Summary(uk.UTF-8):     Покращений клієнт WHOIS
 Name:          whois
-Version:       4.4.6
-Release:       1
-Copyright:     GPL
+Version:       4.7.24
+Release:       2
+License:       GPL v2
 Group:         Networking/Utilities
-Group(pl):     Sieciowe/Narzêdzia
-Source:                http://www.linux.it/~md/software/whois_%{version}.tar.gz
-Patch:         whois-Makefile.patch
+Source0:       http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.gz
+# Source0-md5: 479ebc79d1e8189e16ab51b4d8981529
+Patch0:                %{name}-idn.patch
+Patch1:                %{name}-config.patch
+Patch2:                %{name}-srv.patch
+URL:           http://www.linux.it/~md/software/
+BuildRequires: gettext-devel
+BuildRequires: libidn-devel
+BuildRequires: perl-base
+Obsoletes:     inetutils-whois
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This is a new whois (RFC 954) client rewritten from scratch by me.                   
-It is derived from and compatible with the usual BSD and RIPE whois(1)               
-programs.                                                                            
-It is intelligent and can automatically select the appropriate whois                 
-server for most queries.                                                             
-                                                                                    
+This is a new whois (RFC 954) client rewritten from scratch. It is
+derived from and compatible with the usual BSD and RIPE whois(1)
+programs. It is intelligent and can automatically select the
+appropriate whois server for most queries.
+
+%description -l pl.UTF-8
+To jest nowy klient usługi whois (RFC 954) napisany całkowicie od
+nowa. Jest kompatybilny zarówno z whois z BSD oraz RIPE. Jest
+inteligentny i automatycznie dobiera poprawny serwer whois dla
+większosci zapytań.
+
+%description -l ru.UTF-8
+Это написанный с "нуля" клиент (RFC 954), совместимый с whois(1)
+программами BSD и RIPE. В большинстве случаев он может автоматически
+выбирать правильный whois сервер в зависимости от запроса.
+
+%description -l uk.UTF-8
+Це заново написаний клієнт whois (RFC 954), сумісний з whois(1)
+програмами BSD та RIPE. Він в більшості випадків може автоматично
+вибирати правильний whois сервер в залежності від запиту.
+
 %prep
-%setup -q 
-%patch -p1
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+mv -f po/{no,nb}.po
+%{__perl} -pi -e 's/no\.mo/nb.mo/' po/Makefile
 
 %build
-make OPTS="$RPM_OPTS_FLAGS" LDFLAGS="-s"
+%{__make} \
+       CC="%{__cc}" \
+       OPTS="%{rpmcflags}" \
+       HAVE_LIBIDN=1
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_mandir}/man1}
 
-make install DESTDIR=$RPM_BUILD_ROOT
+install whois.conf $RPM_BUILD_ROOT%{_sysconfdir}
 
-gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man1/* \
-       README TODO
+%{__make} install \
+       BASEDIR=$RPM_BUILD_ROOT \
+       prefix=%{_prefix}
 
 %find_lang %{name}
 
@@ -38,6 +73,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc {README,TODO}.gz
+%doc README debian/changelog
 %attr(755,root,root) %{_bindir}/*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whois.conf
 %{_mandir}/man1/*
This page took 0.795462 seconds and 4 git commands to generate.