Due to the switch to RPM5 on Mandriva, the following changes will be
seen in PLF packages:

1. As per Mandriva, Release tag no longer contains 'plf'.
2. As per Mandriva, the new Disttag tag contains 'plf'.
3. As per Mandriva, the src.rpm package no longer contain 'plf' in the
file name.

The above three changes are automatic, and existing PLF .specs need no
changes.

However, there's a new issue, which needs .spec adaptation:

4. Due to 'Disttag' not being considered in package version comparisons,
urpmi will not upgrade 'mdv' packages to 'plf' ones by itself. Therefore
an extra 'plf' string is added to Release for those packages that exist
in both Mandriva and PLF. This can be achieved by e.g. the following
.spec construct:

%if %build_plf
%define extrarelsuffix plf
%endif
Release:   %mkrel %rel%{?extrarelsuffix}

The above will append "plf" to Release when %build_plf is true.
This is ugly (the filename will have two 'plf'), but from what I can see
the simplest non-confusing way to do what we want at the moment.

Note that the above only applies to .specs that are maintained in
Mandriva SVN. PLF-only .spec files do not need any changes.

PLF Cooker uploads should be resumed shortly, after I've done some more
testing. I'll also be making the above change for .specs in Mandriva SVN
to avoid issues if the changes are forgotten.

If you disagree with this change, feel free to voice your concern here.

-- 
Anssi Hannula
_______________________________________________
PLF-discuss mailing list
[email protected]
https://www.zarb.org/mailman/listinfo/plf-discuss

Reply via email to