Hello community,

here is the log from the commit of package lua-moonscript for openSUSE:Factory 
checked in at 2020-04-08 19:55:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-moonscript (Old)
 and      /work/SRC/openSUSE:Factory/.lua-moonscript.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-moonscript"

Wed Apr  8 19:55:08 2020 rev:1 rq:792024 version:0.5.0

Changes:
--------
New Changes file:

--- /dev/null   2020-04-01 01:12:57.297512941 +0200
+++ /work/SRC/openSUSE:Factory/.lua-moonscript.new.3248/lua-moonscript.changes  
2020-04-08 19:55:10.309057127 +0200
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------
+Sat Nov  2 19:51:09 UTC 2019 - Matej Cepl <mc...@suse.com>
+
+- Initial effort to package moonscript 0.5.0

New:
----
  _multibuild
  lua-moonscript.changes
  lua-moonscript.spec
  moonscript-0.5.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lua-moonscript.spec ++++++
#
# spec file for package lua-moonscript
#
# 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@
%if "%{flavor}" == "test"
%define flavor lua51
%bcond_without test
%else
%bcond_with test
%endif
%define mod_name moonscript
%define upversion 0.5.0
Version:        0.5.0
Release:        0
Summary:        A programmer friendly language that compiles to Lua
License:        MIT
Group:          Development/Libraries/Other
Url:            http://moonscript.org/
Source:         
https://github.com/leafo/moonscript/archive/v%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz
BuildRequires:  %{flavor}-devel
BuildRequires:  %{flavor}-lpeg >= 0.10
BuildRequires:  %{flavor}-argparse >= 0.5
BuildRequires:  %{flavor}-luafilesystem >= 1.5
BuildRequires:  %{flavor}-loadkit
BuildRequires:  %{flavor}-alt-getopt
# optionally BuildRequires:  %%{flavor}-lnotify
BuildArch:      noarch
Requires:       %{flavor}
Requires:       %{flavor}-loadkit
Requires:       %{flavor}-alt-getopt
Requires:       %{flavor}-luafilesystem
Requires:       %{flavor}-lpeg
Requires:       %{flavor}-argparse
%if "%{flavor}" == "lua53"
Provides:       lua-moonscript = %{version}
Obsoletes:      lua-moonscript < %{version}
%endif
%if "%{flavor}" == ""
Name:           lua-moonscript
ExclusiveArch:  do_not_build
%else
%if %{with test}
Name:           %{flavor}-moonscript-test
BuildRequires:  %{flavor}-busted
%else
Name:           %{flavor}-moonscript
%endif
%endif
Requires(post):   update-alternatives
Requires(postun):  update-alternatives

%description
A programmer friendly language that compiles to Lua.

%prep
%setup -q -n %{mod_name}-%{upversion}
sed -i 's|^#!/usr/bin/env lua|#!/usr/bin/lua%{lua_version}|' bin/moon{,c}

%build
/bin/true

%install
%if ! %{with test}
install -m 0755 -p -d %{buildroot}%{lua_noarchdir}
cp -r -p moonscript %{buildroot}%{lua_noarchdir}
cp -r -p moon %{buildroot}%{lua_noarchdir}
install -D -m 0755 -p -t %{buildroot}%{_bindir} bin/moon{,c}

# Alternatives
# create a dummy target for /etc/alternatives/vim
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
mv %{buildroot}%{_bindir}/moon{,-%{lua_version}}
mv %{buildroot}%{_bindir}/moonc{,-%{lua_version}}
ln -s -f %{_sysconfdir}/alternatives/moonc %{buildroot}%{_bindir}/moonc
ln -s -f %{_sysconfdir}/alternatives/moon %{buildroot}%{_bindir}/moon
%endif

%if ! %{with test}
%post
update-alternatives --force \
    --install %{_bindir}/moon moon %{_bindir}/moon-%{lua_version} 15 \
    --slave %{_bindir}/moonc moonc %{_bindir}/moonc-%{lua_version}

%postun
if [ ! -f %{_bindir}/moon-%{lua_version} ] ; then
   update-alternatives --remove moon %{_bindir}/moon-%{lua_version}
fi
%endif

%check
%if %{with test}
busted
%endif

%if ! %{with test}
%files
%doc CHANGELOG.md README.md docs
%{_bindir}/moon
%{_bindir}/moon-%{lua_version}
%{_bindir}/moonc
%{_bindir}/moonc-%{lua_version}
%{lua_noarchdir}/moon*
%ghost %_sysconfdir/alternatives/moon
%ghost %_sysconfdir/alternatives/moonc
%endif

%changelog
++++++ _multibuild ++++++
<multibuild>
<package>lua51</package>
<package>lua53</package>
<package>test</package>
</multibuild>

Reply via email to