2020-09-01 00:21:24 +00:00
|
|
|
|
%if 0%{?el8}
|
2020-09-01 08:48:49 +00:00
|
|
|
|
# RHEL8's lua-devel ships macros.lua and lua.attr
|
2020-09-01 00:21:24 +00:00
|
|
|
|
# skip shipping lua-rpm-macros so we don't conflict
|
|
|
|
|
%bcond_with rpm_macros
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without rpm_macros
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-09-01 08:48:49 +00:00
|
|
|
|
# Versions of lua-devel where the macros were removed
|
|
|
|
|
%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
|
|
|
|
|
%global lua_conflict 5.4.0-7
|
|
|
|
|
%endif
|
|
|
|
|
# TODO add new versions if this gets backported
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
|
2020-09-01 00:21:24 +00:00
|
|
|
|
# requires RPM >= 4.16
|
|
|
|
|
%bcond_without requires_generator
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with requires_generator
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: lua-rpm-macros
|
|
|
|
|
Version: 1
|
2024-02-12 11:29:51 +00:00
|
|
|
|
Release: 12%{?dist}
|
2020-09-01 00:21:24 +00:00
|
|
|
|
Summary: The common Lua RPM macros
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
|
|
|
|
|
# Macros:
|
|
|
|
|
Source101: macros.lua
|
|
|
|
|
Source102: macros.lua-srpm
|
|
|
|
|
|
|
|
|
|
# RPM requires generator
|
|
|
|
|
Source103: lua.attr
|
|
|
|
|
|
|
|
|
|
# license text
|
|
|
|
|
Source200: LICENSE
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
# for lua_libdir and lua_pkgdir
|
|
|
|
|
Requires: lua-srpm-macros = %{version}-%{release}
|
|
|
|
|
|
2020-09-01 08:48:49 +00:00
|
|
|
|
# files were moved from here
|
|
|
|
|
%{?lua_conflict:Conflicts: lua-devel < %{lua_conflict}}
|
|
|
|
|
|
2020-09-01 00:21:24 +00:00
|
|
|
|
%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
|
2020-09-01 08:48:49 +00:00
|
|
|
|
Requires: rpm
|
2020-09-01 00:21:24 +00:00
|
|
|
|
|
|
|
|
|
%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 -pm 644 macros.* %{buildroot}%{rpmmacrodir}/
|
|
|
|
|
%if %{with requires_generator}
|
|
|
|
|
install -Dpm 0644 lua.attr %{buildroot}/%{_fileattrsdir}/lua.attr
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with rpm_macros}
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%if %{with requires_generator}
|
|
|
|
|
%{_fileattrsdir}/lua.attr
|
|
|
|
|
%endif
|
|
|
|
|
%{rpmmacrodir}/macros.lua
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n lua-srpm-macros
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{rpmmacrodir}/macros.lua-srpm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-02-12 11:29:51 +00:00
|
|
|
|
* Mon Feb 12 2024 Nils Philippsen <nils@redhat.com> - 1-12
|
|
|
|
|
- Don’t set locale permanently in %%lua_requires (#2263837)
|
|
|
|
|
|
2024-01-25 05:09:50 +00:00
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
2024-01-21 06:27:07 +00:00
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
2023-07-20 13:17:15 +00:00
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
2023-01-19 18:30:40 +00:00
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
2022-07-21 20:05:13 +00:00
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
2022-01-20 18:17:21 +00:00
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
2021-07-22 13:21:22 +00:00
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
2021-01-26 18:52:43 +00:00
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
2020-09-01 08:48:49 +00:00
|
|
|
|
* Tue Sep 01 2020 Miro Hrončok <mhroncok@redhat.com> - 1-3
|
|
|
|
|
- Modify several conditionals to support RHEL 9+ and drop ancient Fedora 17
|
|
|
|
|
- Add explicit conflict with older lua-devel
|
|
|
|
|
- Require rpm, not redhat-rpm-config
|
|
|
|
|
|
2020-09-01 00:21:24 +00:00
|
|
|
|
* Mon Aug 31 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 1-2
|
|
|
|
|
- Also move lua.attr requires generator
|
|
|
|
|
|
|
|
|
|
* Fri Aug 28 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 1-1
|
|
|
|
|
- Initial package
|