diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-08-28 19:34:22 -0700 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-08-28 19:35:47 -0700 |
| commit | 80efbd28f6008a6c3d6c2765e344973c74f37607 (patch) | |
| tree | c5368130286c6475830f848851af7d72b27df2e2 /lua | |
| parent | 78a9cb37f711a3051279852ede196a1aea18589d (diff) | |
| download | specs-80efbd28f6008a6c3d6c2765e344973c74f37607.tar.gz specs-80efbd28f6008a6c3d6c2765e344973c74f37607.tar.xz specs-80efbd28f6008a6c3d6c2765e344973c74f37607.zip | |
+ lua-rpm-macros
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lua-rpm-macros.spec | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/lua/lua-rpm-macros.spec b/lua/lua-rpm-macros.spec new file mode 100644 index 0000000..2d1cc3e --- /dev/null +++ b/lua/lua-rpm-macros.spec @@ -0,0 +1,69 @@ +# once this package is approved, work with Lua package maintainers +# to move macros.lua out of lua-devel +# It might be harder to fix EPEL8 +%if 0%{?el6} || 0%{?el7} +%bcond_without rpm_macros +%else +%bcond_with rpm_macros +%endif + +Name: lua-rpm-macros +Version: 1 +Release: 1%{?dist} +Summary: The common Lua RPM macros + +License: MIT + +# Macros: +Source101: macros.lua +Source102: macros.lua-srpm + +BuildArch: noarch + +# for lua_libdir and lua_pkgdir +Requires: lua-srpm-macros = %{version}-%{release} + +%description +This package contains Lua RPM macros. + +You should not need to install this package manually as lua-devel requires it. + + +%package -n lua-srpm-macros +Summary: RPM macros for building Lua source packages + +# For directory structure +Requires: redhat-rpm-config + +%description -n lua-srpm-macros +RPM macros for building Lua source packages. + + +%prep +%autosetup -c -T +cp -a %{sources} . +%if %{without rpm_macros} +rm macros.lua +%endif + + +%build + + +%install +mkdir -p %{buildroot}%{rpmmacrodir} +install -m 644 macros.* %{buildroot}%{rpmmacrodir}/ + + +%if %{with rpm_macros} +%files +%{rpmmacrodir}/macros.lua +%endif + +%files -n lua-srpm-macros +%{rpmmacrodir}/macros.lua-srpm + + +%changelog +* Fri Aug 28 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 1-1 +- Initial package |
