2007-01-16 00:41:15 +01:00
|
|
|
#
|
2011-03-23 12:13:25 +01:00
|
|
|
# spec file for package whois
|
2007-01-16 00:41:15 +01:00
|
|
|
#
|
2024-04-04 11:12:56 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2024-03-05 09:58:10 +01:00
|
|
|
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
|
2007-01-16 00:41:15 +01:00
|
|
|
#
|
2008-09-12 18:17:09 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-02-21 11:00:25 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:41:15 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: whois
|
2024-05-15 15:54:09 +02:00
|
|
|
Version: 5.5.23
|
2013-07-08 16:17:03 +02:00
|
|
|
Release: 0
|
2013-07-09 02:34:49 +02:00
|
|
|
Summary: Intelligent WHOIS client
|
2018-05-26 06:20:51 +02:00
|
|
|
License: GPL-2.0-or-later
|
2011-03-22 11:18:33 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2021-02-25 22:39:53 +01:00
|
|
|
URL: https://github.com/rfc1036/whois
|
|
|
|
Source: https://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz
|
2024-03-05 09:58:10 +01:00
|
|
|
Source2: https://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.dsc#/%{name}-%{version}.asc
|
2017-11-13 11:29:42 +01:00
|
|
|
Source3: https://db.debian.org/fetchkey.cgi?fingerprint=6791403B68AE2690517C42EAE6FFF1E38DC968B0#/%{name}.keyring
|
2023-11-24 16:03:48 +01:00
|
|
|
Source4: %{name}-rpmlintrc
|
2015-01-22 16:29:08 +01:00
|
|
|
Patch0: whois-nobsdsource.patch
|
2017-05-23 23:52:48 +02:00
|
|
|
BuildRequires: pkgconfig
|
2013-07-09 02:34:49 +02:00
|
|
|
BuildRequires: xz
|
2017-05-23 23:52:48 +02:00
|
|
|
BuildRequires: pkgconfig(libidn2)
|
2014-05-03 11:52:52 +02:00
|
|
|
Provides: ripe-whois-tools
|
2021-02-25 22:39:53 +01:00
|
|
|
%{perl_requires}
|
2014-11-13 22:26:29 +01:00
|
|
|
%if 0%{?suse_version} != 1310
|
|
|
|
BuildRequires: perl(autodie)
|
|
|
|
%endif
|
2007-01-16 00:41:15 +01:00
|
|
|
|
|
|
|
%description
|
2013-07-09 02:34:49 +02:00
|
|
|
This package provides a commandline client for the WHOIS (RFC 3912)
|
|
|
|
protocol, which queries online servers for information such as contact
|
|
|
|
details for domains and IP address assignments.
|
|
|
|
It can intelligently select the appropriate WHOIS server for most queries.
|
2014-05-03 11:52:52 +02:00
|
|
|
|
2013-07-09 02:34:49 +02:00
|
|
|
The package also contains mkpasswd, a features-rich front end to the
|
|
|
|
password encryption function crypt(3).
|
2007-01-16 00:41:15 +01:00
|
|
|
|
2023-03-13 14:56:19 +01:00
|
|
|
%package bash-completion
|
|
|
|
Summary: Bash completion for whois
|
|
|
|
Group: System/Shells
|
|
|
|
Requires: %{name}
|
|
|
|
Requires: bash-completion
|
|
|
|
Supplements: (%{name} and bash-completion)
|
2023-11-23 17:20:05 +01:00
|
|
|
BuildArch: noarch
|
2023-03-13 14:56:19 +01:00
|
|
|
|
|
|
|
%description bash-completion
|
|
|
|
bash command line completion support for whois.
|
|
|
|
|
2007-01-16 00:41:15 +01:00
|
|
|
%prep
|
2013-07-10 20:20:44 +02:00
|
|
|
# the signature is on the Debian .dsc. Extract the checksums and verify against source
|
2017-11-13 11:29:42 +01:00
|
|
|
echo "`grep -A1 "Checksums-Sha256" %{SOURCE2} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | sha256sum -c
|
2013-07-10 20:20:44 +02:00
|
|
|
|
2024-05-15 15:54:09 +02:00
|
|
|
%autosetup -p1 -n %{name}
|
2007-01-16 00:41:15 +01:00
|
|
|
|
|
|
|
%build
|
2021-02-25 22:39:53 +01:00
|
|
|
%make_build all mkpasswd HAVE_LIBIDN2=1 HAVE_ICONV=1 \
|
2011-08-26 15:09:38 +02:00
|
|
|
%if 0%{?suse_version} <= 1140
|
|
|
|
HAVE_XCRYPT=1 \
|
|
|
|
%else
|
|
|
|
HAVE_CRYPT_GENSALT=1 \
|
|
|
|
%endif
|
|
|
|
CFLAGS="%{optflags}"
|
2007-01-16 00:41:15 +01:00
|
|
|
|
|
|
|
%install
|
2014-05-03 11:52:52 +02:00
|
|
|
mkdir -p %{buildroot}{%{_prefix}/bin,%{_mandir}/man1}
|
2015-12-08 11:48:38 +01:00
|
|
|
make BASEDIR=%{buildroot} mandir=%{_mandir} prefix=%{_prefix} \
|
2009-05-04 18:37:32 +02:00
|
|
|
install install-mkpasswd install-pos
|
2008-03-16 19:58:27 +01:00
|
|
|
%find_lang %{name}
|
2023-11-23 17:20:05 +01:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
|
|
|
|
mv %{buildroot}%{_sysconfdir}/bash_completion.d/{mkpasswd,whois} %{buildroot}%{_datadir}/bash-completion/completions
|
2007-01-16 00:41:15 +01:00
|
|
|
|
2008-03-16 19:58:27 +01:00
|
|
|
%files -f %{name}.lang
|
2018-05-26 06:20:51 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README debian/changelog
|
2010-07-19 21:08:56 +02:00
|
|
|
%{_bindir}/mkpasswd
|
|
|
|
%{_bindir}/whois
|
2018-05-26 06:20:51 +02:00
|
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
|
|
|
%{_mandir}/man5/*.5%{?ext_man}
|
2007-01-16 00:41:15 +01:00
|
|
|
|
2023-03-13 14:56:19 +01:00
|
|
|
%files bash-completion
|
2024-03-05 09:58:10 +01:00
|
|
|
%license COPYING
|
2023-11-23 17:20:05 +01:00
|
|
|
%{_datadir}/bash-completion/completions/whois
|
|
|
|
%{_datadir}/bash-completion/completions/mkpasswd
|
2023-03-13 14:56:19 +01:00
|
|
|
|
2007-08-02 23:40:37 +02:00
|
|
|
%changelog
|