Accepting request 1148346 from devel:languages:lua
- Clean up SPEC file. - Use %autosetup macro. Allows to eliminate the usage of deprecated %patchN. OBS-URL: https://build.opensuse.org/request/show/1148346 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zerobranestudio?expand=0&rev=7
This commit is contained in:
commit
a83920a63b
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 20 20:48:16 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Clean up SPEC file.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 20 12:08:04 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Use %autosetup macro. Allows to eliminate the usage of deprecated
|
||||||
|
%patchN.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jul 11 16:14:16 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
Sun Jul 11 16:14:16 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package zerobranestudio
|
# spec file for package zerobranestudio
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -15,7 +15,8 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
%if 0%{suse_version} < 1550
|
|
||||||
|
%if 0%{?suse_version} < 1550
|
||||||
%define lua_version 5.1
|
%define lua_version 5.1
|
||||||
%define lua_version_nodots 51
|
%define lua_version_nodots 51
|
||||||
%else
|
%else
|
||||||
@ -27,7 +28,7 @@ Release: 0
|
|||||||
Summary: Lightweight Lua IDE
|
Summary: Lightweight Lua IDE
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Tools/IDE
|
Group: Development/Tools/IDE
|
||||||
URL: http://studio.zerobrane.com/
|
URL: https://studio.zerobrane.com/
|
||||||
Source: https://github.com/pkulchenko/ZeroBraneStudio/archive/%{version}.tar.gz
|
Source: https://github.com/pkulchenko/ZeroBraneStudio/archive/%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE use system Lua
|
# PATCH-FIX-OPENSUSE use system Lua
|
||||||
Patch0: zbstudio.patch
|
Patch0: zbstudio.patch
|
||||||
@ -36,34 +37,34 @@ BuildRequires: desktop-file-utils
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: hicolor-icon-theme
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: lua%{lua_version_nodots}-devel
|
|
||||||
BuildRequires: lua%{lua_version_nodots}-bit32
|
BuildRequires: lua%{lua_version_nodots}-bit32
|
||||||
BuildRequires: lua%{lua_version_nodots}-copas
|
BuildRequires: lua%{lua_version_nodots}-copas
|
||||||
|
BuildRequires: lua%{lua_version_nodots}-devel
|
||||||
BuildRequires: lua%{lua_version_nodots}-lpeg
|
BuildRequires: lua%{lua_version_nodots}-lpeg
|
||||||
BuildRequires: lua%{lua_version_nodots}-luafilesystem
|
BuildRequires: lua%{lua_version_nodots}-luafilesystem
|
||||||
BuildRequires: lua%{lua_version_nodots}-luasec
|
BuildRequires: lua%{lua_version_nodots}-luasec
|
||||||
%if 0%{suse_version} < 1550
|
|
||||||
BuildRequires: lua%{lua_version_nodots}-luasocket
|
|
||||||
%else
|
|
||||||
BuildRequires: luasocket
|
|
||||||
%endif
|
|
||||||
BuildRequires: wxlua-devel
|
BuildRequires: wxlua-devel
|
||||||
|
# Yes, we have to include this explicit Require
|
||||||
Requires: libwxlua
|
Requires: libwxlua
|
||||||
Requires: lua%{lua_version_nodots}-copas
|
Requires: lua%{lua_version_nodots}-copas
|
||||||
Requires: lua%{lua_version_nodots}-lpeg
|
Requires: lua%{lua_version_nodots}-lpeg
|
||||||
BuildRequires: lua%{lua_version_nodots}-bit32
|
|
||||||
Requires: lua%{lua_version_nodots}-luafilesystem
|
Requires: lua%{lua_version_nodots}-luafilesystem
|
||||||
Requires: lua%{lua_version_nodots}-luasec
|
Requires: lua%{lua_version_nodots}-luasec
|
||||||
%if 0%{suse_version} < 1550
|
|
||||||
Requires: lua%{lua_version_nodots}-luasocket
|
|
||||||
%else
|
|
||||||
Requires: luasocket
|
|
||||||
%endif
|
|
||||||
Requires: Lua(API) = %{lua_version}
|
Requires: Lua(API) = %{lua_version}
|
||||||
Recommends: luajit
|
Recommends: luajit
|
||||||
Provides: zbstudio
|
Provides: zbstudio
|
||||||
Provides: zerobrane-studio
|
Provides: zerobrane-studio
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if 0%{?suse_version} < 1550
|
||||||
|
BuildRequires: lua%{lua_version_nodots}-luasocket
|
||||||
|
%else
|
||||||
|
BuildRequires: luasocket
|
||||||
|
%endif
|
||||||
|
%if 0%{?suse_version} < 1550
|
||||||
|
Requires: lua%{lua_version_nodots}-luasocket
|
||||||
|
%else
|
||||||
|
Requires: luasocket
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
ZeroBrane Studio is a lightweight cross-platform Lua IDE with code completion,
|
ZeroBrane Studio is a lightweight cross-platform Lua IDE with code completion,
|
||||||
@ -73,21 +74,21 @@ Marmalade Quick, Cocos2d-x, GSL-shell, Adobe Lightroom, OpenResty/Nginx and
|
|||||||
others). It originated from the Estrela Editor.
|
others). It originated from the Estrela Editor.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n ZeroBraneStudio-%{version}
|
%autosetup -p1 -n ZeroBraneStudio-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
# remove pre-built binaries
|
# remove pre-built binaries
|
||||||
rm -rf bin zbstudio/ZeroBraneStudio.app zbstudio.exe
|
rm -rf bin zbstudio/ZeroBraneStudio.app zbstudio.exe
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DLUA_EXECUTABLE=%{_bindir}/lua%{lua_version}
|
-DLUA_EXECUTABLE=%{_bindir}/lua%{lua_version}
|
||||||
|
%cmake_build
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
( cd build
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
)
|
||||||
|
|
||||||
cat >> %{buildroot}%{_datadir}/zbstudio/cfg/user.lua <<EOF
|
cat >> %{buildroot}%{_datadir}/zbstudio/cfg/user.lua <<EOF
|
||||||
path.lua = '%{_bindir}/lua%{lua_version}'
|
path.lua = '%{_bindir}/lua%{lua_version}'
|
||||||
@ -106,8 +107,8 @@ rm -rf %{buildroot}%{_datadir}/doc
|
|||||||
%fdupes %{buildroot}%{_prefix}
|
%fdupes %{buildroot}%{_prefix}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%license LICENSE
|
||||||
%doc CHANGELOG.md LICENSE README.md
|
%doc CHANGELOG.md README.md
|
||||||
%{_bindir}/zbstudio
|
%{_bindir}/zbstudio
|
||||||
%{_datadir}/zbstudio
|
%{_datadir}/zbstudio
|
||||||
%{_datadir}/icons/hicolor/*/apps/*
|
%{_datadir}/icons/hicolor/*/apps/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user