#2 Use source names instead of numbers
Merged 2 months ago by pkopkan. Opened 2 months ago by churchyard.
rpms/ churchyard/pyproject-rpm-macros source_names  into  master

file modified
+5 -3

@@ -20,15 +20,17 @@ 

  (including the build system, such as setuptools, flit or poetry).



- 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} .



  # nothing to do, sources are not buildable



  mkdir -p %{buildroot}/%{_rpmmacrodir}

- install -m 644 %{SOURCE0} %{buildroot}/%{_rpmmacrodir}/

+ install -m 644 macros.pyproject %{buildroot}/%{_rpmmacrodir}/




Inspired by the redhat-rpm-config package.

@pkopkan I consider this more readable. especially if we'll add more files in the future. WDYT?

I consider it more readable too.

Pull-Request has been merged by pkopkan

2 months ago