+++ /dev/null
---- popt-1.17/popt.c.orig 2014-08-09 22:13:11.000000000 +0200
-+++ popt-1.17/popt.c 2018-12-08 09:41:33.241167491 +0100
-@@ -1774,7 +1774,7 @@
- item->option.argDescrip = _free(item->option.argDescrip);
- /*@=modobserver =observertrans =dependenttrans@*/
- #if !defined(SUPPORT_CONTIGUOUS_ARGV)
-- for (i = 0; item->argv[i]; i++)
-+ for (i = 0; (i < item->argc) && item->argv[i]; i++)
- item->argv[i] = _free(item->argv[i]);
- #endif
- item->argv = _free(item->argv);
---- popt-1.14/popthelp.c~ 2008-03-27 18:33:08.000000000 +0100
-+++ popt-1.14/popthelp.c 2009-03-18 15:31:07.000000000 +0100
-@@ -22,6 +22,10 @@
- #endif
- #include "poptint.h"
-
+--- popt-1.18/src/popthelp.c.orig 2021-03-10 19:12:18.753352430 +0100
++++ popt-1.18/src/popthelp.c 2021-03-10 19:15:01.942468359 +0100
+@@ -13,6 +13,9 @@
+ #define POPT_USE_TIOCGWINSZ
+ #ifdef POPT_USE_TIOCGWINSZ
+ #include <sys/ioctl.h>
+#ifdef __dietlibc__
+#include <termios.h>
+#endif
-+
- /*@access poptContext@*/
+ #endif
- /**
+ #define POPT_WCHAR_HACK
#
# Conditional build:
-%bcond_with dietlibc # don't build static dietlibc library
+%bcond_with dietlibc # static dietlibc library
Summary: C library for parsing command line parameters
Summary(de.UTF-8): C-Library zum Parsen von Befehlszeilenparametern
Summary(tr.UTF-8): Komut satırı parametrelerini ayrıştırımak için C arşivi
Summary(uk.UTF-8): Бібліотека C для розбору параметрів командної стрічки
Name: popt
-Version: 1.17
-Release: 3
+Version: 1.18
+Release: 1
License: X Consortium (MIT-like)
Group: Libraries
-Source0: http://rpm5.org/files/popt/%{name}-%{version}.tar.gz
-# Source0-md5: 7f98c657d35981d30dd372da5335c354
+Source0: http://ftp.rpm.org/popt/releases/popt-1.x/%{name}-%{version}.tar.gz
+# Source0-md5: 450f2f636e6a3aa527de803d0ae76c5a
Patch0: %{name}-diet.patch
-Patch1: %{name}-alias-argc.patch
-URL: http://rpm5.org/
+Patch1: %{name}-pl.po-update.patch
+URL: https://rpm.org/
BuildRequires: autoconf >= 2.57
BuildRequires: automake >= 1.4
%{?with_dietlibc:BuildRequires: dietlibc-static >= 2:0.31-5}
BuildRequires: libtool >= 2:2.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-# don't require very fresh rpm.macros to build
-%define __gettextize gettextize --copy --force ; cp -f po/Makevars{.template,}
-
# for some reason known only to rpm there must be "\\|" not "\|" here
%define dietarch %(echo %{_target_cpu} | sed -e 's/i.86\\|pentium.\\|athlon/i386/;s/amd64/x86_64/;s/armv.*/arm/')
%define dietlibdir %{_prefix}/lib/dietlibc/lib-%{dietarch}
%{__gettextize}
%{__libtoolize}
%{__aclocal} -I m4
-%{__autoheader}
%{__autoconf}
+%{__autoheader}
%{__automake} -i
%if %{with dietlibc}
# libpopt.la dependency on configmake.h missing
%{__make} configmake.h
%{__make} libpopt.la
-mv -f .libs/libpopt.a diet-libpopt.a
+%{__mv} .libs/libpopt.a diet-libpopt.a
%{__make} clean
%endif
pkgconfigdir=%{_pkgconfigdir} \
DESTDIR=$RPM_BUILD_ROOT
-mv -f $RPM_BUILD_ROOT%{_libdir}/libpopt.so.* $RPM_BUILD_ROOT/%{_lib}
+%{__mv} $RPM_BUILD_ROOT%{_libdir}/libpopt.so.* $RPM_BUILD_ROOT/%{_lib}
ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libpopt.so.*.*.*) \
$RPM_BUILD_ROOT%{_libdir}/libpopt.so