]>
Commit | Line | Data |
---|---|---|
cd9089f3 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
5436d0da | 4 | %define kdeframever 5.93 |
add1a0e5 | 5 | %define qtver 5.9.0 |
a19d354f | 6 | %define kfname kimageformats |
d6d9b479 WF |
7 | |
8 | Summary: Image format plugins for Qt | |
a19d354f | 9 | Name: kf5-%{kfname} |
5436d0da | 10 | Version: 5.93.0 |
d022ae59 | 11 | Release: 2 |
d6d9b479 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
6a9b5688 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
5436d0da | 15 | # Source0-md5: 3c588a58f2cb3a42dc74f6dc977c0ccc |
d6d9b479 | 16 | URL: http://www.kde.org/ |
1b4d291f | 17 | BuildRequires: OpenEXR-devel |
a19d354f AM |
18 | BuildRequires: Qt5Core-devel >= %{qtver} |
19 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
20 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
21 | BuildRequires: Qt5PrintSupport-devel >= %{qtver} | |
22 | BuildRequires: Qt5Test-devel >= %{qtver} | |
23 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
24 | BuildRequires: Qt5X11Extras-devel >= %{qtver} | |
d6d9b479 | 25 | BuildRequires: cmake >= 2.8.12 |
084aeeca | 26 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
4e66c5f7 | 27 | BuildRequires: libavif-devel >= 0.8.2 |
d6d9b479 | 28 | BuildRequires: libjpeg-devel |
d022ae59 | 29 | BuildRequires: libjxl-devel |
4bfdce87 | 30 | BuildRequires: ninja |
a19d354f | 31 | BuildRequires: qt5-linguist >= %{qtver} |
d6d9b479 | 32 | BuildRequires: rpmbuild(macros) >= 1.164 |
38381efe ER |
33 | BuildRequires: tar >= 1:1.22 |
34 | BuildRequires: xz | |
aaa7464a | 35 | Requires: kf5-dirs |
d6d9b479 WF |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %define qt5dir %{_libdir}/qt5 | |
39 | ||
40 | %description | |
41 | This framework provides additional image format plugins for QtGui. As | |
42 | such it is not required for the compilation of any other software, but | |
43 | may be a runtime requirement for Qt-based software to support certain | |
44 | image formats. | |
45 | ||
46 | The following image formats have read-only support: | |
47 | ||
48 | - DirectDraw Surface (dds) | |
49 | - Gimp (xcf) | |
50 | - OpenEXR (exr) | |
51 | - Photoshop documents (psd) | |
52 | - Sun Raster (ras) | |
53 | ||
54 | The following image formats have read and write support: | |
55 | ||
56 | - Encapsulated PostScript (eps) | |
57 | - JPEG-2000 (jp2) | |
58 | - Personal Computer Exchange (pcx) | |
59 | - SGI images (rgb, rgba, sgi, bw) | |
60 | - Softimage PIC (pic) | |
61 | - Targa (tga): supports more formats than Qt's version | |
62 | - XView (xv) | |
63 | ||
64 | %prep | |
a19d354f | 65 | %setup -q -n %{kfname}-%{version} |
d6d9b479 WF |
66 | |
67 | %build | |
68 | install -d build | |
69 | cd build | |
4bfdce87 | 70 | %cmake -G Ninja \ |
cd9089f3 | 71 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
a19d354f | 72 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
d6d9b479 | 73 | ../ |
4bfdce87 | 74 | %ninja_build |
d6d9b479 | 75 | |
cd9089f3 WF |
76 | %if %{with tests} |
77 | ctest | |
78 | %endif | |
79 | ||
80 | ||
d6d9b479 WF |
81 | %install |
82 | rm -rf $RPM_BUILD_ROOT | |
4bfdce87 | 83 | %ninja_install -C build |
d6d9b479 WF |
84 | |
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc README.md | |
889b23b5 | 91 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_avif.so |
90aa5a37 | 92 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_hdr.so |
d6d9b479 WF |
93 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_eps.so |
94 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_exr.so | |
d022ae59 | 95 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_jxl.so |
2dd63253 WF |
96 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_kra.so |
97 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_ora.so | |
d6d9b479 WF |
98 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_pcx.so |
99 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_pic.so | |
100 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_psd.so | |
101 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_ras.so | |
102 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_rgb.so | |
103 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_tga.so | |
104 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_xcf.so | |
d4721fb0 | 105 | %attr(755,root,root) %{_libdir}/qt5/plugins/imageformats/kimg_ani.so |
d6d9b479 | 106 | %dir %{_datadir}/kservices5/qimageioplugins |
d4721fb0 | 107 | %{_datadir}/kservices5/qimageioplugins/ani.desktop |
889b23b5 | 108 | %{_datadir}/kservices5/qimageioplugins/avif.desktop |
90aa5a37 | 109 | %{_datadir}/kservices5/qimageioplugins/hdr.desktop |
d6d9b479 WF |
110 | %{_datadir}/kservices5/qimageioplugins/dds.desktop |
111 | %{_datadir}/kservices5/qimageioplugins/eps.desktop | |
112 | %{_datadir}/kservices5/qimageioplugins/exr.desktop | |
113 | %{_datadir}/kservices5/qimageioplugins/jp2.desktop | |
d022ae59 | 114 | %{_datadir}/kservices5/qimageioplugins/jxl.desktop |
2dd63253 WF |
115 | %{_datadir}/kservices5/qimageioplugins/kra.desktop |
116 | %{_datadir}/kservices5/qimageioplugins/ora.desktop | |
d6d9b479 WF |
117 | %{_datadir}/kservices5/qimageioplugins/pcx.desktop |
118 | %{_datadir}/kservices5/qimageioplugins/pic.desktop | |
119 | %{_datadir}/kservices5/qimageioplugins/psd.desktop | |
120 | %{_datadir}/kservices5/qimageioplugins/ras.desktop | |
121 | %{_datadir}/kservices5/qimageioplugins/rgb.desktop | |
122 | %{_datadir}/kservices5/qimageioplugins/tga.desktop | |
123 | %{_datadir}/kservices5/qimageioplugins/xcf.desktop |