Hi all, I would like to upgrade kde-partitionmanager in f22 to version 1.2.1, that is ported to Kf5: https://stikonas.eu/wordpress/2015/02/15/kde-partition-managers-1-1-1-and-1-...
In Fedora wiki I can only found best practices for applications using KDE4: https://fedoraproject.org/wiki/SIGs/KDE/Packaging/BestPractices?rd=SIGs/KDE/...
Is there a similar wiki page for Kf5? Is there any specific requirements or buildrequires? And what about macros and scriptlets?
Thanks, Mattia
On Friday, April 03, 2015 09:22:11 AM Mattia Verga wrote:
Hi all, I would like to upgrade kde-partitionmanager in f22 to version 1.2.1, that is ported to Kf5: https://stikonas.eu/wordpress/2015/02/15/kde-partition-managers-1-1-1-and-1-... 2-0/
In Fedora wiki I can only found best practices for applications using KDE4: https://fedoraproject.org/wiki/SIGs/KDE/Packaging/BestPractices?rd=SIGs/KDE/ Packaging/Guidelines
Is there a similar wiki page for Kf5? Is there any specific requirements or buildrequires? And what about macros and scriptlets?
Hi,
there's nothing special, you should only BR: kf5-rpm-macros and use %{cmake_kf5} instead of %{cmake}.
You can look at some Plasma 5 packages (kmenuedit, kscreen, powerdevil for example) to get the idea :)
Cheers, Daniel
Thanks, Mattia _______________________________________________ kde mailing list kde@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/kde New to KDE4? - get help from http://userbase.kde.org
-- Daniel Vrátil | dvratil@redhat.com | dvratil on #kde-devel, #kontact, #akonadi Software Engineer - Desktop Team, Red Hat Inc.
GPG Key: 0xC59D614F6F4AE348 Fingerprint: 4EC1 86E3 C54E 0B39 5FDD B5FB C59D 614F 6F4A E348
Il 03/04/2015 11:23, Daniel Vrátil ha scritto:
Hi, there's nothing special, you should only BR: kf5-rpm-macros and use %{cmake_kf5} instead of %{cmake}. You can look at some Plasma 5 packages (kmenuedit, kscreen, powerdevil for example) to get the idea :) Cheers, Daniel
Thanks Daniel, I've succesfully managed to build the new version under kf5.
Just another question: I see that partitionmanager now creates a config file under /usr/share/config.kcfg dir named 'config.kcfg'. I've already asked upstream to rename that file to a more specific 'partitionmanager.kcfg'. I'm wondering if there's a quick fix that I can apply with a patch, or if it can cause any issue if I just build it and release in f22 as it is now: can it cause any conflict with other kde packages? Is it better to wait for upstream to fix it?.
Cheers, Mattia
Mattia Verga wrote:
Just another question: I see that partitionmanager now creates a config file under /usr/share/config.kcfg dir named 'config.kcfg'. I've already asked upstream to rename that file to a more specific 'partitionmanager.kcfg'. I'm wondering if there's a quick fix that I can apply with a patch, or if it can cause any issue if I just build it and release in f22 as it is now: can it cause any conflict with other kde packages? Is it better to wait for upstream to fix it?.
The CMake INSTALL command supports a RENAME "foo" option, or you could also just mv it in the specfile. You'll want to check whether there's anything in the code referring to that file by name though, and if so, patch that too.
Kevin Kofler