From 24b7be466619af36bbc0aeff3dd72aab0bbfb57da3f4361acce05931e448994a Mon Sep 17 00:00:00 2001 From: Marguerite Su Date: Sun, 24 Jul 2016 07:47:12 +0000 Subject: [PATCH] Accepting request 412756 from home:Mailaender:branches:devel:languages:lua a Lua IDE with code completion OBS-URL: https://build.opensuse.org/request/show/412756 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/zerobranestudio?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + 1.30.tar.gz | 3 ++ zbstudio.patch | 10 +++++ zerobranestudio.changes | 4 ++ zerobranestudio.spec | 98 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 139 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 1.30.tar.gz create mode 100644 zbstudio.patch create mode 100644 zerobranestudio.changes create mode 100644 zerobranestudio.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/1.30.tar.gz b/1.30.tar.gz new file mode 100644 index 0000000..95869ac --- /dev/null +++ b/1.30.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a990608c877ba93e267395d3e1e56cb845195c80a5ab194e5b5e196e8911dfe4 +size 20596652 diff --git a/zbstudio.patch b/zbstudio.patch new file mode 100644 index 0000000..b31132f --- /dev/null +++ b/zbstudio.patch @@ -0,0 +1,10 @@ +diff --git a/zbstudio/zbstudio.in b/zbstudio/zbstudio.in +index 7d22f1f..225e655 100644 +--- a/zbstudio/zbstudio.in ++++ b/zbstudio/zbstudio.in +@@ -1,4 +1,4 @@ + #!/bin/bash + + if [[ "$(uname -m)" == "x86_64" ]]; then ARCH="x64"; else ARCH="x86"; fi +-(cd "@IDE_DATADIR@"; bin/linux/$ARCH/lua src/main.lua zbstudio "$@") & ++(cd "@IDE_DATADIR@"; @LUA_EXECUTABLE@ src/main.lua zbstudio "$@") & diff --git a/zerobranestudio.changes b/zerobranestudio.changes new file mode 100644 index 0000000..360508d --- /dev/null +++ b/zerobranestudio.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Jul 21 07:22:29 UTC 2016 - mailaender@opensuse.org + +- initial packaging of version 1.30 diff --git a/zerobranestudio.spec b/zerobranestudio.spec new file mode 100644 index 0000000..13a2fc7 --- /dev/null +++ b/zerobranestudio.spec @@ -0,0 +1,98 @@ +# +# spec file for package ZeroBraneStudio +# +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: zerobranestudio +Version: 1.30 +Release: 0 +Summary: Lightweight Lua IDE +License: MIT +Group: Development/Tools/IDE +Url: http://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: gcc-c++ +BuildRequires: hicolor-icon-theme +BuildRequires: fdupes +BuildRequires: wxlua-devel +BuildRequires: lua51 +BuildRequires: lua51-luasocket +Requires: libwxlua +Requires: lua51 +Requires: lua51-luasocket +Requires: lua51-BitOp +Requires: lua52 +Provides: zerobrane-studio +BuildArch: noarch + +%description +ZeroBrane Studio is a lightweight cross-platform Lua IDE with code completion, +syntax highlighting, remote debugger, code analyzer, live coding, and debugging +support for several Lua engines (LuaJIT, Love 2D, Moai, Gideros, Corona, +Marmalade Quick, Cocos2d-x, GSL-shell, Adobe Lightroom, OpenResty/Nginx and +others). It originated from the Estrela Editor. + +%prep +%setup -q -n ZeroBraneStudio-%{version} +%patch0 -p1 + +# remove pre-built binaries +rm -rf bin zbstudio/ZeroBraneStudio.app + +%build +cd build +cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DLUA_EXECUTABLE=%{_bindir}/lua5.1 + +make + +%install +%cmake_install + +cat >> %{buildroot}%{_datadir}/zbstudio/cfg/user.lua <