SHA256
1
0
forked from pool/whois

Accepting request 455167 from home:AndreasStieger:branches:network:utilities

- add support for IDNA2008 and build with libidn2 FATE#321897
  add whois-5.2.14-IDNA2008.patch

OBS-URL: https://build.opensuse.org/request/show/455167
OBS-URL: https://build.opensuse.org/package/show/network:utilities/whois?expand=0&rev=73
This commit is contained in:
OBS User mrdocs
2017-02-07 04:03:39 +00:00
committed by Git OBS Bridge
parent d6d7909d38
commit feea92cfa1
3 changed files with 143 additions and 4 deletions

View File

@@ -30,7 +30,8 @@ Source2: %{name}.keyring
# rename .dsc to not build the package in OBS
Source3: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.dsc#/%{name}.asc
Patch0: whois-nobsdsource.patch
BuildRequires: libidn-devel
Patch1: whois-5.2.14-IDNA2008.patch
BuildRequires: libidn2-devel
BuildRequires: xz
Provides: ripe-whois-tools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -63,9 +64,10 @@ echo "`grep -A1 "Checksums-Sha256" %{SOURCE3} | grep %{name}_%{version}.tar.xz |
%setup -q
%patch0 -p1
%patch1 -p1
%build
make all mkpasswd HAVE_LIBIDN=1 HAVE_ICONV=1 %{?_smp_mflags} \
make all mkpasswd HAVE_LIBIDN2=1 HAVE_ICONV=1 %{?_smp_mflags} \
%if 0%{?suse_version} <= 1140
HAVE_XCRYPT=1 \
%else
@@ -84,7 +86,7 @@ make BASEDIR=%{buildroot} mandir=%{_mandir} prefix=%{_prefix} \
%doc README debian/changelog debian/copyright
%{_bindir}/mkpasswd
%{_bindir}/whois
%{_mandir}/man1/mkpasswd.*
%{_mandir}/man?/whois.*
%{_mandir}/man1/*.1%{ext_man}
%{_mandir}/man5/*.5%{ext_man}
%changelog