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).
|
(including the build system, such as setuptools, flit or poetry).
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
cp -p %{SOURCE1} %{_builddir}
|
# Not strictly necessary but allows working on file names instead
|
||||||
cp -p %{SOURCE2} %{_builddir}
|
# of source numbers in install section
|
||||||
|
%setup -c -T
|
||||||
|
cp -p %{sources} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# nothing to do, sources are not buildable
|
# nothing to do, sources are not buildable
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/%{_rpmmacrodir}
|
mkdir -p %{buildroot}/%{_rpmmacrodir}
|
||||||
install -m 644 %{SOURCE0} %{buildroot}/%{_rpmmacrodir}/
|
install -m 644 macros.pyproject %{buildroot}/%{_rpmmacrodir}/
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_rpmmacrodir}/macros.pyproject
|
%{_rpmmacrodir}/macros.pyproject
|
||||||
|
Loading…
Reference in New Issue
Block a user