forked from pool/lua-editorconfig-core-lua
osc copypac from project:devel:languages:lua package:lua-editorconfig-core revision:4
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-editorconfig-core-lua?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>lua53</package>
|
||||
</multibuild>
|
3
editorconfig-core-lua-0.3.0.tar.gz
Normal file
3
editorconfig-core-lua-0.3.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2dfb764a89e339d9c9140de241ea6b9162c295e78bc3e946c5ce6f40784a74c4
|
||||
size 5607
|
4
lua-editorconfig-core-lua.changes
Normal file
4
lua-editorconfig-core-lua.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 26 11:44:08 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Initial commit. For lua53 only (requires >= 5.2)
|
77
lua-editorconfig-core-lua.spec
Normal file
77
lua-editorconfig-core-lua.spec
Normal file
@@ -0,0 +1,77 @@
|
||||
#
|
||||
# spec file for package lua-editorconfig-core
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define flavor @BUILD_FLAVOR@
|
||||
%define _name lgi
|
||||
%define mod_name editorconfig-core-lua
|
||||
Version: 0.3.0
|
||||
Release: 0
|
||||
Summary: EditorConfig Core support for the Lua language
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Libraries/Other
|
||||
URL: https://github.com/editorconfig/editorconfig-core-lua
|
||||
Source: https://github.com/editorconfig/%{mod_name}/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
|
||||
BuildRequires: %{flavor}-Penlight
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildRequires: %{flavor}-luafilesystem
|
||||
BuildRequires: cmake
|
||||
BuildRequires: libeditorconfig-devel
|
||||
Requires: %{flavor}
|
||||
%if "%{flavor}" == "lua53"
|
||||
Provides: lua-%{mod_name} = %{version}
|
||||
Obsoletes: lua-%{mod_name} < %{version}
|
||||
%endif
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-%{mod_name}
|
||||
ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-%{mod_name}
|
||||
Provides: %{flavor}-LPeg = %{version}
|
||||
Obsoletes: %{flavor}-LPeg < %{version}
|
||||
%endif
|
||||
|
||||
%description
|
||||
EditorConfig makes it easy to maintain the correct coding
|
||||
style when switching between different text editors
|
||||
and betweendifferent projects. The EditorConfig project
|
||||
maintains a file format and plugins for various text editors
|
||||
which allow this file format to be read and used by those
|
||||
editors. EditorConfig Lua Core provides the same functionality
|
||||
as the Editorconfig C Core library.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
%cmake -DECL_LIBDIR:PATH=%{lua_archdir}
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%check
|
||||
cd build
|
||||
export LUA_CPATH="./?.so;%{lua_archdir}/?.so;${LUA_CPATH}"
|
||||
lua%{lua_version} ../editorconfig.lua -v
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%dir %{lua_archdir}
|
||||
%{lua_archdir}/*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user