From: Jan Rękorajski Date: Sat, 24 Oct 2020 13:50:57 +0000 (+0200) Subject: - drop lua hacks and look for default lua version X-Git-Tag: auto/th/rpm-4.16.1.2-1~46 X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm.git;a=commitdiff_plain;h=be07e71c8acd92e61d42ccb1c92200f92ed152c9;hp=56b257d37fdc0fc47edc11d3db8abd38239a0cef - drop lua hacks and look for default lua version - don't obsolete rpm-getdeps, this rpm does not support --specsrpm --- diff --git a/rpm-lua.patch b/rpm-lua.patch deleted file mode 100644 index 4e92e7b..0000000 --- a/rpm-lua.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- rpm-5.0.2/configure.ac~ 2008-02-19 20:09:59.000000000 +0200 -+++ rpm-5.0.2/configure.ac 2008-02-19 20:21:41.000000000 +0200 -@@ -1042,7 +1042,7 @@ - - AS_IF([test "$with_lua" != no],[ - PKG_CHECK_MODULES([LUA], -- [lua >= 5.1], -+ [lua5.3 >= 5.3], - [AC_DEFINE(WITH_LUA, 1, [Build with lua support?])], - [AC_MSG_ERROR([lua not present (--without-lua to disable)])]) - AC_SUBST(LUA_CFLAGS) diff --git a/rpm.spec b/rpm.spec index 1280ac6..d9dd581 100644 --- a/rpm.spec +++ b/rpm.spec @@ -55,7 +55,6 @@ Patch1: %{name}-popt-aliases.patch Patch2: %{name}-perl-macros.patch Patch3: %{name}-perl-req-perlfile.patch Patch4: %{name}-scripts-closefds.patch -Patch5: %{name}-lua.patch Patch6: %{name}-perl_req-INC_dirs.patch Patch7: %{name}-debuginfo.patch Patch8: %{name}-libtool-deps.patch @@ -90,7 +89,7 @@ BuildRequires: libselinux-devel >= 2.1.0 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros BuildRequires: libstdc++-devel BuildRequires: libtool >= 1:1.4.2-9 -BuildRequires: lua53-devel >= 5.3.5 +BuildRequires: lua-devel >= 5.1 BuildRequires: ossp-uuid-devel BuildRequires: patch >= 2.2 BuildRequires: popt-devel >= %{popt_ver} @@ -123,7 +122,6 @@ Recommends: rpm-plugin-prioreset Recommends: rpm-plugin-syslog Recommends: rpm-plugin-systemd-inhibit %endif -Obsoletes: rpm-getdeps Obsoletes: rpm-utils-perl Obsoletes: rpm-utils-static Conflicts: glibc < 2.2.92 @@ -541,7 +539,6 @@ Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze %patch2 -p1 %patch3 -p1 %patch4 -p1 -%patch5 -p1 %patch6 -p0 %patch7 -p1 %patch8 -p1 @@ -584,7 +581,6 @@ sed -i \ -e 's|@host_os@|%{_target_os}|' \ macros.in -CPPFLAGS="-I/usr/include/lua53 %{rpmcppflags}" %configure \ WITH_PERL_VERSION=no \ __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \