1 |
%define branch 0 |
2 |
%{?_branch: %{expand: %%global branch 1}} |
3 |
|
4 |
%if %branch |
5 |
%define kde_snapshot svn1198704 |
6 |
%endif |
7 |
|
8 |
Name: kdegraphics4 |
9 |
Summary: K Desktop Environment |
10 |
Version: 4.6.0 |
11 |
%if %branch |
12 |
Release: %mkrel -c %kde_snapshot 1 |
13 |
%else |
14 |
Release: %mkrel 1 |
15 |
%endif |
16 |
Epoch: 2 |
17 |
Group: Graphical desktop/KDE |
18 |
License: GPL |
19 |
URL: http://www.kde.org |
20 |
%if %branch |
21 |
Source: ftp://ftp.kde.org/pub/kde/unstable/%version/src/kdegraphics-%version%kde_snapshot.tar.bz2 |
22 |
%else |
23 |
Source: ftp://ftp.kde.org/pub/kde/stable/%version/src/kdegraphics-%version.tar.bz2 |
24 |
%endif |
25 |
BuildRequires: kdelibs4-devel >= 2:4.5.61 |
26 |
BuildRequires: libpoppler-qt4-devel >= 0.8.0 |
27 |
BuildRequires: libgomp-devel |
28 |
BuildRequires: libsane-devel |
29 |
BuildRequires: gphoto2-devel |
30 |
BuildRequires: chmlib-devel |
31 |
BuildRequires: libgs-devel |
32 |
BuildRequires: libexiv-devel |
33 |
BuildRequires: qimageblitz-devel |
34 |
BuildRequires: lcms-devel |
35 |
BuildRequires: qca2-devel |
36 |
BuildRequires: shared-desktop-ontologies-devel |
37 |
BuildRequires: libspectre-devel |
38 |
BuildRequires: djvulibre-devel |
39 |
BuildRequires: ebook-tools-devel |
40 |
Requires: %name-core |
41 |
Suggests: ksnapshot |
42 |
Suggests: kcolorchooser |
43 |
Suggests: okular |
44 |
Suggests: gwenview |
45 |
Suggests: kruler |
46 |
Suggests: kolourpaint |
47 |
Suggests: kgamma |
48 |
|
49 |
%description |
50 |
Graphical tools for the K Desktop Environment. |
51 |
kdegraphics is a collection of graphic oriented applications |
52 |
|
53 |
%files |
54 |
%defattr(-,root,root,-) |
55 |
%doc README |
56 |
|
57 |
#---------------------------------------------------------------------- |
58 |
|
59 |
%package core |
60 |
Summary: Core files for kdegraphics |
61 |
Group: Graphical desktop/KDE |
62 |
Requires: oxygen-icon-theme |
63 |
Requires: libgphoto-hotplug |
64 |
|
65 |
%description core |
66 |
Common files for kdegraphics |
67 |
|
68 |
%files core |
69 |
%defattr(-,root,root) |
70 |
%_kde_libdir/kde4/gsthumbnail.so |
71 |
%_kde_libdir/kde4/svgpart.so |
72 |
%_kde_appsdir/svgpart |
73 |
%_kde_datadir/kde4/services/svgpart.desktop |
74 |
%_kde_libdir/strigi/* |
75 |
%_kde_libdir/kde4/ksaneplugin.so |
76 |
%_kde_datadir/kde4/services/ksane_scan_service.desktop |
77 |
%_kde_datadir/kde4/services/gsthumbnail.desktop |
78 |
%_kde_iconsdir/hicolor/16x16/actions/black-white.png |
79 |
%_kde_iconsdir/hicolor/16x16/actions/color.png |
80 |
%_kde_iconsdir/hicolor/16x16/actions/gray-scale.png |
81 |
|
82 |
#------------------------------------------------ |
83 |
|
84 |
%define okularcore_major 1 |
85 |
%define libokularcore %mklibname okularcore %okularcore_major |
86 |
|
87 |
%package -n %libokularcore |
88 |
Summary: Runtime library for okular |
89 |
Group: System/Libraries |
90 |
|
91 |
%description -n %libokularcore |
92 |
Runtime library for Okular. |
93 |
|
94 |
%files -n %libokularcore |
95 |
%defattr(-,root,root) |
96 |
%_kde_libdir/libokularcore.so.%{okularcore_major}* |
97 |
|
98 |
#----------------------------------------------------------------------------- |
99 |
|
100 |
%package -n kgamma |
101 |
Summary: kgamma color profiling |
102 |
Group: Graphical desktop/KDE |
103 |
Requires: %name-core = %epoch:%version |
104 |
Provides: kde4-kgamma = %epoch:%version |
105 |
|
106 |
%description -n kgamma |
107 |
kgamma color profiling |
108 |
|
109 |
%files -n kgamma |
110 |
%defattr(-,root,root) |
111 |
%_kde_datadir/kde4/services/kgamma* |
112 |
%_kde_appsdir/kgamma |
113 |
%_kde_libdir/kde4/*_kgamma.* |
114 |
%_kde_docdir/HTML/*/kcontrol/kgamma |
115 |
#----------------------------------------------------------------------------- |
116 |
|
117 |
%package -n kamera |
118 |
Summary: kamera ioslave |
119 |
Group: Graphical desktop/KDE |
120 |
Requires: %name-core = %epoch:%version |
121 |
Provides: kde4-kamera = %epoch:%version |
122 |
|
123 |
%description -n kamera |
124 |
kamera ioslave. |
125 |
|
126 |
%files -n kamera |
127 |
%defattr(-,root,root) |
128 |
%doc %_kde_docdir/HTML/en/kcontrol/kamera |
129 |
%_kde_libdir/kde4/*_kamera.* |
130 |
%_kde_datadir/kde4/services/camera* |
131 |
%_kde_datadir/kde4/services/kamera* |
132 |
%_kde_appsdir/solid/actions/solid_camera.desktop |
133 |
|
134 |
#----------------------------------------------------------------------------- |
135 |
|
136 |
%package -n okular |
137 |
Summary: A universal document viewer |
138 |
Group: Graphical desktop/KDE |
139 |
|
140 |
Requires: %name-core = %epoch:%version |
141 |
|
142 |
%description -n okular |
143 |
Okular is a universal document viewer based on KPDF for KDE 4. |
144 |
|
145 |
Okular combines the excellent functionalities of KPDF with the versatility |
146 |
of supporting different kind of documents, like PDF, Postscript, DjVu, CHM, |
147 |
and others. |
148 |
|
149 |
The document format handlers page has a chart describing in more detail |
150 |
the supported formats and the features supported in each of them. |
151 |
|
152 |
%files -n okular |
153 |
%defattr(-,root,root) |
154 |
%_kde_bindir/okular |
155 |
%_kde_bindir/xf86gammacfg |
156 |
%_kde_libdir/kde4/okularGenerator_* |
157 |
%_kde_libdir/kde4/okularpart.so |
158 |
%_kde_libdir/kde4/kio_msits.so |
159 |
%_kde_libdir/kde4/mobithumbnail.so |
160 |
%_kde_libdir/kde4/rawthumbnail.so |
161 |
%_kde_datadir/applications/kde4/okular* |
162 |
%_kde_appsdir/okular |
163 |
%_kde_datadir/config.kcfg/okular.kcfg |
164 |
%_kde_datadir/config.kcfg/gssettings.kcfg |
165 |
%_kde_datadir/kde4/services/libokularGenerator_* |
166 |
%_kde_datadir/kde4/services/okular* |
167 |
%_kde_datadir/kde4/services/msits* |
168 |
%_kde_datadir/kde4/services/mobithumbnail.desktop |
169 |
%_kde_datadir/kde4/services/rawthumbnail.desktop |
170 |
%_kde_datadir/kde4/servicetypes/okularGenerator.desktop |
171 |
%_kde_docdir/HTML/en/okular |
172 |
%_kde_iconsdir/*/*/*/okular.* |
173 |
|
174 |
#------------------------------------------------ |
175 |
|
176 |
%package -n libkdcraw-common |
177 |
Summary: Non-library files for the kdcraw library |
178 |
Group: System/Libraries |
179 |
|
180 |
%description -n libkdcraw-common |
181 |
Common files for the kdcraw library |
182 |
|
183 |
%files -n libkdcraw-common |
184 |
%defattr(-,root,root) |
185 |
%{_kde_appsdir}/libkdcraw |
186 |
%{_kde_iconsdir}/hicolor/*/apps/kdcraw.png |
187 |
|
188 |
#------------------------------------------------ |
189 |
|
190 |
%define kdcraw_major 9 |
191 |
%define libkdcraw %mklibname kdcraw %kdcraw_major |
192 |
|
193 |
%package -n %{libkdcraw} |
194 |
Summary: %{name} library |
195 |
Group: System/Libraries |
196 |
Requires: libkdcraw-common |
197 |
|
198 |
%description -n %{libkdcraw} |
199 |
%{name} library. |
200 |
|
201 |
%files -n %{libkdcraw} |
202 |
%defattr(0644, root, root, 0755) |
203 |
%{_kde_libdir}/libkdcraw.so.%{kdcraw_major}* |
204 |
|
205 |
#------------------------------------------------ |
206 |
|
207 |
%package -n kipi-common |
208 |
Summary: Non-library files for the kipi library |
209 |
Group: System/Libraries |
210 |
Obsoletes: libkipi < 1:0.3 |
211 |
Obsoletes: kde4-libkipi < 1:0.3 |
212 |
|
213 |
%description -n kipi-common |
214 |
Common files for the kipi library. |
215 |
|
216 |
%files -n kipi-common |
217 |
%defattr(-,root,root) |
218 |
%{_kde_appsdir}/kipi |
219 |
%{_kde_iconsdir}/*/*/*/kipi.* |
220 |
%{_kde_servicetypes}/kipiplugin.desktop |
221 |
|
222 |
#------------------------------------------------ |
223 |
|
224 |
%define kipi_major 8 |
225 |
%define libkipi %mklibname kipi %kipi_major |
226 |
|
227 |
%package -n %{libkipi} |
228 |
Summary: %{name} library |
229 |
Group: System/Libraries |
230 |
Requires: kipi-common |
231 |
|
232 |
%description -n %{libkipi} |
233 |
%{name} library. |
234 |
|
235 |
%files -n %{libkipi} |
236 |
%defattr(0644, root, root, 0755) |
237 |
%{_kde_libdir}/libkipi.so.%{kipi_major}* |
238 |
|
239 |
#------------------------------------------------ |
240 |
|
241 |
%define kexiv2_major 9 |
242 |
%define libkexiv2 %mklibname kexiv2_ %kexiv2_major |
243 |
|
244 |
%package -n %{libkexiv2} |
245 |
Summary: %{name} library |
246 |
Group: System/Libraries |
247 |
|
248 |
%description -n %{libkexiv2} |
249 |
%{name} library. |
250 |
|
251 |
%files -n %{libkexiv2} |
252 |
%defattr(0644, root, root, 0755) |
253 |
%{_kde_libdir}/libkexiv2.so.%{kexiv2_major}* |
254 |
%{_kde_appsdir}/libkexiv2/data/topicset.iptc-subjectcode.xml |
255 |
|
256 |
#------------------------------------------------ |
257 |
|
258 |
%define gwenviewlib_major 4 |
259 |
%define libgwenviewlib %mklibname gwenviewlib %gwenviewlib_major |
260 |
|
261 |
%package -n %libgwenviewlib |
262 |
Summary: KDE 4 core library |
263 |
Group: System/Libraries |
264 |
|
265 |
%description -n %libgwenviewlib |
266 |
KDE 4 core library. |
267 |
|
268 |
%files -n %libgwenviewlib |
269 |
%defattr(-,root,root) |
270 |
%_kde_libdir/libgwenviewlib.so.%{gwenviewlib_major}* |
271 |
|
272 |
#------------------------------------------------ |
273 |
|
274 |
%define ksane_major 0 |
275 |
%define libksane %mklibname ksane %ksane_major |
276 |
|
277 |
%package -n %libksane |
278 |
Summary: A library for dealing with scanners |
279 |
Group: System/Libraries |
280 |
|
281 |
%description -n %libksane |
282 |
LibKSane is a KDE interface for SANE library to control flat scanners. |
283 |
|
284 |
%files -n %libksane |
285 |
%defattr(-,root,root) |
286 |
%_kde_libdir/libksane.so.%{ksane_major}* |
287 |
|
288 |
#----------------------------------------------------------------------------- |
289 |
|
290 |
%package -n gwenview |
291 |
Summary: Fast and easy to use image viewer for KDE |
292 |
Group: Graphical desktop/KDE |
293 |
Requires: %name-core = %epoch:%version |
294 |
Provides: kde4-gwenview = %epoch:%version |
295 |
|
296 |
%description -n gwenview |
297 |
Gwenview is a fast and easy to use image viewer/browser for KDE. |
298 |
All common image formats are supported, such as PNG(including transparency), |
299 |
JPEG(including EXIF tags and lossless transformations), GIF, XCF (Gimp |
300 |
image format), BMP, XPM and others. Standard features include slideshow, |
301 |
fullscreen view, image thumbnails, drag'n'drop, image zoom, full network |
302 |
transparency using the KIO framework, including basic file operations and |
303 |
browsing in compressed archives, non-blocking GUI with adjustable views. |
304 |
Gwenview also provides image and directory KParts components for use e.g. in |
305 |
Konqueror. Additional features, such as image renaming, comparing, |
306 |
converting, and batch processing, HTML gallery and others are provided by the |
307 |
KIPI image framework. |
308 |
|
309 |
%files -n gwenview |
310 |
%defattr(-,root,root) |
311 |
%_kde_bindir/gwenview |
312 |
%_kde_bindir/gwenview_importer |
313 |
%_kde_libdir/kde4/gvpart.so |
314 |
%_kde_appsdir/gvpart |
315 |
%_kde_appsdir/gwenview |
316 |
%_kde_datadir/kde4/services/gvpart.desktop |
317 |
%_kde_datadir/kde4/services/ServiceMenus/slideshow.desktop |
318 |
%_kde_datadir/applications/kde4/gwenview.desktop |
319 |
%_kde_appsdir/solid/actions/gwenview_importer.desktop |
320 |
%_kde_appsdir/solid/actions/gwenview_importer_camera.desktop |
321 |
%_kde_iconsdir/*/*/*/gwenview* |
322 |
%_kde_docdir/*/*/gwenview |
323 |
|
324 |
#----------------------------------------------------------------------------- |
325 |
|
326 |
%package -n kcolorchooser |
327 |
Summary: KDE Color Chooser |
328 |
Group: Graphical desktop/KDE |
329 |
Requires: %name-core = %epoch:%version |
330 |
Provides: kde4-kcolorchooser = %epoch:%version |
331 |
|
332 |
%description -n kcolorchooser |
333 |
KDE Color Chooser |
334 |
|
335 |
%files -n kcolorchooser |
336 |
%defattr(-,root,root) |
337 |
%_kde_bindir/kcolorchooser |
338 |
%_kde_datadir/applications/kde4/kcolorchooser.desktop |
339 |
%_kde_iconsdir/*/*/*/kcolorchooser* |
340 |
|
341 |
#----------------------------------------------------------------------------- |
342 |
|
343 |
%define kolourpaint_lgpl_major 4 |
344 |
%define libkolourpaint_lgpl %mklibname kolourpaint_lgpl %kolourpaint_lgpl_major |
345 |
|
346 |
%package -n %libkolourpaint_lgpl |
347 |
Summary: Runtime library for Kolourpaint |
348 |
Group: System/Libraries |
349 |
|
350 |
%description -n %libkolourpaint_lgpl |
351 |
Runtime library for Kolourpaint. |
352 |
|
353 |
%files -n %libkolourpaint_lgpl |
354 |
%defattr(-,root,root) |
355 |
%_kde_libdir/libkolourpaint_lgpl.so.%{kolourpaint_lgpl_major}* |
356 |
|
357 |
#----------------------------------------------------------------------------- |
358 |
|
359 |
%package -n kolourpaint |
360 |
Summary: A free, easy-to-use paint program for KDE |
361 |
Group: Graphical desktop/KDE |
362 |
Requires: %name-core = %epoch:%version |
363 |
Provides: kde4-kolourpaint = %epoch:%version |
364 |
|
365 |
%description -n kolourpaint |
366 |
KolourPaint is a free, easy-to-use paint program for KDE. |
367 |
|
368 |
It aims to be conceptually simple to understand; providing a level of |
369 |
functionality targeted towards the average user. It's designed for daily |
370 |
tasks like: |
371 |
|
372 |
* Painting - drawing diagrams and "finger painting" |
373 |
* Image Manipulation - editing screenshots and photos; applying effects |
374 |
* Icon Editing - drawing clipart and logos with transparency |
375 |
|
376 |
%files -n kolourpaint |
377 |
%defattr(-,root,root) |
378 |
%_kde_bindir/kolourpaint |
379 |
%_kde_datadir/applications/kde4/kolourpaint.desktop |
380 |
%_kde_appsdir/kolourpaint |
381 |
%_kde_iconsdir/hicolor/*/apps/kolourpaint.* |
382 |
%_kde_docdir/HTML/en/kolourpaint |
383 |
|
384 |
#----------------------------------------------------------------------------- |
385 |
|
386 |
%package -n kruler |
387 |
Summary: KDE Screen Ruler |
388 |
Group: Graphical desktop/KDE |
389 |
Requires: %name-core = %epoch:%version |
390 |
Provides: kde4-kruler = %epoch:%version |
391 |
|
392 |
%description -n kruler |
393 |
A screen ruler for the K Desktop Environment |
394 |
|
395 |
%files -n kruler |
396 |
%defattr(-,root,root) |
397 |
%_kde_bindir/kruler |
398 |
%_kde_datadir/applications/kde4/kruler.desktop |
399 |
%_kde_appsdir/kruler |
400 |
%_kde_iconsdir/*/*/*/kruler* |
401 |
%_kde_docdir/*/*/kruler |
402 |
|
403 |
#----------------------------------------------------------------------------- |
404 |
|
405 |
%package -n ksnapshot |
406 |
Summary: KDE Screenshot Utility |
407 |
Group: Graphical desktop/KDE |
408 |
Requires: %name-core = %epoch:%version |
409 |
Provides: kde4-ksnapshot = %epoch:%version |
410 |
|
411 |
%description -n ksnapshot |
412 |
KDE Screenshot Utility |
413 |
|
414 |
%files -n ksnapshot |
415 |
%defattr(-,root,root) |
416 |
%_kde_bindir/kbackgroundsnapshot |
417 |
%_kde_bindir/ksnapshot |
418 |
%_kde_datadir/applications/kde4/ksnapshot.desktop |
419 |
%_kde_iconsdir/*/*/*/ksnapshot* |
420 |
%_kde_docdir/*/*/ksnapshot |
421 |
|
422 |
#----------------------------------------------------------------------------- |
423 |
|
424 |
%package devel |
425 |
Summary: Devel stuff for kdegraphics |
426 |
Group: Development/KDE and Qt |
427 |
Requires: kdelibs4-devel >= 2:4.2.98 |
428 |
Requires: %libokularcore = %epoch:%version-%release |
429 |
Requires: %libgwenviewlib = %epoch:%version-%release |
430 |
Requires: %libksane = %epoch:%version-%release |
431 |
Requires: %libkipi = %epoch:%version-%release |
432 |
Requires: %libkdcraw = %epoch:%version-%release |
433 |
Requires: %libkexiv2 = %epoch:%version-%release |
434 |
Requires: %libkolourpaint_lgpl = %epoch:%version-%release |
435 |
|
436 |
Provides: libkexiv-devel = %epoch:%version-%release |
437 |
Provides: libkdcraw-devel = %epoch:%version-%release |
438 |
Provides: libkipi-devel = %epoch:%version-%release |
439 |
|
440 |
%description devel |
441 |
This package contains header files needed if you wish to build applications |
442 |
based on kdegraphics. |
443 |
|
444 |
%files devel |
445 |
%defattr(-,root,root) |
446 |
%_kde_libdir/*.so |
447 |
%_kde_libdir/pkgconfig/*.pc |
448 |
%_kde_libdir/cmake/Okular/*.cmake |
449 |
%_kde_includedir/* |
450 |
%_kde_appsdir/cmake/*/* |
451 |
%_kde_datadir/dbus-1/interfaces/org.kde.ksnapshot.xml |
452 |
|
453 |
#---------------------------------------------------------------------- |
454 |
|
455 |
%prep |
456 |
%if %branch |
457 |
%setup -q -n kdegraphics-%version%kde_snapshot |
458 |
%else |
459 |
%setup -q -n kdegraphics-%version |
460 |
%endif |
461 |
|
462 |
%build |
463 |
%cmake_kde4 |
464 |
%make |
465 |
|
466 |
%install |
467 |
rm -fr %buildroot |
468 |
%makeinstall_std -C build |
469 |
|
470 |
%clean |
471 |
rm -fr %buildroot |
472 |
|
473 |
|
474 |
|