--- /dev/null
+Extended malloc attributes are available since gcc 11.
+--- whois/utils.h.orig 2023-10-08 22:58:33.000000000 +0200
++++ whois/utils.h 2023-10-21 17:56:23.225691505 +0200
+@@ -17,7 +17,11 @@
+ /* Portability macros */
+ #ifdef __GNUC__
+ # define NORETURN __attribute__((noreturn))
++# if __GNUC__ >= 11
+ # define MALLOC_FREE __attribute__((malloc(free)))
++# else
++# define MALLOC_FREE
++# endif
+ # define NONNULL __attribute__((returns_nonnull))
+ #else
+ # define NORETURN
+++ /dev/null
---- whois-5.5.18/po/pl.po.orig 2023-10-05 21:33:46.034136147 +0200
-+++ whois-5.5.18/po/pl.po 2023-10-05 21:33:50.570778236 +0200
-@@ -1,14 +1,14 @@
- # Polish translation for whois.
- # Michał 'CeFeK' Nazarewicz <cefek@career.pl>, 1999
- # Przemysław Knycz <djrzulf@pld.org.pl>, 2003
--# Jakub Bogusz <qboosh@pld-linux.org>, 2003-2019
-+# Jakub Bogusz <qboosh@pld-linux.org>, 2003-2023
- #
- msgid ""
- msgstr ""
--"Project-Id-Version: whois 5.5.1\n"
-+"Project-Id-Version: whois 5.5.18\n"
- "Report-Msgid-Bugs-To: \n"
- "POT-Creation-Date: 2022-01-03 17:52+0100\n"
--"PO-Revision-Date: 2019-08-28 18:02+0200\n"
-+"PO-Revision-Date: 2023-10-05 21:30+0200\n"
- "Last-Translator: Jakub Bogusz <qboosh@pld-linux.org>\n"
- "Language-Team: Polish <translation-team-pl@lists.sourceforge.net>\n"
- "Language: pl\n"
-@@ -149,7 +149,7 @@ msgstr ""
- "-H ukrycie oświadczeń prawnych\n"
-
- #: ../whois.c:1506
--#, fuzzy, c-format
-+#, c-format
- msgid ""
- " --verbose explain what is being done\n"
- " --no-recursion disable recursion from registry to registrar servers\n"
-@@ -158,6 +158,7 @@ msgid ""
- "\n"
- msgstr ""
- " --verbose wyjaśnianie, co się dzieje\n"
-+" --no-recursion wyłączenie rekurencji z serwerów rejestru do rejestratorów\n"
- " --help wyświetlenie tego opisu i zakończenie działania\n"
- " --version wyświetlenie informacji o wersji i zakończenie "
- "działania\n"
Summary(ru.UTF-8): Улучшенный клиент WHOIS
Summary(uk.UTF-8): Покращений клієнт WHOIS
Name: whois
-Version: 5.5.18
-Release: 2
+Version: 5.5.19
+Release: 1
License: GPL v1+
Group: Networking/Utilities
Source0: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz
-# Source0-md5: be8aaa843a0030f656b0ac3ed945e4e6
+# Source0-md5: e719aef49e4ca3ff959fe4e18c3dd4a2
Patch0: %{name}-idn.patch
Patch1: %{name}-config.patch
Patch2: %{name}-mkpwdhash.patch
-Patch3: %{name}-pl.po-update.patch
+Patch3: %{name}-gcc.patch
URL: https://github.com/rfc1036/whois
BuildRequires: gettext-tools
BuildRequires: libidn2-devel >= 2.0.3
вибирати правильний whois сервер в залежності від запиту.
%prep
-%setup -q
+%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%patch2 -p1