From 698feffbfbd5377cc67a2ca315298db0180158e9a59d17e47f5904a90714252c Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Fri, 26 Aug 2011 13:09:38 +0000 Subject: [PATCH] Accepting request 79867 from home:lnussel:crypt_blowfish - fix build on older distros OBS-URL: https://build.opensuse.org/request/show/79867 OBS-URL: https://build.opensuse.org/package/show/network:utilities/whois?expand=0&rev=21 --- whois.changes | 5 +++++ whois.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/whois.changes b/whois.changes index cba8921..49809f6 100644 --- a/whois.changes +++ b/whois.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 26 07:50:06 UTC 2011 - lnussel@suse.de + +- fix build on older distros + ------------------------------------------------------------------- Tue Jul 19 08:48:20 UTC 2011 - lnussel@suse.de diff --git a/whois.spec b/whois.spec index 1fcc3d0..1947ab5 100644 --- a/whois.spec +++ b/whois.spec @@ -34,6 +34,9 @@ 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 +%if 0%{?suse_version} <= 1140 +BuildRequires: libxcrypt-devel +%endif Provides: ripe-whois-tools BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -57,7 +60,13 @@ mkpasswd, a simple front-end to crypt(3). rename no nb po/no.* %build -make all mkpasswd HAVE_LIBIDN=1 HAVE_ICONV=1 HAVE_CRYPT_GENSALT=1 CFLAGS="%{optflags}" +make all mkpasswd HAVE_LIBIDN=1 HAVE_ICONV=1 \ +%if 0%{?suse_version} <= 1140 + HAVE_XCRYPT=1 \ +%else + HAVE_CRYPT_GENSALT=1 \ +%endif + CFLAGS="%{optflags}" %install mkdir -p %{buildroot}{/usr/bin,%{_mandir}/man1}