%global framework kdelibs4support Name: kf5-%{framework} Version: 5.113.0 Release: 1%{?dist} Summary: KDE Frameworks 5 Tier 4 module with porting aid from KDELibs 4 License: GPLv2+ and LGPLv2+ and BSD URL: https://cgit.kde.org/%{framework}.git %global majmin %(echo %{version} | cut -d. -f1-2) %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/portingAids/%{framework}-%{version}.tar.xz Source1: http://download.kde.org/%{stable}/frameworks/%{majmin}/portingAids/%{framework}-%{version}.tar.xz.sig Source2: gpgkey-53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB.gpg BuildRequires: gnupg2 BuildRequires: ca-certificates BuildRequires: gettext-devel BuildRequires: extra-cmake-modules >= %{majmin} BuildRequires: kf5-kcompletion-devel >= %{majmin} BuildRequires: kf5-kconfig-devel >= %{majmin} BuildRequires: kf5-kconfigwidgets-devel >= %{majmin} BuildRequires: kf5-kcrash-devel >= %{majmin} BuildRequires: kf5-kdbusaddons-devel >= %{majmin} BuildRequires: kf5-kded-devel >= %{majmin} BuildRequires: kf5-kdesignerplugin-devel >= %{majmin} BuildRequires: kf5-kdoctools-devel >= %{majmin} BuildRequires: kf5-kemoticons-devel >= %{majmin} BuildRequires: kf5-kglobalaccel-devel >= %{majmin} BuildRequires: kf5-kguiaddons-devel >= %{majmin} BuildRequires: kf5-ki18n-devel >= %{majmin} BuildRequires: kf5-kiconthemes-devel >= %{majmin} BuildRequires: kf5-kio-devel >= %{majmin} BuildRequires: kf5-knotifications-devel >= %{majmin} BuildRequires: kf5-kparts-devel >= %{majmin} BuildRequires: kf5-kservice-devel >= %{majmin} BuildRequires: kf5-ktextwidgets-devel >= %{majmin} BuildRequires: kf5-kunitconversion-devel >= %{majmin} BuildRequires: kf5-kwidgetsaddons-devel >= %{majmin} BuildRequires: kf5-kwindowsystem-devel >= %{majmin} BuildRequires: kf5-kxmlgui-devel >= %{majmin} BuildRequires: kf5-rpm-macros BuildRequires: libSM-devel BuildRequires: libX11-devel %if 0%{?fedora} == 26 BuildRequires: compat-openssl10-devel %else BuildRequires: openssl-devel %endif BuildRequires: perl-generators BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-qttools-devel BuildRequires: qt5-qtx11extras-devel Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: ca-certificates Requires: kde-settings Requires: kf5-kded >= %{majmin} %description This framework provides code and utilities to ease the transition from kdelibs 4 to KDE Frameworks 5. This includes CMake macros and C++ classes whose functionality has been replaced by code in CMake, Qt and other frameworks. %package libs Summary: Runtime libraries for %{name} Requires: %{name} = %{version}-%{release} %description libs %{summary}. %package doc Summary: Documentation and user manuals for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc %{summary}. %package devel Summary: Development files for %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: kf5-kauth-devel >= %{majmin} Requires: kf5-kconfigwidgets-devel >= %{majmin} Requires: kf5-kcoreaddons-devel >= %{majmin} Requires: kf5-kcrash-devel >= %{majmin} Requires: kf5-kdesignerplugin-devel >= %{majmin} Requires: kf5-kdoctools-devel >= %{majmin} Requires: kf5-kemoticons-devel >= %{majmin} Requires: kf5-kguiaddons-devel >= %{majmin} Requires: kf5-kiconthemes-devel >= %{majmin} Requires: kf5-kinit-devel >= %{majmin} Requires: kf5-kitemmodels-devel >= %{majmin} Requires: kf5-knotifications-devel >= %{majmin} Requires: kf5-kparts-devel >= %{majmin} Requires: kf5-ktextwidgets-devel >= %{majmin} Requires: kf5-kunitconversion-devel >= %{majmin} Requires: kf5-kwindowsystem-devel >= %{majmin} Requires: kf5-kdbusaddons-devel >= %{majmin} Requires: kf5-karchive-devel >= %{majmin} Requires: qt5-qtbase-devel %if 0%{?fedora} || 0%{?rhel} > 7 %global _with_html --with-html %endif %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -n %{framework}-%{version} -p1 %build # Set absolute BIN_INSTALL_DIR, otherwise CMake will complain about mixed use of # absolute and relative paths for some reason # Remove once fixed upstream %cmake_kf5 \ -DBIN_INSTALL_DIR=%{_kf5_bindir} %cmake_build %install %cmake_install %find_lang all --all-name --with-man %{?_with_html} %if 0%{?_with_html:1} grep %{_kf5_docdir} all.lang > doc.lang sort all.lang doc.lang | uniq -u > %{name}.lang %else echo '%{_kf5_docdir}/HTML/*/*' > doc.lang cp all.lang %{name}.lang %endif ## use ca-certificates' ca-bundle.crt, symlink as what most other ## distros do these days (http://bugzilla.redhat.com/521902) if [ -f %{buildroot}%{_kf5_datadir}/kf5/kssl/ca-bundle.crt -a \ -f /etc/pki/tls/certs/ca-bundle.crt ]; then ln -sf /etc/pki/tls/certs/ca-bundle.crt \ %{buildroot}%{_kf5_datadir}/kf5/kssl/ca-bundle.crt fi ## use kdebugrc from kde-settings instead rm -fv %{buildroot}%{_kf5_sysconfdir}/xdg/kdebugrc %files -f %{name}.lang %doc README.md %license COPYING.LIB %{_kf5_bindir}/kf5-config %{_kf5_mandir}/man1/kf5-config.1* %{_kf5_bindir}/kdebugdialog5 # fileshareset pulls in perl %{_kf5_libexecdir}/fileshareset %{_kf5_libexecdir}/filesharelist %{_kf5_datadir}/kservices5/*.desktop %{_kf5_datadir}/kservices5/qimageioplugins/*.desktop %{_kf5_datadir}/kservicetypes5/*.desktop %{_kf5_datadir}/kf5/kdoctools/customization/ %{_kf5_datadir}/kf5/locale/ %{_kf5_datadir}/locale/kf5_all_languages %{_kf5_datadir}/kf5/widgets/ %config %{_kf5_sysconfdir}/xdg/ksslcalist %{_kf5_datadir}/kf5/kssl/ %config %{_kf5_sysconfdir}/xdg/colors %config %{_kf5_sysconfdir}/xdg/kdebug.areas %ldconfig_scriptlets libs %files libs %{_kf5_libdir}/libKF5KDELibs4Support.so.* %{_kf5_qtplugindir}/*.so %{_kf5_qtplugindir}/designer/*.so %{_kf5_plugindir}/kio/metainfo.so %{_kf5_plugindir}/kded/networkstatus.so %files doc -f doc.lang %files devel %{_kf5_libdir}/libKF5KDELibs4Support.so %{_kf5_libdir}/cmake/KF5KDELibs4Support/ %{_kf5_libdir}/cmake/KF5KDE4Support/ %{_kf5_libdir}/cmake/KDELibs4/ %{_kf5_includedir}/KDELibs4Support/ %{_kf5_datadir}/dbus-1/interfaces/*.xml %changelog * Fri Dec 15 2023 Yaroslav Sidlovsky - 5.113.0-1 - 5.113.0 * Sun Nov 12 2023 Yaroslav Sidlovsky - 5.112.0-1 - 5.112.0 * Thu Oct 19 2023 Yaroslav Sidlovsky - 5.111.0-1 - 5.111.0 * Sun Sep 10 2023 Yaroslav Sidlovsky - 5.110.0-1 - 5.110.0 * Fri Aug 18 2023 Yaroslav Sidlovsky - 5.109.0-1 - 5.109.0 * Sun Jul 09 2023 Yaroslav Sidlovsky - 5.108.0-1 - 5.108.0 * Sat Jun 10 2023 Yaroslav Sidlovsky - 5.107.0-1 - 5.107.0 * Sat May 13 2023 Yaroslav Sidlovsky - 5.106.0-1 - 5.106.0 * Sat Apr 08 2023 Yaroslav Sidlovsky - 5.105.0-1 - 5.105.0 * Sat Mar 11 2023 Yaroslav Sidlovsky - 5.104.0-1 - 5.104.0 * Sun Feb 12 2023 Yaroslav Sidlovsky - 5.103.0-1 - 5.103.0