forked from pool/zerobranestudio
- Clean up SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/zerobranestudio?expand=0&rev=21
This commit is contained in:
parent
838a2c0ad2
commit
f77bee1639
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Tue Feb 20 12:08:04 UTC 2024 - Dominique Leuenberger <dimstar@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,43 +28,43 @@ 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
|
||||||
BuildRequires: cmake >= 2.8
|
|
||||||
BuildRequires: desktop-file-utils
|
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
|
||||||
|
BuildRequires: cmake(x86-64) >= 2.8
|
||||||
|
# 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,
|
||||||
@ -80,13 +81,14 @@ 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}'
|
||||||
@ -105,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