Closed falon closed 3 years ago
I think the issue is that you're inserting those lines after "{%- endfor -%}" and before another tag. The '-' character in the closing character group indicates that whitespace after the tag should be discarded.
Try changing that to "{%- endfor %}" and see if you get the output that you want.
Hello,
I modified the epel7.spec in
%install
as following:I only added the
mv
line before "install -d -Cm 0755...".When I run
pyp2rpm -o epel7 -t epel7 -b 3 -s dist/<%{pypi_name}>-0.1.post8.tar.gz
I see:
# dnf list python3-dnf
The problem is the following: the built spec by pyp2rpm contains:
The issue is that no new line is inserted before the
mv
command.The issue is the same for fedora.spec too.