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