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:
commit
f14f3725b6
@ -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>
|
Wed Jan 25 11:52:07 UTC 2023 - Michal Suchanek <msuchanek@suse.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package lua-toluapp
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
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
|
#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
|
Patch6: toluapp-fix-deprecared-env-copy.patch
|
||||||
BuildRequires: lua-macros
|
|
||||||
BuildRequires: %{flavor}-devel
|
BuildRequires: %{flavor}-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: lua-macros
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: scons >= 2.3.0
|
BuildRequires: scons >= 2.3.0
|
||||||
%lua_provides
|
%lua_provides
|
||||||
@ -100,14 +100,14 @@ This package provides development headers for tolua++.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n toluapp-%{version}
|
%setup -q -n toluapp-%{version}
|
||||||
%patch0 -p1
|
%patch -P 0 -p1
|
||||||
%patch1 -p1
|
%patch -P 1 -p1
|
||||||
%patch2 -p1
|
%patch -P 2 -p1
|
||||||
%patch4 -p1
|
%patch -P 4 -p1
|
||||||
%patch5 -p1
|
%patch -P 5 -p1
|
||||||
%patch6 -p1
|
%patch -P 6 -p1
|
||||||
%if "%{flavor}" != "lua51"
|
%if "%{flavor}" != "lua51"
|
||||||
%patch3 -p1
|
%patch -P 3 -p1
|
||||||
%endif
|
%endif
|
||||||
sed -i "s/@SUFFIX@/%{lua_version}/" SConstruct
|
sed -i "s/@SUFFIX@/%{lua_version}/" SConstruct
|
||||||
|
|
||||||
@ -167,6 +167,7 @@ ln -sf %{_sysconfdir}/alternatives/tolua++ %{buildroot}%{_bindir}/tolua++
|
|||||||
|
|
||||||
%post -n libtolua++-%{lua_suffix}-1 -p /sbin/ldconfig
|
%post -n libtolua++-%{lua_suffix}-1 -p /sbin/ldconfig
|
||||||
%postun -n libtolua++-%{lua_suffix}-1 -p /sbin/ldconfig
|
%postun -n libtolua++-%{lua_suffix}-1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n toluapp-%{lua_version}
|
%post -n toluapp-%{lua_version}
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%{_sbindir}/update-alternatives --install %{_bindir}/tolua++ tolua++ %{_bindir}/toluapp-%{lua_version} %{lua_value}
|
%{_sbindir}/update-alternatives --install %{_bindir}/tolua++ tolua++ %{_bindir}/toluapp-%{lua_version} %{lua_value}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user