forked from pool/lua54
Accepting request 894973 from home:gmbr3:Lua
- Fix doc location (boo#1186233) OBS-URL: https://build.opensuse.org/request/show/894973 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua54?expand=0&rev=34
This commit is contained in:
parent
26b8c19a09
commit
0d221d70ae
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat May 22 12:58:16 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
||||
- Fix doc location (boo#1186233)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 10 08:54:04 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
||||
|
12
lua54.spec
12
lua54.spec
@ -24,6 +24,7 @@
|
||||
%endif
|
||||
%define major_version 5.4
|
||||
%define libname liblua5_4-5
|
||||
%define lua_docdir %{_datadir}/doc/lua%{major_version}
|
||||
Name: lua54%{name_ext}
|
||||
Version: 5.4.3
|
||||
Release: 0
|
||||
@ -121,6 +122,7 @@ of C functions, written in ANSI C.
|
||||
Summary: Documentation for Lua, a small embeddable language
|
||||
Group: Documentation/HTML
|
||||
BuildArch: noarch
|
||||
Supplements: (lua54 and patterns-base-documentation)
|
||||
|
||||
%description doc
|
||||
Lua is a programming language originally designed for extending
|
||||
@ -207,6 +209,10 @@ touch %{buildroot}%{_sysconfdir}/alternatives/liblua.so
|
||||
ln -sf %{_sysconfdir}/alternatives/liblua.so %{buildroot}%{_libdir}/liblua.so
|
||||
touch %{buildroot}%{_sysconfdir}/alternatives/lua.pc
|
||||
ln -sf %{_sysconfdir}/alternatives/lua.pc %{buildroot}%{_libdir}/pkgconfig/lua.pc
|
||||
# doc
|
||||
mkdir -p %{buildroot}%{lua_docdir}/doc
|
||||
install -Dm644 README %{buildroot}%{lua_docdir}
|
||||
install -Dm644 doc/* %{buildroot}%{lua_docdir}/doc
|
||||
%else
|
||||
%check
|
||||
LD_LIBRARY_PATH=%{_libdir} %{_bindir}/lua%{major_version} all.lua
|
||||
@ -239,7 +245,8 @@ if [ "$1" = 0 ] ; then
|
||||
fi
|
||||
|
||||
%files
|
||||
%doc README
|
||||
%dir %{lua_docdir}
|
||||
%doc %{lua_docdir}/README
|
||||
%dir %{_libdir}/lua
|
||||
%dir %{_libdir}/lua/%{major_version}
|
||||
%dir %{_datadir}/lua
|
||||
@ -278,7 +285,8 @@ fi
|
||||
%ghost %{_sysconfdir}/alternatives/lua.pc
|
||||
|
||||
%files doc
|
||||
%doc doc/*
|
||||
%dir %{lua_docdir}/doc
|
||||
%doc %{lua_docdir}/doc/*
|
||||
|
||||
%endif
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user