diff --git a/libkcddb.spec b/libkcddb.spec index 27fc50a..1b62380 100644 --- a/libkcddb.spec +++ b/libkcddb.spec @@ -1,24 +1,37 @@ Name: libkcddb -Version: 23.08.5 -Release: 1mamba +Version: 24.02.1 +Release: 2mamba Summary: KDE CDDB library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://kde.org/ -Source: http://download.kde.org/stable/release-service/%{version}/src/libkcddb-%{version}.tar.xz +Source: https://download.kde.org/%{stable_kde6}/release-service/%{version}/src/libkcddb-%{version}.tar.xz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libX11-devel BuildRequires: libgcc +BuildRequires: libglvnd-devel BuildRequires: libkauth-devel BuildRequires: libkcodecs-devel BuildRequires: libkcompletion-devel BuildRequires: libkconfig-devel BuildRequires: libkconfigwidgets-devel BuildRequires: libkcoreaddons-devel +BuildRequires: libkf6-kcmutils-devel +BuildRequires: libkf6-kcolorscheme-devel +BuildRequires: libkf6-kcompletion-devel +BuildRequires: libkf6-kconfig-devel +BuildRequires: libkf6-kconfigwidgets-devel +BuildRequires: libkf6-kcoreaddons-devel +BuildRequires: libkf6-ki18n-devel +BuildRequires: libkf6-kio-devel +BuildRequires: libkf6-kjobwidgets-devel +BuildRequires: libkf6-kservice-devel +BuildRequires: libkf6-kwidgetsaddons-devel +BuildRequires: libkf6-solid-devel BuildRequires: libki18n-devel BuildRequires: libkio-devel BuildRequires: libkjobwidgets-devel @@ -29,6 +42,9 @@ BuildRequires: libmusicbrainz-devel BuildRequires: libsolid-devel BuildRequires: libstdc++6-devel BuildRequires: qt5-qtbase-devel +BuildRequires: qt6-qt5compat-devel +BuildRequires: qt6-qtbase-devel +BuildRequires: qt6-qtdeclarative-devel ## AUTOBUILDREQ-END BuildRequires: libmusicbrainz-devel >= 5.1.0 Obsoletes: libkdemultimedia < 21.04.0 @@ -39,8 +55,8 @@ BuildRequires: cmake KDE CDDB library. %package devel -Group: Development/Libraries Summary: Development files for %{name} +Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Obsoletes: libkdemultimedia-devel < 21.04.0 Obsoletes: libkcddb4-devel < 21.04.0 @@ -48,20 +64,47 @@ Obsoletes: libkcddb4-devel < 21.04.0 %description devel This package contains libraries and header files for developing applications that use %{name}. +%package -n %{name}5 +Summary: KDE CDDB library +Group: System/Libraries +Provides: libkcddb-libkcddb5 +Obsoletes: libkcddb-libkcddb5 < 24.02.1-2mamba + +%description -n %{name}5 +KDE CDDB library. + +%package -n %{name}5-devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}5 = %{?epoch:%epoch:}%{version}-%{release} +Provides: libkcddb-libkcddb5-devel +Obsoletes: libkcddb-libkcddb5-devel < 24.02.1-2mamba + +%description -n %{name}5-devel +This package contains libraries and header files for developing applications that use %{name}. + %debug_package %prep %setup -q %build -%cmake_kde5 -d build +%cmake_kf6 \ + -DQT_MAJOR_VERSION=6 + +%cmake_build + +%cmake -d build5 + %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall -C build +%makeinstall -C build5 -%find_lang %{name}5_qt --with-qt --with-html --all-name || touch %{name}5_qt.lang +%cmake_install + +%find_lang %{name} --with-qt --with-html --all-name || touch %{name}.lang %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -69,32 +112,66 @@ This package contains libraries and header files for developing applications tha %post -p /sbin/ldconfig %postun -p /sbin/ldconfig -%files -f %{name}5_qt.lang +%post -n %{name}5 -p /sbin/ldconfig +%postun -n %{name}5 -p /sbin/ldconfig + +%files -f %{name}.lang %defattr(-,root,root) -%{_kde5_libdir}/libKF5Cddb.so.* -%{_libdir}/qt5/plugins/plasma/kcms/systemsettings_qwidgets/kcm_cddb.so +%{_libdir}/libKCddb6.so.* +%{_libdir}/qt6/plugins/plasma/kcms/systemsettings_qwidgets/kcm_cddb.so %{_datadir}/applications/kcm_cddb.desktop %{_datadir}/config.kcfg/libkcddb5.kcfg -%{_datadir}/qlogging-categories5/libkcddb.categories +%{_datadir}/qlogging-categories6/libkcddb.categories %doc LICENSES %files devel %defattr(-,root,root) +%dir %{_includedir}/KCddb6 +%dir %{_includedir}/KCddb6/KCDDB +%{_includedir}/KCddb6/KCDDB/* +%dir %{_includedir}/KCddb6/kcddb +%{_includedir}/KCddb6/kcddb/* +%{_includedir}/KCddb6/kcddb_version.h +%{_libdir}/libKCddb6.so +%dir %{_libdir}/cmake/KCddb6 +%{_libdir}/cmake/KCddb6/KCddb6*.cmake +%{_qt6_archdatadir}/mkspecs/modules/qt_KCddb.pri + +%files -n %{name}5 +%defattr(-,root,root) +%{_kde5_libdir}/libKF5Cddb.so.* +%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_cddb.so +%doc LICENSES + +%files -n %{name}5-devel +%defattr(-,root,root) +%dir %{_includedir}/KCddb5 +%{_includedir}/KCddb5/* %dir %{_kde5_includedir}/KCddb %{_kde5_includedir}/KCddb/* -%dir %{_includedir}/KCddb5 -%dir %{_includedir}/KCddb5/KCDDB -%{_includedir}/KCddb5/KCDDB/* -%dir %{_includedir}/KCddb5/kcddb -%{_includedir}/KCddb5/kcddb/* -%{_includedir}/KCddb5/kcddb_version.h -%dir %{_kde5_libdir}/cmake/KF5Cddb -%{_kde5_libdir}/cmake/KF5Cddb/KF5Cddb*.cmake %{_kde5_libdir}/libKF5Cddb.so %{_kde5_mkspecsdir}/qt_KCddb.pri -#%doc TODO +%dir %{_kde5_libdir}/cmake/KF5Cddb +%{_kde5_libdir}/cmake/KF5Cddb/KF5Cddb*.cmake +%{_kde5_mkspecsdir}/qt_KCddb.pri +%{_datadir}/qlogging-categories5/libkcddb.categories %changelog +* Tue Mar 26 2024 Silvan Calarco 24.02.1-2mamba +- fixed name of libkcddb5 subpackages + +* Sun Mar 24 2024 Automatic Build System 24.02.1-1mamba +- automatic version update by autodist + +* Wed Mar 13 2024 Silvan Calarco 24.02.0-3mamba +- rebuilt with qt5 legacy subpackages + +* Mon Mar 11 2024 Silvan Calarco 24.02.0-2mamba +- rebuilt with qt6 + +* Sat Mar 02 2024 Automatic Build System 24.02.0-1mamba +- automatic version update by autodist + * Fri Feb 16 2024 Automatic Build System 23.08.5-1mamba - automatic version update by autodist