kf5-kimageformats/kf5-kimageformats.spec

81 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

2022-09-07 23:20:30 +08:00
%undefine __cmake_in_source_build
%global framework kimageformats
Name: kf5-%{framework}
2024-01-08 11:05:11 +08:00
Version: 5.113.0
2022-09-07 23:20:30 +08:00
Release: 1
Summary: KDE Frameworks 5 Tier 1 addon with additional image plugins for QtGui
License: LGPLv2+
URL: https://invent.kde.org/frameworks/%{framework}
2023-08-03 14:58:24 +08:00
%global majmin %majmin_ver_kf5
%global stable %stable_kf5
2022-09-07 23:20:30 +08:00
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}
2023-08-03 14:58:24 +08:00
BuildRequires: LibRaw-devel
2022-09-07 23:20:30 +08:00
2024-01-08 11:05:11 +08:00
#BuildRequires: pkgconfig(libjxl)
2022-09-07 23:20:30 +08:00
#BuildRequires: pkgconfig(libavif)
2024-01-08 11:05:11 +08:00
#BuildRequires: pkgconfig(libheif)
BuildRequires: cmake(OpenEXR)
BuildRequires: cmake(Imath)
2022-09-07 23:20:30 +08:00
BuildRequires: cmake(KF5Archive)
2024-01-08 11:05:11 +08:00
BuildRequires: zlib-devel
2022-09-07 23:20:30 +08:00
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
2024-01-08 11:05:11 +08:00
* Mon Jan 08 2024 peijiankang <peijiankang@kylinos.cn> - 5.113.0-1
- Update version to 5.113.0
2023-08-03 14:58:24 +08:00
* Thu Aug 03 2023 wangqia <wangqia@uniontech.com> - 5.108.0-1
- Update to upstream version 5.108.0
2023-04-28 11:16:04 +08:00
* Fri Apr 28 2023 peijiankang <peijiankang@kylinos.cn> - 5.100.0-1
- Update version to 5.100.0
2022-09-07 23:20:30 +08:00
* Thu Jul 14 2022 misaka00251 <misaka00251@misakanet.cn> - 5.97.0-1
- Init package