clean up the SPEC file, doc subpackage is unnecessary

This commit is contained in:
2025-07-01 11:10:19 +02:00
parent c06b5e0505
commit 479efb2302

View File

@@ -40,15 +40,6 @@ Obsoletes: %{flavor}-jsregexp < %{version}
%description %description
Provides ECMAScript regular expressions for Lua 5.1, 5.2, 5.3, 5.4 and LuaJit. Uses libregexp from Fabrice Bellard's QuickJS. Provides ECMAScript regular expressions for Lua 5.1, 5.2, 5.3, 5.4 and LuaJit. Uses libregexp from Fabrice Bellard's QuickJS.
%package doc
Summary: Lua Documentation for %{mod_name}
Requires: %{name} = %{version}
BuildArch: noarch
%description doc
Documentation and examples included with the library, sometimes
generated by luadoc or ldoc.
%prep %prep
%setup -q -n jsregexp-%{version} %setup -q -n jsregexp-%{version}
@@ -70,16 +61,11 @@ mkdir -p %{buildroot}%{lua_noarchdir}
install jsregexp.so %{buildroot}%{lua_archdir} install jsregexp.so %{buildroot}%{lua_archdir}
%check %check
LUA_PATH='%{_datadir}/lua/%{lua_version}/?.lua'
LUA_PATH="%{buildroot}%{lua_noarchdir}/?/init.lua;${LUA_PATH}"
export LUA_PATH="%{buildroot}%{lua_noarchdir}/?.lua;${LUA_PATH}"
%{_bindir}/lua%{lua_version} test.lua %{_bindir}/lua%{lua_version} test.lua
%files %files
%{lua_archdir} %license LICENSE
%{lua_noarchdir} %doc README.md
%{lua_archdir}/jsregexp.so
%files doc
%doc re.html jsregexp.html HISTORY
%changelog %changelog