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:
parent
bb92095a7c
commit
a04ac87775
@ -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>
|
Wed Jan 26 19:15:13 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
|
||||||
|
|
||||||
|
12
lua54.spec
12
lua54.spec
@ -24,7 +24,7 @@
|
|||||||
%endif
|
%endif
|
||||||
%define major_version 5.4
|
%define major_version 5.4
|
||||||
%define libname liblua5_4-5
|
%define libname liblua5_4-5
|
||||||
%define lua_docdir %{_datadir}/doc/lua%{major_version}
|
|
||||||
Name: lua54%{name_ext}
|
Name: lua54%{name_ext}
|
||||||
Version: 5.4.4
|
Version: 5.4.4
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -204,11 +204,6 @@ touch %{buildroot}%{_sysconfdir}/alternatives/liblua.so
|
|||||||
ln -sf %{_sysconfdir}/alternatives/liblua.so %{buildroot}%{_libdir}/liblua.so
|
ln -sf %{_sysconfdir}/alternatives/liblua.so %{buildroot}%{_libdir}/liblua.so
|
||||||
touch %{buildroot}%{_sysconfdir}/alternatives/lua.pc
|
touch %{buildroot}%{_sysconfdir}/alternatives/lua.pc
|
||||||
ln -sf %{_sysconfdir}/alternatives/lua.pc %{buildroot}%{_libdir}/pkgconfig/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
|
%else
|
||||||
%check
|
%check
|
||||||
LD_LIBRARY_PATH=%{_libdir} %{_bindir}/lua%{major_version} all.lua
|
LD_LIBRARY_PATH=%{_libdir} %{_bindir}/lua%{major_version} all.lua
|
||||||
@ -241,8 +236,6 @@ if [ "$1" = 0 ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{lua_docdir}
|
|
||||||
%doc %{lua_docdir}/README
|
|
||||||
%dir %{_libdir}/lua
|
%dir %{_libdir}/lua
|
||||||
%dir %{_libdir}/lua/%{major_version}
|
%dir %{_libdir}/lua/%{major_version}
|
||||||
%dir %{_datadir}/lua
|
%dir %{_datadir}/lua
|
||||||
@ -281,8 +274,7 @@ fi
|
|||||||
%ghost %{_sysconfdir}/alternatives/lua.pc
|
%ghost %{_sysconfdir}/alternatives/lua.pc
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%dir %{lua_docdir}/doc
|
%doc doc/*
|
||||||
%doc %{lua_docdir}/doc/*
|
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user