diff --git a/kf5-kimageformats.spec b/kf5-kimageformats.spec new file mode 100644 index 0000000..736c73f --- /dev/null +++ b/kf5-kimageformats.spec @@ -0,0 +1,72 @@ +%undefine __cmake_in_source_build +%global framework kimageformats + +Name: kf5-%{framework} +Version: 5.97.0 +Release: 1 +Summary: KDE Frameworks 5 Tier 1 addon with additional image plugins for QtGui + +License: LGPLv2+ +URL: https://invent.kde.org/frameworks/%{framework} + +%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}/%{framework}-%{version}.tar.xz + +%global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$ + +BuildRequires: extra-cmake-modules >= %{majmin} +# No jasper & openjpeg on openEuler +BuildRequires: openjpeg2-devel +BuildRequires: kf5-rpm-macros >= %{majmin} + +# We don't support this yet +#BuildRequires: pkgconfig(libavif) +BuildRequires: pkgconfig(OpenEXR) +BuildRequires: cmake(KF5Archive) +BuildRequires: pkgconfig(zlib) +BuildRequires: qt5-qtbase-devel + +Requires: kf5-filesystem >= %{majmin} + +%description +This framework provides additional image format plugins for QtGui. As +such it is not required for the compilation of any other software, but +may be a runtime requirement for Qt-based software to support certain +image formats. + + +%prep +%autosetup -n %{framework}-%{version} + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. +popd +%make_build -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + + +%ldconfig_scriptlets + +%files +%doc README.md +%license LICENSES/*.txt +%{_kf5_qtplugindir}/imageformats/*.so +%dir %{_kf5_datadir}/kservices5/qimageioplugins/ +%{_kf5_datadir}/kservices5/qimageioplugins/*.desktop + + +%changelog +* Thu Jul 14 2022 misaka00251 - 5.97.0-1 +- Init package diff --git a/kf5-kimageformats.yaml b/kf5-kimageformats.yaml new file mode 100644 index 0000000..0c9de8e --- /dev/null +++ b/kf5-kimageformats.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: KDE/kimageformats +tag_prefix: "^v" +separator: "." diff --git a/kimageformats-5.97.0.tar.xz b/kimageformats-5.97.0.tar.xz new file mode 100644 index 0000000..8d906c9 Binary files /dev/null and b/kimageformats-5.97.0.tar.xz differ