forked from pool/lua-say
Accepting request 743620 from home:mcepl:branches:devel:languages:lua
- Initial import of say luarock version 1.3-1 OBS-URL: https://build.opensuse.org/request/show/743620 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-say?expand=0&rev=2
This commit is contained in:
60
lua-say.spec
Normal file
60
lua-say.spec
Normal file
@@ -0,0 +1,60 @@
|
||||
#
|
||||
# spec file for package lua-say
|
||||
#
|
||||
# Copyright (c) 2017 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/
|
||||
#
|
||||
|
||||
|
||||
%define flavor @BUILD_FLAVOR@
|
||||
%define mod_name say
|
||||
%define upversion 1.3-1
|
||||
Version: 1.31
|
||||
Release: 0
|
||||
Summary: Lua string hashing library, useful for internationalization
|
||||
License: MIT
|
||||
Group: Development/Libraries/Other
|
||||
Url: https://github.com/Olivine-Labs/say
|
||||
Source: https://github.com/Olivine-Labs/say/archive/v%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildArch: noarch
|
||||
Requires: %{flavor}
|
||||
%if "%{flavor}" == "lua53"
|
||||
Provides: lua-say = %{version}
|
||||
Obsoletes: lua-say < %{version}
|
||||
%endif
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-say
|
||||
ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-say
|
||||
%endif
|
||||
|
||||
%description
|
||||
Useful for internationalization.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{upversion}
|
||||
|
||||
%build
|
||||
/bin/true
|
||||
|
||||
%install
|
||||
install -v -D -m 0644 -p -t %{buildroot}%{lua_noarchdir}/say src/init.lua
|
||||
|
||||
|
||||
%files
|
||||
%dir %{lua_noarchdir}/say
|
||||
%{lua_noarchdir}/say*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user