From 286c22ff343bf0115da8f44208c852b55a098250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 2 Jul 2019 13:40:47 +0200 Subject: [PATCH] Use source names instead of numbers Inspired by the redhat-rpm-config package. --- pyproject-rpm-macros.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pyproject-rpm-macros.spec b/pyproject-rpm-macros.spec index faa59b8..1165afd 100644 --- a/pyproject-rpm-macros.spec +++ b/pyproject-rpm-macros.spec @@ -20,15 +20,17 @@ pyproject.toml file, which specifies the package's build dependencies (including the build system, such as setuptools, flit or poetry). %prep -cp -p %{SOURCE1} %{_builddir} -cp -p %{SOURCE2} %{_builddir} +# Not strictly necessary but allows working on file names instead +# of source numbers in install section +%setup -c -T +cp -p %{sources} . %build # nothing to do, sources are not buildable %install mkdir -p %{buildroot}/%{_rpmmacrodir} -install -m 644 %{SOURCE0} %{buildroot}/%{_rpmmacrodir}/ +install -m 644 macros.pyproject %{buildroot}/%{_rpmmacrodir}/ %files %{_rpmmacrodir}/macros.pyproject