Init package

This commit is contained in:
misaka00251 2022-09-07 23:20:30 +08:00
parent 05de4a5406
commit 482a51f05d
No known key found for this signature in database
GPG Key ID: 4AA100DC964EDE26
3 changed files with 76 additions and 0 deletions

72
kf5-kimageformats.spec Normal file
View File

@ -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 <misaka00251@misakanet.cn> - 5.97.0-1
- Init package

4
kf5-kimageformats.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: KDE/kimageformats
tag_prefix: "^v"
separator: "."

BIN
kimageformats-5.97.0.tar.xz Normal file

Binary file not shown.