We have almost in all our spec files stuff like:
%global versiondir %(echo %{version} | cut -d. -f1-2) %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif
This should be centralized.
We should also have a way to handle possible changes on the Sources:
Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{name}-%{version}.tar.xz
Sometimes sources are not exactly there or we might want to download directly from invent.kde.org.
Last but not least: we should have a macro like kdeautosetup that could handle different situations regarding the source files (for example: handle properly whenever the source code has a folder inside like extra-cmake-modules-master)
kdeautosetup
Metadata Update from @ngompa: - Issue assigned to ngompa
This is something I'm going to look into immediately after F34 GA.
Metadata Update from @ngompa: - Issue set to the milestone: Fedora 35
Should we also consider https://fedoraproject.org/wiki/Changes/rpm_level_auto_release_and_changelog_bumping ?
We'll become compatible with it by not stuffing pre-release info into Release field, which we're already planning on.
Release
Metadata Update from @ngompa: - Issue set to the milestone: Fedora Linux 35 (was: Fedora 35)
Metadata Update from @siosm: - Issue set to the milestone: None (was: Fedora Linux 35) - Issue tagged with: packaging
Metadata Update from @siosm: - Issue untagged with: packaging
Metadata Update from @siosm: - Issue tagged with: packaging
We should also consider using https://fedoraproject.org/wiki/Changes/rpmautospec (replaced the one mentioned above)
Edit: This apparently does not work in COPR yet thus we might not want to do that yet.
Turns out this no longer blocks https://pagure.io/fedora-kde/SIG/issue/64 as I've managed to do git builds daily.
This has been addressed as part of the KDE Plasma 6.0 packaging work.
Metadata Update from @ngompa: - Issue set to the milestone: KDE Plasma 6.0
Issue status updated to: Closed (was: Open) Issue close_status updated to: Fixed
Login to comment on this ticket.