]>
Commit | Line | Data |
---|---|---|
cd9089f3 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
0534ebf3 | 4 | %define kdeframever 5.103 |
fccc973e | 5 | %define qtver 5.15.2 |
a19d354f | 6 | %define kfname kimageformats |
d6d9b479 WF |
7 | |
8 | Summary: Image format plugins for Qt | |
ea69746b | 9 | Summary(pl.UTF-8): Wtyczki formatów obrazów dla Qt |
a19d354f | 10 | Name: kf5-%{kfname} |
0534ebf3 | 11 | Version: 5.103.0 |
be04f446 | 12 | Release: 3 |
d6d9b479 WF |
13 | License: LGPL v2.1+ |
14 | Group: X11/Libraries | |
6a9b5688 | 15 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
0534ebf3 | 16 | # Source0-md5: d3b193a9d8c6f93186cf7ac8c888a3db |
ea69746b | 17 | URL: https://kde.org/ |
1b4d291f | 18 | BuildRequires: OpenEXR-devel |
a19d354f AM |
19 | BuildRequires: Qt5Core-devel >= %{qtver} |
20 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
21 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
22 | BuildRequires: Qt5PrintSupport-devel >= %{qtver} | |
23 | BuildRequires: Qt5Test-devel >= %{qtver} | |
24 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
25 | BuildRequires: Qt5X11Extras-devel >= %{qtver} | |
d6d9b479 | 26 | BuildRequires: cmake >= 2.8.12 |
084aeeca | 27 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
4e66c5f7 | 28 | BuildRequires: libavif-devel >= 0.8.2 |
d6d9b479 | 29 | BuildRequires: libjpeg-devel |
d022ae59 | 30 | BuildRequires: libjxl-devel |
4bfdce87 | 31 | BuildRequires: ninja |
a19d354f | 32 | BuildRequires: qt5-linguist >= %{qtver} |
d6d9b479 | 33 | BuildRequires: rpmbuild(macros) >= 1.164 |
38381efe ER |
34 | BuildRequires: tar >= 1:1.22 |
35 | BuildRequires: xz | |
aaa7464a | 36 | Requires: kf5-dirs |
d6d9b479 WF |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %define qt5dir %{_libdir}/qt5 | |
40 | ||
41 | %description | |
42 | This framework provides additional image format plugins for QtGui. As | |
43 | such it is not required for the compilation of any other software, but | |
44 | may be a runtime requirement for Qt-based software to support certain | |
45 | image formats. | |
46 | ||
47 | The following image formats have read-only support: | |
d6d9b479 WF |
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: | |
d6d9b479 WF |
55 | - Encapsulated PostScript (eps) |
56 | - JPEG-2000 (jp2) | |
57 | - Personal Computer Exchange (pcx) | |
58 | - SGI images (rgb, rgba, sgi, bw) | |
59 | - Softimage PIC (pic) | |
60 | - Targa (tga): supports more formats than Qt's version | |
61 | - XView (xv) | |
62 | ||
ea69746b JB |
63 | %description -l pl.UTF-8 |
64 | Ten szkielet zapewnia dodatkowe wtyczki formatów obrazów dla QtGui. | |
65 | Jako takie niest jest wymagany do budowania innego oprogramowania, ale | |
66 | może być zależnością wymaganą do obsługi pewnych formatów przez | |
67 | programy oparte na Qt. | |
68 | ||
69 | Następujące formaty obrazów mają obsługę wyłącznie odczytu: | |
70 | - DirectDraw Surface (dds) | |
71 | - Gimp (xcf) | |
72 | - OpenEXR (exr) | |
73 | - dokumenty Photoshopa (psd) | |
74 | - Sun Raster (ras) | |
75 | ||
76 | Następujące formaty obrazów mają obsługę odczytu i zapisu: | |
77 | - Encapsulated PostScript (eps) | |
78 | - JPEG-2000 (jp2) | |
79 | - Personal Computer Exchange (pcx) | |
80 | - obrazy SGI (rgb, rgba, sgi, bw) | |
81 | - Softimage PIC (pic) | |
82 | - Targa (tga): więcej formatów, niż jest obsługiwanych w wersji Qt | |
83 | - XView (xv) | |
84 | ||
d6d9b479 | 85 | %prep |
a19d354f | 86 | %setup -q -n %{kfname}-%{version} |
d6d9b479 WF |
87 | |
88 | %build | |
89 | install -d build | |
90 | cd build | |
4bfdce87 | 91 | %cmake -G Ninja \ |
cd9089f3 | 92 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
a19d354f | 93 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
d6d9b479 | 94 | ../ |
4bfdce87 | 95 | %ninja_build |
d6d9b479 | 96 | |
cd9089f3 WF |
97 | %if %{with tests} |
98 | ctest | |
99 | %endif | |
100 | ||
d6d9b479 WF |
101 | %install |
102 | rm -rf $RPM_BUILD_ROOT | |
4bfdce87 | 103 | %ninja_install -C build |
d6d9b479 WF |
104 | |
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %files | |
109 | %defattr(644,root,root,755) | |
110 | %doc README.md | |
ea69746b JB |
111 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_ani.so |
112 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_avif.so | |
113 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_hdr.so | |
114 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_eps.so | |
115 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_exr.so | |
116 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_jxl.so | |
117 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_kra.so | |
118 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_ora.so | |
119 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_pcx.so | |
120 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_pic.so | |
121 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_psd.so | |
122 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_ras.so | |
123 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_raw.so | |
124 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_rgb.so | |
125 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_tga.so | |
126 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/kimg_xcf.so | |
d6d9b479 | 127 | %dir %{_datadir}/kservices5/qimageioplugins |
d4721fb0 | 128 | %{_datadir}/kservices5/qimageioplugins/ani.desktop |
889b23b5 | 129 | %{_datadir}/kservices5/qimageioplugins/avif.desktop |
90aa5a37 | 130 | %{_datadir}/kservices5/qimageioplugins/hdr.desktop |
d6d9b479 WF |
131 | %{_datadir}/kservices5/qimageioplugins/dds.desktop |
132 | %{_datadir}/kservices5/qimageioplugins/eps.desktop | |
133 | %{_datadir}/kservices5/qimageioplugins/exr.desktop | |
134 | %{_datadir}/kservices5/qimageioplugins/jp2.desktop | |
d022ae59 | 135 | %{_datadir}/kservices5/qimageioplugins/jxl.desktop |
2dd63253 WF |
136 | %{_datadir}/kservices5/qimageioplugins/kra.desktop |
137 | %{_datadir}/kservices5/qimageioplugins/ora.desktop | |
d6d9b479 WF |
138 | %{_datadir}/kservices5/qimageioplugins/pcx.desktop |
139 | %{_datadir}/kservices5/qimageioplugins/pic.desktop | |
140 | %{_datadir}/kservices5/qimageioplugins/psd.desktop | |
141 | %{_datadir}/kservices5/qimageioplugins/ras.desktop | |
24017974 | 142 | %{_datadir}/kservices5/qimageioplugins/raw.desktop |
d6d9b479 WF |
143 | %{_datadir}/kservices5/qimageioplugins/rgb.desktop |
144 | %{_datadir}/kservices5/qimageioplugins/tga.desktop | |
145 | %{_datadir}/kservices5/qimageioplugins/xcf.desktop |