conf/04-rpmbuild-format-unpackaged-filelist.conf: updates to support kde frameworks 6 and more

This commit is contained in:
Silvan Calarco 2024-02-08 17:22:10 +01:00
parent 9984ff37e6
commit 52f6c8266f

View File

@ -1,13 +1,23 @@
## conversion rules for unpackaged files ## conversion rules for unpackaged files
format_unpackaged_file_list_common="\ format_unpackaged_file_list_common="\
s,^/usr/share/doc/,%{_docdir}/, # java
# python s,^/usr/share/java,%{_javadir},
s,^/usr/include/python3.3m,%{python3_inc}, # xdg
s,^/usr/share/metainfo,%{_metainfodir},
# qt5
s,^/usr/include/qt5,%{_qt5_headerdir},
s,^/usr/share/doc/qt5,%{_qt5_docdir},
# qt6
s,^/usr/include/qt6,%{_qt6_headerdir},
s,^/usr/share/doc/qt6,%{_qt6_docdir},
# kde5 # kde5
s,^/usr/include/KF5,%{_kde5_includedir}, s,^/usr/include/KF5,%{_kde5_includedir},
s,^/usr/share/kf5,%{_kde5_datadir}/kf5, s,^/usr/share/kf5,%{_kde5_datadir}/kf5,
s,^/usr/share/kservicetypes5,%{_kde5_servicetypesdir}, s,^/usr/share/kservicetypes5,%{_kde5_servicetypesdir},
# kf6
s,^/usr/include/KF6,%{_kf6_includedir},
s,^/usr/share/kf6,%{_kf6_datadir}/kf6,
# systemd # systemd
s,^/usr/lib/systemd/system,%{_unitdir}, s,^/usr/lib/systemd/system,%{_unitdir},
s,^/usr/lib/systemd/user,%{_userunitdir}, s,^/usr/lib/systemd/user,%{_userunitdir},
@ -29,6 +39,11 @@ s,^/usr/lib/systemd/system-generators,%{_systemdgeneratordir},
s,^/usr/lib/systemd/user-generators,%{_systemdusergeneratordir}, s,^/usr/lib/systemd/user-generators,%{_systemdusergeneratordir},
s,^/usr/lib/systemd/system-environment-generators,%{_systemd_system_env_generator_dir}, s,^/usr/lib/systemd/system-environment-generators,%{_systemd_system_env_generator_dir},
s,^/usr/lib/systemd/user-environment-generators,%{_systemd_user_env_generator_dir}, s,^/usr/lib/systemd/user-environment-generators,%{_systemd_user_env_generator_dir},
# perl
s,^/usr/lib/perl[5-9]/site_perl/[0-9.]*/.*-linux-thread-multi,%{perl_sitearch},
s,^/usr/lib/perl[5-9]/site_perl/[0-9.]*,%{perl_sitelib},
s,^/usr/lib/perl[5-9]/vendor_perl/[0-9.]*/.*-linux-thread-multi,%{perl_vendorarch},
s,^/usr/lib/perl[5-9]/vendor_perl/[0-9.]*,%{perl_vendorlib},
# pam # pam
s,^/etc/security,%{_pam_secconfdir}, s,^/etc/security,%{_pam_secconfdir},
s,^/etc/pam.d,%{_pam_confdir}, s,^/etc/pam.d,%{_pam_confdir},
@ -36,6 +51,7 @@ s,^/usr/share/pam.d,%{_pam_vendordir},
# generic translations # generic translations
s,^/usr/bin,%{_bindir}, s,^/usr/bin,%{_bindir},
s,^/usr/sbin,%{_sbindir}, s,^/usr/sbin,%{_sbindir},
s,^/usr/share/doc/,%{_docdir}/,
s,^/usr/share/info,%{_infodir}, s,^/usr/share/info,%{_infodir},
s,^/usr/share/man,%{_mandir}, s,^/usr/share/man,%{_mandir},
s,^/usr/share,%{_datadir}, s,^/usr/share,%{_datadir},
@ -52,6 +68,15 @@ format_unpackaged_file_list_i586="\
s,^/usr/lib/cmake/KF5,%{_kde5_libdir}/cmake/KF5, s,^/usr/lib/cmake/KF5,%{_kde5_libdir}/cmake/KF5,
s,^/usr/lib/libKF5,%{_kde5_libdir}/libKF5, s,^/usr/lib/libKF5,%{_kde5_libdir}/libKF5,
s,^/usr/lib/qt5/mkspecs/modules/qt_K,%{_kde5_mkspecsdir}/qt_K, s,^/usr/lib/qt5/mkspecs/modules/qt_K,%{_kde5_mkspecsdir}/qt_K,
# kde6
s,^/usr/lib/qt6/plugins/kf6,%{_kf6_plugindir},
# qt5
s,^/usr/lib/qt5/plugins,%{_qt5_plugindir},
s,^/usr/lib/qt5,%{_qt5_prefix},
# qt6
s,^/usr/lib/qt6/plugins,%{_qt6_plugindir},
s,^/usr/lib/qt6/qml,%{_qt6_qmldir},
s,^/usr/lib/qt6,%{_qt6_archdatadir},
# python # python
s,^/usr/lib/python2.7/site-packages,%{python27_sitearch}, s,^/usr/lib/python2.7/site-packages,%{python27_sitearch},
s,^/usr/lib/python3.11/site-packages,%{python3_sitearch}, s,^/usr/lib/python3.11/site-packages,%{python3_sitearch},
@ -75,6 +100,15 @@ format_unpackaged_file_list_x86_64="\
s,^/usr/lib64/cmake/KF5,%{_kde5_libdir}/cmake/KF5, s,^/usr/lib64/cmake/KF5,%{_kde5_libdir}/cmake/KF5,
s,^/usr/lib64/libKF5,%{_kde5_libdir}/libKF5, s,^/usr/lib64/libKF5,%{_kde5_libdir}/libKF5,
s,^/usr/lib64/qt5/mkspecs/modules/qt_K,%{_kde5_mkspecsdir}/qt_K, s,^/usr/lib64/qt5/mkspecs/modules/qt_K,%{_kde5_mkspecsdir}/qt_K,
# kde6
s,^/usr/lib64/qt6/plugins/kf6,%{_kf6_plugindir},
# qt5
s,^/usr/lib64/qt5/plugins,%{_qt5_plugindir},
s,^/usr/lib64/qt5,%{_qt5_prefix},
# qt6
s,^/usr/lib64/qt6/plugins,%{_qt6_plugindir},
s,^/usr/lib64/qt6/qml,%{_qt6_qmldir},
s,^/usr/lib64/qt6,%{_qt6_archdatadir},
# python # python
s,^/usr/lib64/python2.7/site-packages,%{python27_sitearch}, s,^/usr/lib64/python2.7/site-packages,%{python27_sitearch},
s,^/usr/lib/python2.7/site-packages,%{python27_sitelib}, s,^/usr/lib/python2.7/site-packages,%{python27_sitelib},