| |
@@ -1,10 +1,12 @@
|
| |
%{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))" || echo 0)}
|
| |
%global luapkgdir %{_datadir}/lua/%{luaver}
|
| |
%global lualibdir %{_libdir}/lua/%{luaver}
|
| |
+ %global luaincdir %{_includedir}/lua-%{luaver}
|
| |
|
| |
%global luacompatver 5.1
|
| |
%global luacompatpkgdir %{_datadir}/lua/%{luacompatver}
|
| |
%global luacompatlibdir %{_libdir}/lua/%{luacompatver}
|
| |
+ %global luacompatincdir %{_includedir}/lua-%{luacompatver}
|
| |
|
| |
%if 0%{?fedora} || 0%{?rhel} > 7
|
| |
%global lualib lua-%{luacompatver}
|
| |
@@ -16,7 +18,7 @@
|
| |
|
| |
Name: lua-%{luapkgname}
|
| |
Version: 0.7
|
| |
- Release: 2%{?dist}
|
| |
+ Release: 3%{?dist}
|
| |
Summary: Compatibility module providing Lua-5.3-style APIs for Lua %{luacompatver}
|
| |
|
| |
License: MIT
|
| |
@@ -85,11 +87,24 @@
|
| |
install -p -m 0755 {utf8,string,table}.so -t "$LIBDIR/%{luapkgname}/"
|
| |
|
| |
%if 0%{?rhel} == 7
|
| |
+ install -d -m 0755 %{buildroot}%{luaincdir}/c-api
|
| |
+ install -m 0644 -p -t %{buildroot}%{luaincdir}/c-api c-api/*
|
| |
+ install -m 0644 lprefix.h %{buildroot}%{luaincdir}/lprefix.h
|
| |
+ %endif
|
| |
+
|
| |
+ %if 0%{?fedora} || 0%{?rhel} > 7
|
| |
+ install -d -m 0755 %{buildroot}%{luacompatincdir}/c-api
|
| |
+ install -m 0644 -p -t %{buildroot}%{luacompatincdir}/c-api c-api/*
|
| |
+ install -m 0644 lprefix.h %{buildroot}%{luacompatincdir}/lprefix.h
|
| |
+ %endif
|
| |
+
|
| |
+ %if 0%{?rhel} == 7
|
| |
%files
|
| |
%license LICENSE
|
| |
%doc README.md
|
| |
%{luapkgdir}/%{luapkgname}
|
| |
%{lualibdir}/%{luapkgname}
|
| |
+ %{luaincdir}
|
| |
%endif
|
| |
|
| |
%if 0%{?fedora} || 0%{?rhel} > 7
|
| |
@@ -98,9 +113,13 @@
|
| |
%doc README.md
|
| |
%{luacompatpkgdir}/%{luapkgname}
|
| |
%{luacompatlibdir}/%{luapkgname}
|
| |
+ %{luacompatincdir}
|
| |
%endif
|
| |
|
| |
%changelog
|
| |
+ * Mon Sep 16 2019 Andreas Schneider <asn@redhat.com> - 0.7-3
|
| |
+ - Also package the c-api
|
| |
+
|
| |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
| |
|
| |
This is required by the lua-luv package which is a dependency of neovim now. Please also pick the change to f32 and f31.
Thanks!