diff --git a/qt5-qtimageformats.spec b/qt5-qtimageformats.spec index a93cdca8dc2e5611b26df20659bdef7a537fc4a0..58a840958014af3b688733622b9c4649c5042b6b 100644 --- a/qt5-qtimageformats.spec +++ b/qt5-qtimageformats.spec @@ -1,27 +1,45 @@ -%global __provides_exclude_from ^%{_qt5_plugindir}/.*\\.so$ +%global qt_module qtimageformats -Name: qt5-qtimageformats -Version: 5.15.2 +Name: qt5-%{qt_module} +Version: 5.15.10 Release: 1 -Summary: Qtimageformats component of qt5 +Summary: Qt5 - QtImageFormats component + License: LGPLv2 with exceptions or GPLv3 with exceptions Url: http://www.qt.io %global majmin %(echo %{version} | cut -d. -f1-2) -Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/qtimageformats-everywhere-src-%{version}.tar.xz +Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-opensource-src-%{version}.tar.xz BuildRequires: make -BuildRequires: qt5-qtbase-devel >= %{version} libmng-devel libtiff-devel libwebp-devel -%{?_qt5:Requires: %{_qt5} = %{_qt5_version}} +BuildRequires: qt5-qtbase-devel >= %{version} BuildRequires: qt5-qtbase-private-devel -#BuildRequires: jasper-devel +%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} +BuildRequires: libmng-devel +BuildRequires: libtiff-devel +#BuildRequires: jasper-devel +BuildRequires: libwebp-devel >= 0.4.4 + +# prior -devel subpkg contained only runtime cmake bits Obsoletes: qt5-qtimageformats-devel < 5.4.0 Provides: qt5-qtimageformats-devel = %{version}-%{release} +# filter plugin provides +%global __provides_exclude_from ^%{_qt5_plugindir}/.*\\.so$ + %description -The core Qt Gui library by default supports reading and writing image files of the most common file formats: -PNG, JPEG, BMP, GIF and a few more, ref. Reading and Writing Image Files. The Qt Image Formats add-on module -provides optional support for other image file formats. +The core Qt Gui library by default supports reading and writing image +files of the most common file formats: PNG, JPEG, BMP, GIF and a few more, +ref. Reading and Writing Image Files. The Qt Image Formats add-on module +provides optional support for other image file formats, including: +MNG, TGA, TIFF, WBMP. + +%package examples +Summary: Programming examples for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description examples +%{summary}. + %prep %autosetup -n qtimageformats-everywhere-src-%{version} -p1 @@ -35,11 +53,21 @@ rm -rv src/3rdparty make install INSTALL_ROOT=%{buildroot} %files -%license LICENSE.GPL* LICENSE.LGPL* -%{_qt5_plugindir}/*/*.so +%license LICENSE.GPL* +%license LICENSE.LGPL* +%{_qt5_plugindir}/imageformats/libqmng.so +%{_qt5_plugindir}/imageformats/libqtga.so +%{_qt5_plugindir}/imageformats/libqtiff.so +%{_qt5_plugindir}/imageformats/libqwbmp.so +%{_qt5_plugindir}/imageformats/libqicns.so +#%{_qt5_plugindir}/imageformats/libqjp2.so +%{_qt5_plugindir}/imageformats/libqwebp.so %{_qt5_libdir}/cmake/Qt5Gui/Qt5Gui_*Plugin.cmake %changelog +* Mon Aug 21 2023 huayadong - 5.15.10-1 +- update to version 5.15.10-1 + * Wed Oct 13 2021 peijiankang - 5.15.2-1 - update to upstream version 5.15.2 diff --git a/qtimageformats-everywhere-opensource-src-5.15.10.tar.xz b/qtimageformats-everywhere-opensource-src-5.15.10.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..51946dcbb57d7d98b458417d086f2cfb6cb1bee2 Binary files /dev/null and b/qtimageformats-everywhere-opensource-src-5.15.10.tar.xz differ diff --git a/qtimageformats-everywhere-src-5.15.2.tar.xz b/qtimageformats-everywhere-src-5.15.2.tar.xz deleted file mode 100644 index 10cc3b4ada553050b3f369d267ef0a5924baa3f7..0000000000000000000000000000000000000000 Binary files a/qtimageformats-everywhere-src-5.15.2.tar.xz and /dev/null differ