|
| 1 | +Name: lua-lunitx |
| 2 | +Version: 0.8.1 |
| 3 | +Release: 12%{?dist} |
| 4 | +Summary: Unit testing framework for Lua |
| 5 | + |
| 6 | +License: MIT |
| 7 | +Vendor: Microsoft Corporation |
| 8 | +Distribution: Azure Linux |
| 9 | +URL: https://github.com/dcurrie/lunit/ |
| 10 | +Source0: https://github.com/dcurrie/lunit/archive/%{version}.tar.gz#/lunitx-%{version}.tar.gz |
| 11 | + |
| 12 | +# for running tests |
| 13 | +# also, macros are in lua-devel |
| 14 | +BuildRequires: lua-devel >= 5.2 |
| 15 | + |
| 16 | +BuildArch: noarch |
| 17 | + |
| 18 | +Provides: lua-lunit = %{version}-%{release} |
| 19 | +Obsoletes: lua-lunit < %{version}-%{release} |
| 20 | + |
| 21 | +%description |
| 22 | +This is lunitx Version 0.8.1, an extended version of Lunit |
| 23 | +for Lua 5.2, 5.3, and 5.4. |
| 24 | + |
| 25 | +Lunit is a unit testing framework for lua. |
| 26 | + |
| 27 | +%prep |
| 28 | +%autosetup -n lunit-%{version} |
| 29 | + |
| 30 | +%install |
| 31 | +mkdir -p %{buildroot}%{_bindir} |
| 32 | +cp -p extra/lunit.sh %{buildroot}%{_bindir}/lunit |
| 33 | + |
| 34 | +mkdir -p %{buildroot}%{lua_pkgdir} |
| 35 | +cp -pr lua/* %{buildroot}%{lua_pkgdir} |
| 36 | + |
| 37 | +%check |
| 38 | +# for self test, without --dontforce lunit will try to load its launcher which is a shell script |
| 39 | +LUA_PATH='%{buildroot}%{lua_pkgdir}/?.lua;;' %{buildroot}%{_bindir}/lunit --dontforce test/selftest.lua |
| 40 | + |
| 41 | +%files |
| 42 | +%license LICENSE |
| 43 | +%doc ANNOUNCE CHANGES DOCUMENTATION examples README* |
| 44 | +%{_bindir}/lunit |
| 45 | +%{lua_pkgdir}/* |
| 46 | + |
| 47 | +%changelog |
| 48 | +* Mon Apr 29 2025 Aninda Pradhan <v-anipradhan@microsoft.com> - 0.8.1-12 |
| 49 | +- Initial Azure Linux import from Fedora 41 (license: MIT) |
| 50 | +- License Verified |
| 51 | + |
| 52 | +* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-11 |
| 53 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild |
| 54 | + |
| 55 | +* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-10 |
| 56 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 57 | + |
| 58 | +* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-9 |
| 59 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 60 | + |
| 61 | +* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-8 |
| 62 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild |
| 63 | + |
| 64 | +* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-7 |
| 65 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild |
| 66 | + |
| 67 | +* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-6 |
| 68 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild |
| 69 | + |
| 70 | +* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-5 |
| 71 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
| 72 | + |
| 73 | +* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-4 |
| 74 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild |
| 75 | + |
| 76 | +* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-3 |
| 77 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
| 78 | + |
| 79 | +* Thu Aug 27 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.8.1-2 |
| 80 | +- Use standard Lua macros |
| 81 | + |
| 82 | +* Tue Aug 25 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.8.1-1 |
| 83 | +- Initial Fedora package (replacing lua-lunit) |
| 84 | + |
0 commit comments