forked from pool/lua-macros
Matej Cepl
6f5d372c3e
- Modify lua_incdir to work even on Fedora/RHEL - Install into /usr/lib/ not libexec OBS-URL: https://build.opensuse.org/request/show/793405 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-macros?expand=0&rev=7
49 lines
1.3 KiB
RPMSpec
49 lines
1.3 KiB
RPMSpec
#
|
|
# spec file for package lua-macros
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: lua-macros
|
|
Version: 20170611
|
|
Release: 0
|
|
Summary: Macros for lua language
|
|
License: MIT
|
|
Group: Development/Languages/Other
|
|
URL: https://www.lua.org
|
|
Source0: macros.lua
|
|
Requires: lua
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
RPM macros for lua packaging
|
|
|
|
%prep
|
|
cp -p %{SOURCE0} .
|
|
%if 0%{?rhel} || 0%{?fedora}
|
|
sed -i -e '/includedir/s!/lua!&-!' macros.lua
|
|
%endif
|
|
|
|
%build
|
|
:
|
|
|
|
%install
|
|
install -D -m 644 macros.lua %{buildroot}%{_usr}/lib/rpm/macros.d/macros.lua
|
|
|
|
%files
|
|
%{_usr}/lib/rpm/macros.d/macros.lua
|
|
|
|
%changelog
|