SHA256
1
0
forked from pool/whois
whois/whois.spec
Cristian Rodríguez 9f4f7e06b6 Accepting request 76616 from home:lnussel:crypt_blowfish
- enable use of crypt_gensalt to support all glibc supported
  algorithms
- allow 8bit passwords read from file
- support new blowfish $2y algorithm

I've sent the patches to Marco d'Itri <md@linux.it>, he said he will
include them in the next whois release.

OBS-URL: https://build.opensuse.org/request/show/76616
OBS-URL: https://build.opensuse.org/package/show/network:utilities/whois?expand=0&rev=19
2011-07-27 06:21:55 +00:00

80 lines
2.6 KiB
RPMSpec

#
# spec file for package whois
#
# Copyright (c) 2011 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/
#
Name: whois
Version: 5.0.11
Release: 1
License: GPLv2+
Summary: Whois Client Program
Url: http://www.linux.it/~md/software/
Group: Productivity/Networking/Other
Source: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.bz2
Patch1: whois-4.7.33-nb.patch
Patch2: whois-5.0.11-mkpasswd-support-Owl-patched-libcrypt.diff
Patch3: whois-5.0.11-mkpasswd-crypt_gensalt-might-change-the-prefix.diff
Patch4: whois-5.0.11-mkpasswd-support-8bit-characters.diff
Patch5: whois-5.0.11-mkpasswd-add-support-for-the-new-2y-blowfish-tag-CVE-2011-2483.diff
Patch6: whois-5.0.11-mkpasswd-set-default-blowfish-rounds-to-5.diff
Patch7: whois-5.0.11-mkpasswd-remove-obsolete-settings.diff
Patch8: whois-5.0.11-mkpasswd-fix-compiler-warnings.diff
BuildRequires: libidn-devel
Provides: ripe-whois-tools
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).
%prep
%setup -n whois-%{version}
%patch1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
rename no nb po/no.*
%build
make all mkpasswd HAVE_LIBIDN=1 HAVE_ICONV=1 HAVE_CRYPT_GENSALT=1 CFLAGS="%{optflags}"
%install
mkdir -p %{buildroot}{/usr/bin,%{_mandir}/man1}
make BASEDIR=%{buildroot} 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