# # spec file for package whois (Version 5.0.6) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: whois BuildRequires: libidn-devel License: GPLv2+ Group: Productivity/Networking/Other Provides: ripe-whois-tools AutoReqProv: on Url: http://www.linux.it/~md/software/ Version: 5.0.6 Release: 1 Summary: Whois Client Program Source: %{name}_%{version}.tar.bz2 Patch1: %{name}-4.7.33-nb.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This is a new whois (RFC 954) client rewritten from scratch by Marco d'Itri. 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 package also contains mkpasswd, a simple front-end to crypt(3). Authors: -------- Marco d'Itri %prep %setup -n whois-%{version} %patch1 rename no nb po/no.* %build make all mkpasswd HAVE_LIBIDN=1 CFLAGS="$RPM_OPT_FLAGS" %install mkdir -p $RPM_BUILD_ROOT{/usr/bin,%{_mandir}/man1} make BASEDIR=$RPM_BUILD_ROOT mandir=%{_mandir} prefix=/usr \ install install-mkpasswd install-pos %find_lang %{name} %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %doc README debian/changelog debian/copyright %{_bindir}/mkpasswd %{_bindir}/whois %{_mandir}/man1/mkpasswd.* %{_mandir}/man1/whois.* %changelog