Accepting request 793406 from devel:languages:lua

- Modify lua_incdir to work even on Fedora/RHEL

- Install into /usr/lib/ not libexec (forwarded request 793405 from mcepl)

OBS-URL: https://build.opensuse.org/request/show/793406
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-macros?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2020-04-19 19:34:44 +00:00 committed by Git OBS Bridge
commit bbfdfa44e0
2 changed files with 19 additions and 6 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sun Apr 12 13:22:39 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Modify lua_incdir to work even on Fedora/RHEL
-------------------------------------------------------------------
Sun Apr 12 13:14:02 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Install into /usr/lib/ not libexec
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 11 08:24:18 UTC 2017 - tchvatal@suse.com Tue Jul 11 08:24:18 UTC 2017 - tchvatal@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package lua-macros # spec file for package lua-macros
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -22,7 +22,7 @@ Release: 0
Summary: Macros for lua language Summary: Macros for lua language
License: MIT License: MIT
Group: Development/Languages/Other Group: Development/Languages/Other
Url: http://www.lua.org URL: https://www.lua.org
Source0: macros.lua Source0: macros.lua
Requires: lua Requires: lua
BuildArch: noarch BuildArch: noarch
@ -31,15 +31,18 @@ BuildArch: noarch
RPM macros for lua packaging RPM macros for lua packaging
%prep %prep
: cp -p %{SOURCE0} .
%if 0%{?rhel} || 0%{?fedora}
sed -i -e '/includedir/s!/lua!&-!' macros.lua
%endif
%build %build
: :
%install %install
install -D -m 644 %{SOURCE0} %{buildroot}%{_libexecdir}/rpm/macros.d/macros.lua install -D -m 644 macros.lua %{buildroot}%{_usr}/lib/rpm/macros.d/macros.lua
%files %files
%{_libexecdir}/rpm/macros.d/macros.lua %{_usr}/lib/rpm/macros.d/macros.lua
%changelog %changelog