On Fri, 2022-05-13 at 12:26 +0000, Artem Tim wrote:
It works for me and really like this new approach. Switched couple
of
my packages and no issue so far with rpmautospec itself. But some
3rd-party tools requires some work and adaption. For example if you
already switched to rpmautospec format and try to:
$ fedpkg import foo.fc36.src.rpm
then your changlog file will be removed:
Removing no longer used file: changelog
I haven't seen the SRPM in question but have a hunch what happens –
assuming you created the SRPM using `fedpkg srpm`, then attempted to
import it into the same package repository. If that's the case, then
this is – while unintuitive – “working as designed”:
Running `fedpkg srpm` makes a SRPM which is buildable by plain RPM (no
need for rpmautospec) out of the spec file, patches, etc. This adds a
header to the spec file and replaces %autorelease/%autochangelog so
they expand to their final values and doesn't contain the changelog
file (which would be useless at this point)… and this is what gets
imported into the repository _replacing_ all the files already in there
(including `changelog`).
Makes sense?
Nils
--
Nils Philippsen / Senior Software Engineer / Red Hat
PGP fingerprint: D0C1 1576 CDA6 5B6E BBAE 95B2 7D53 7FCA E9F6 395D