LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File whois.spec of Package whois (Project home:aevseev)

%define realname whois
%define realver  5.3.2
%define srcext   tar.xz

# turn off the generation of debuginfo rpm  (RH9) ??
%global debug_package %{nil}

# Common info
Name:          %{realname}
Version:       %{realver}
Release:       %{?extraver:0.}1%{?dist}
License:       GPL-2.0+
Group:         Productivity/Networking/Other
URL:           http://github.com/rfc1036/whois
Summary:       Intelligent WHOIS client

# Install-time parameters
Provides:      ripe-whois-tools

# Build-time parameters
BuildRequires: xz pkgconfig
BuildRequires: pkgconfig(libidn2) >= 2.0.3
BuildRoot:     %{_tmppath}/%{name}-root
Source:        http://ftp.debian.org/debian/pool/main/w/whois/%{realname}_%{realver}%{?extraver}.%{srcext}

This client is intelligent and can automatically select the appropriate
whois server for most queries.

The internal database is often more accurate than IANA's published one,
but please send me any information you have regarding domains and network
resources which are not correctly handled by the program.

Because of historical reasons this package also contains the mkpasswd
program, which can be used to encrypt a password with crypt(3).

# Preparation step (unpackung and patching if necessary)
%setup -q -n %{realname}-%{realver}%{?extraver}

_CFLAGS='%{optflags} %{?gcc_lto}'
_LDFLAGS='-Wl,--as-needed -Wl,--strip-all %{?gcc_lto}'
%{__make} %{?_smp_mflags} \
 prefix=%{_prefix} \
 CONFIG_FILE=%{_sysconfdir}/whois.conf \

%{__make} install BASEDIR=%{buildroot}
%{__install} -D -m644 whois.conf %{buildroot}%{_sysconfdir}/whois.conf
%find_lang %{name}

[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}

%files -f %{name}.lang
%config %{_sysconfdir}/whois.conf
%doc %{_mandir}/man1/*
%doc %{_mandir}/man5/*