SHA256
1
0
forked from pool/lua-toluapp

Accepting request 1149138 from devel:languages:lua

- Use %patch -P N instead of deprecated %patchN.

OBS-URL: https://build.opensuse.org/request/show/1149138
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-toluapp?expand=0&rev=11
This commit is contained in:
Ana Guerrero 2024-02-22 19:59:49 +00:00 committed by Git OBS Bridge
commit f14f3725b6
2 changed files with 17 additions and 11 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 22 09:54:05 UTC 2024 - Michael Vetter <mvetter@suse.com>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Wed Jan 25 11:52:07 UTC 2023 - Michal Suchanek <msuchanek@suse.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package lua-toluapp
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -48,9 +48,9 @@ Patch4: toluapp-scons-py3.patch
Patch5: scons-0.98.1-Options-deprecated.patch
#PATCH-FIX-OPENSUSE mlin@suse.com - scons env.Copy() has been deprecated, use env.Clone() instead if needed
Patch6: toluapp-fix-deprecared-env-copy.patch
BuildRequires: lua-macros
BuildRequires: %{flavor}-devel
BuildRequires: gcc-c++
BuildRequires: lua-macros
BuildRequires: pkgconfig
BuildRequires: scons >= 2.3.0
%lua_provides
@ -100,14 +100,14 @@ This package provides development headers for tolua++.
%prep
%setup -q -n toluapp-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2 -p1
%patch -P 4 -p1
%patch -P 5 -p1
%patch -P 6 -p1
%if "%{flavor}" != "lua51"
%patch3 -p1
%patch -P 3 -p1
%endif
sed -i "s/@SUFFIX@/%{lua_version}/" SConstruct
@ -149,9 +149,9 @@ libdir=%{_libdir}
sharedlibdir=%{_libdir}
includedir=%{_includedir}
Name: tolua++
Name: tolua++
Description: C/C++ with Lua Integration Tool
Version: %{version}
Version: %{version}
Libs: -ltolua++-%{lua_version}
Cflags: -I%{_includedir}
@ -167,6 +167,7 @@ ln -sf %{_sysconfdir}/alternatives/tolua++ %{buildroot}%{_bindir}/tolua++
%post -n libtolua++-%{lua_suffix}-1 -p /sbin/ldconfig
%postun -n libtolua++-%{lua_suffix}-1 -p /sbin/ldconfig
%post -n toluapp-%{lua_version}
/sbin/ldconfig
%{_sbindir}/update-alternatives --install %{_bindir}/tolua++ tolua++ %{_bindir}/toluapp-%{lua_version} %{lua_value}