diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1b61d22 --- /dev/null +++ b/LICENSE @@ -0,0 +1,16 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the “Software”), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/macros.zig-srpm b/macros.zig-srpm new file mode 100644 index 0000000..d097042 --- /dev/null +++ b/macros.zig-srpm @@ -0,0 +1,3 @@ +# zig_arches lists what arches Zig works on + +%zig_arches x86_64 aarch64 riscv64 %{mips64} diff --git a/zig-srpm-macros.spec b/zig-srpm-macros.spec new file mode 100644 index 0000000..4ef58f6 --- /dev/null +++ b/zig-srpm-macros.spec @@ -0,0 +1,33 @@ + +Name: zig-srpm-macros +Version: 1 +Release: 1%{?dist} +Summary: SRPM macros required for Zig packages + +License: MIT + +Source0: macros.zig-srpm +Source100: LICENSE + +BuildArch: noarch + +Requires: rpm + +%description +%{summary} + +%prep +%autosetup -c -T +cp -a %{sources} . + +%install +mkdir -p %{buildroot}%{rpmmacrodir} +install -pm 644 macros.* %{buildroot}%{rpmmacrodir}/ + +%files +%license LICENSE +%{rpmmacrodir}/macros.zig-srpm + +%changelog +* Tue Oct 24 2023 Jan Drögehoff - 1-1 +- Initial spec