Compare commits
3 Commits
factory
...
bundle_tes
| Author | SHA256 | Date | |
|---|---|---|---|
|
5d6c7154dc
|
|||
|
4ebaa157f1
|
|||
|
92c4c8f98d
|
3
.gitattributes
vendored
3
.gitattributes
vendored
@@ -1,4 +1,4 @@
|
|||||||
## Default LFS
|
*.changes merge=merge-changes
|
||||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
*.png filter=lfs diff=lfs merge=lfs -text
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|||||||
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 19 16:42:08 UTC 2021 - Victor Zhestkov <victor.zhestkov@suse.com>
|
||||||
|
|
||||||
|
- Using right path for update-alternatives for Debian and Ubuntu
|
||||||
|
- Requirement alignments for Debian and Ubuntu
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 19 11:38:37 UTC 2021 - Victor Zhestkov <victor.zhestkov@suse.com>
|
||||||
|
|
||||||
|
- Add missing libncurses5 devel build requires for Ubuntu and Debian
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Aug 2 08:12:52 UTC 2019 - Martin Liška <mliska@suse.cz>
|
Fri Aug 2 08:12:52 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
|||||||
40
lua51.spec
40
lua51.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package lua51
|
# spec file for package lua51
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,26 +18,41 @@
|
|||||||
|
|
||||||
%define major_version 5.1
|
%define major_version 5.1
|
||||||
%define libname liblua5_1-5
|
%define libname liblua5_1-5
|
||||||
|
%if "%{_vendor}" == "debbuild"
|
||||||
|
%define _upd_alt_dir %{_bindir}
|
||||||
|
%else
|
||||||
|
%define _upd_alt_dir %{_sbindir}
|
||||||
|
%endif
|
||||||
Name: lua51
|
Name: lua51
|
||||||
Version: 5.1.5
|
Version: 5.1.5
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Small Embeddable Language with Procedural Syntax
|
Summary: Small Embeddable Language with Procedural Syntax
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
Url: http://www.lua.org
|
URL: http://www.lua.org
|
||||||
Source: http://www.lua.org/ftp/lua-%{version}.tar.gz
|
Source: http://www.lua.org/ftp/lua-%{version}.tar.gz
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
# PATCH-FIX-SUSE tweak the buildsystem to produce what is needed for SUSE
|
# PATCH-FIX-SUSE tweak the buildsystem to produce what is needed for SUSE
|
||||||
Patch0: lua-build-system.patch
|
Patch0: lua-build-system.patch
|
||||||
|
%if "%_vendor" == "debbuild"
|
||||||
|
BuildRequires: debbuild
|
||||||
|
%endif
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: lua-macros
|
BuildRequires: lua-macros
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
|
%if "%{_vendor}" == "debbuild"
|
||||||
|
BuildRequires: libncurses5-dev
|
||||||
|
%endif
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
Provides: lua = %{version}
|
Provides: lua = %{version}
|
||||||
Provides: Lua(API) = %{major_version}
|
Provides: Lua(API) = %{major_version}
|
||||||
|
|
||||||
|
%if "%_vendor" != "debbuild"
|
||||||
|
ExclusiveArch: do_not_build
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Lua is a programming language originally designed for extending
|
Lua is a programming language originally designed for extending
|
||||||
applications, but is also frequently used as a general-purpose,
|
applications, but is also frequently used as a general-purpose,
|
||||||
@@ -53,11 +68,16 @@ of C functions, written in ANSI C.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for lua
|
Summary: Development files for lua
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
%if "%{_vendor}" == "debbuild"
|
||||||
|
Requires: %{libname} = %{version}-%{release}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%else
|
||||||
Requires: %{libname} = %{version}
|
Requires: %{libname} = %{version}
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
%endif
|
||||||
Requires: lua-macros
|
Requires: lua-macros
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
Provides: lua-devel = %{version}
|
Provides: lua-devel = %{version}
|
||||||
Provides: Lua(devel) = %{major_version}
|
Provides: Lua(devel) = %{major_version}
|
||||||
Provides: pkgconfig(lua) = %{version}
|
Provides: pkgconfig(lua) = %{version}
|
||||||
@@ -143,9 +163,9 @@ includedir=%{_prefix}/include/lua%{major_version}
|
|||||||
INSTALL_LMOD=%{_datadir}/lua/%{major_version}
|
INSTALL_LMOD=%{_datadir}/lua/%{major_version}
|
||||||
INSTALL_CMOD=%{_libdir}/lua/%{major_version}
|
INSTALL_CMOD=%{_libdir}/lua/%{major_version}
|
||||||
|
|
||||||
Name: Lua %{major_version}
|
Name: Lua %{major_version}
|
||||||
Description: An Extensible Extension Language
|
Description: An Extensible Extension Language
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Libs: -llua%{major_version} -lm
|
Libs: -llua%{major_version} -lm
|
||||||
Cflags: -I\${includedir}
|
Cflags: -I\${includedir}
|
||||||
EOF
|
EOF
|
||||||
@@ -178,7 +198,7 @@ LD_LIBRARY_PATH=`pwd` ./lua%{major_version} -e 'print(0)' > /dev/null
|
|||||||
%postun -n %{libname} -p /sbin/ldconfig
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{_sbindir}/update-alternatives --install \
|
%{_upd_alt_dir}/update-alternatives --install \
|
||||||
%{_bindir}/lua lua %{_bindir}/lua%{major_version} 51 \
|
%{_bindir}/lua lua %{_bindir}/lua%{major_version} 51 \
|
||||||
--slave %{_bindir}/luac luac %{_bindir}/luac%{major_version} \
|
--slave %{_bindir}/luac luac %{_bindir}/luac%{major_version} \
|
||||||
--slave %{_mandir}/man1/lua.1%{ext_man} lua.1%{ext_man} %{_mandir}/man1/lua%{major_version}.1%{ext_man} \
|
--slave %{_mandir}/man1/lua.1%{ext_man} lua.1%{ext_man} %{_mandir}/man1/lua%{major_version}.1%{ext_man} \
|
||||||
@@ -186,17 +206,17 @@ LD_LIBRARY_PATH=`pwd` ./lua%{major_version} -e 'print(0)' > /dev/null
|
|||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ "$1" = 0 ] ; then
|
if [ "$1" = 0 ] ; then
|
||||||
%{_sbindir}/update-alternatives --remove lua %{_bindir}/lua%{major_version}
|
%{_upd_alt_dir}/update-alternatives --remove lua %{_bindir}/lua%{major_version}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
%{_sbindir}/update-alternatives --install \
|
%{_upd_alt_dir}/update-alternatives --install \
|
||||||
%{_libdir}/liblua.so liblua.so %{_libdir}/liblua%{major_version}.so 51 \
|
%{_libdir}/liblua.so liblua.so %{_libdir}/liblua%{major_version}.so 51 \
|
||||||
--slave %{_libdir}/pkgconfig/lua.pc lua.pc %{_libdir}/pkgconfig/lua%{major_version}.pc
|
--slave %{_libdir}/pkgconfig/lua.pc lua.pc %{_libdir}/pkgconfig/lua%{major_version}.pc
|
||||||
|
|
||||||
%postun devel
|
%postun devel
|
||||||
if [ "$1" = 0 ] ; then
|
if [ "$1" = 0 ] ; then
|
||||||
%{_sbindir}/update-alternatives --remove liblua.so %{_libdir}/liblua%{major_version}.so
|
%{_upd_alt_dir}/update-alternatives --remove liblua.so %{_libdir}/liblua%{major_version}.so
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
|||||||
Reference in New Issue
Block a user