]>
Commit | Line | Data |
---|---|---|
b9474a8b | 1 | %define kdeframever 5.24 |
a19d354f AM |
2 | %define qtver 5.3.2 |
3 | %define kfname kimageformats | |
d6d9b479 WF |
4 | |
5 | Summary: Image format plugins for Qt | |
a19d354f | 6 | Name: kf5-%{kfname} |
b9474a8b | 7 | Version: 5.24.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 |
b9474a8b | 12 | # Source0-md5: e5a0b82a04e5fa2593b6c14c45494fd6 |
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 |
d6d9b479 WF |
23 | BuildRequires: kf5-extra-cmake-modules >= 1.0.0 |
24 | BuildRequires: libjpeg-devel | |
a19d354f | 25 | BuildRequires: qt5-linguist >= %{qtver} |
d6d9b479 | 26 | BuildRequires: rpmbuild(macros) >= 1.164 |
38381efe ER |
27 | BuildRequires: tar >= 1:1.22 |
28 | BuildRequires: xz | |
aaa7464a | 29 | Requires: kf5-dirs |
d6d9b479 WF |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %define qt5dir %{_libdir}/qt5 | |
33 | ||
34 | %description | |
35 | This framework provides additional image format plugins for QtGui. As | |
36 | such it is not required for the compilation of any other software, but | |
37 | may be a runtime requirement for Qt-based software to support certain | |
38 | image formats. | |
39 | ||
40 | The following image formats have read-only support: | |
41 | ||
42 | - DirectDraw Surface (dds) | |
43 | - Gimp (xcf) | |
44 | - OpenEXR (exr) | |
45 | - Photoshop documents (psd) | |
46 | - Sun Raster (ras) | |
47 | ||
48 | The following image formats have read and write support: | |
49 | ||
50 | - Encapsulated PostScript (eps) | |
51 | - JPEG-2000 (jp2) | |
52 | - Personal Computer Exchange (pcx) | |
53 | - SGI images (rgb, rgba, sgi, bw) | |
54 | - Softimage PIC (pic) | |
55 | - Targa (tga): supports more formats than Qt's version | |
56 | - XView (xv) | |
57 | ||
58 | %prep | |
a19d354f | 59 | %setup -q -n %{kfname}-%{version} |
d6d9b479 WF |
60 | |
61 | %build | |
62 | install -d build | |
63 | cd build | |
64 | %cmake \ | |
a19d354f | 65 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
d6d9b479 WF |
66 | ../ |
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} -C build/ install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
80 | %doc README.md | |
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 | |
92 | %dir %{_datadir}/kservices5/qimageioplugins | |
93 | %{_datadir}/kservices5/qimageioplugins/dds.desktop | |
94 | %{_datadir}/kservices5/qimageioplugins/eps.desktop | |
95 | %{_datadir}/kservices5/qimageioplugins/exr.desktop | |
96 | %{_datadir}/kservices5/qimageioplugins/jp2.desktop | |
2dd63253 WF |
97 | %{_datadir}/kservices5/qimageioplugins/kra.desktop |
98 | %{_datadir}/kservices5/qimageioplugins/ora.desktop | |
d6d9b479 WF |
99 | %{_datadir}/kservices5/qimageioplugins/pcx.desktop |
100 | %{_datadir}/kservices5/qimageioplugins/pic.desktop | |
101 | %{_datadir}/kservices5/qimageioplugins/psd.desktop | |
102 | %{_datadir}/kservices5/qimageioplugins/ras.desktop | |
103 | %{_datadir}/kservices5/qimageioplugins/rgb.desktop | |
104 | %{_datadir}/kservices5/qimageioplugins/tga.desktop | |
105 | %{_datadir}/kservices5/qimageioplugins/xcf.desktop |