#54 Revision handling in spec files and more...
Closed: Fixed a month ago by ngompa. Opened 2 years ago by marcdeop.

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)


Metadata Update from @ngompa:
- Issue assigned to ngompa

2 years ago

This is something I'm going to look into immediately after F34 GA.

Metadata Update from @ngompa:
- Issue set to the milestone: Fedora 35

2 years ago

We'll become compatible with it by not stuffing pre-release info into Release field, which we're already planning on.

Metadata Update from @ngompa:
- Issue set to the milestone: Fedora Linux 35 (was: Fedora 35)

2 years ago

Metadata Update from @siosm:
- Issue set to the milestone: None (was: Fedora Linux 35)
- Issue tagged with: packaging

2 years ago

Metadata Update from @siosm:
- Issue untagged with: packaging

2 years ago

Metadata Update from @siosm:
- Issue tagged with: packaging

2 years ago

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

a month ago

Issue status updated to: Closed (was: Open)
Issue close_status updated to: Fixed

a month ago

Login to comment on this ticket.

Metadata
Boards 1
Packaging Status: Done