Accepting request 959924 from home:iznogood:branches:devel:languages:lua

- Drop the lua_docdir define, package docs in the standard
  location. Instead just silently drop packaging the README with
  the path that does not makes sense for a rpm package, but for a
  source tarball install. Simpler solution to boo#1186233.

OBS-URL: https://build.opensuse.org/request/show/959924
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua54?expand=0&rev=51
This commit is contained in:
Callum Farmer 2022-03-09 09:12:20 +00:00 committed by Git OBS Bridge
parent bb92095a7c
commit a04ac87775
2 changed files with 10 additions and 10 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Mar 7 10:19:17 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Drop the lua_docdir define, package docs in the standard
location. Instead just silently drop packaging the README with
the path that does not makes sense for a rpm package, but for a
source tarball install. Simpler solution to boo#1186233.
-------------------------------------------------------------------
Wed Jan 26 19:15:13 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -24,7 +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.4
Release: 0
@ -204,11 +204,6 @@ 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
rm %{buildroot}%{lua_docdir}/doc/*.1
%else
%check
LD_LIBRARY_PATH=%{_libdir} %{_bindir}/lua%{major_version} all.lua
@ -241,8 +236,6 @@ if [ "$1" = 0 ] ; then
fi
%files
%dir %{lua_docdir}
%doc %{lua_docdir}/README
%dir %{_libdir}/lua
%dir %{_libdir}/lua/%{major_version}
%dir %{_datadir}/lua
@ -281,8 +274,7 @@ fi
%ghost %{_sysconfdir}/alternatives/lua.pc
%files doc
%dir %{lua_docdir}/doc
%doc %{lua_docdir}/doc/*
%doc doc/*
%endif
%changelog