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>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -15,7 +15,8 @@
|
||||
# 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_nodots 51
|
||||
%else
|
||||
@ -27,43 +28,43 @@ Release: 0
|
||||
Summary: Lightweight Lua IDE
|
||||
License: MIT
|
||||
Group: Development/Tools/IDE
|
||||
URL: http://studio.zerobrane.com/
|
||||
URL: https://studio.zerobrane.com/
|
||||
Source: https://github.com/pkulchenko/ZeroBraneStudio/archive/%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE use system Lua
|
||||
Patch0: zbstudio.patch
|
||||
BuildRequires: cmake >= 2.8
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: lua%{lua_version_nodots}-devel
|
||||
BuildRequires: lua%{lua_version_nodots}-bit32
|
||||
BuildRequires: lua%{lua_version_nodots}-copas
|
||||
BuildRequires: lua%{lua_version_nodots}-devel
|
||||
BuildRequires: lua%{lua_version_nodots}-lpeg
|
||||
BuildRequires: lua%{lua_version_nodots}-luafilesystem
|
||||
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: cmake(x86-64) >= 2.8
|
||||
# Yes, we have to include this explicit Require
|
||||
Requires: libwxlua
|
||||
Requires: lua%{lua_version_nodots}-copas
|
||||
Requires: lua%{lua_version_nodots}-lpeg
|
||||
BuildRequires: lua%{lua_version_nodots}-bit32
|
||||
Requires: lua%{lua_version_nodots}-luafilesystem
|
||||
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}
|
||||
Recommends: luajit
|
||||
Provides: zbstudio
|
||||
Provides: zerobrane-studio
|
||||
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
|
||||
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
|
||||
cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DLUA_EXECUTABLE=%{_bindir}/lua%{lua_version}
|
||||
|
||||
make %{?_smp_mflags}
|
||||
%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DLUA_EXECUTABLE=%{_bindir}/lua%{lua_version}
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
( cd build
|
||||
%cmake_install
|
||||
)
|
||||
|
||||
cat >> %{buildroot}%{_datadir}/zbstudio/cfg/user.lua <<EOF
|
||||
path.lua = '%{_bindir}/lua%{lua_version}'
|
||||
@ -105,8 +107,8 @@ rm -rf %{buildroot}%{_datadir}/doc
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGELOG.md LICENSE README.md
|
||||
%license LICENSE
|
||||
%doc CHANGELOG.md README.md
|
||||
%{_bindir}/zbstudio
|
||||
%{_datadir}/zbstudio
|
||||
%{_datadir}/icons/hicolor/*/apps/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user