Use source names instead of numbers
Inspired by the redhat-rpm-config package.
This commit is contained in:
parent
a4df3c984a
commit
286c22ff34
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user