/[packages]/cauldron/gimp-plugin-registry/current/SPECS/gimp-plugin-registry.spec
ViewVC logotype

Contents of /cauldron/gimp-plugin-registry/current/SPECS/gimp-plugin-registry.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 181239 - (show annotations) (download)
Tue Dec 13 13:26:58 2011 UTC (12 years, 4 months ago) by shlomif
File size: 16923 byte(s)
Got rid of mib distsuffix and ccache defs
1 %define name gimp-plugin-registry
2 %define version 3.5.4
3 %define release %mkrel 1
4
5 Summary: Repository of optional extensions for GIMP
6 Name: %{name}
7 Version: %{version}
8 Release: %{release}
9 License: GPLv3
10 Group: Graphics
11 URL: http://registry.gimp.org/
12 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
13 Source0: %{name}_%{version}.orig.tar.gz
14 Source1: refocus
15 Source2: doc.pdf.gz
16 Source3: doc.html
17 Source4: refocus64
18 Source5: 3DScreenshot.scm
19 Source6: focusblur-3.2.6.tar.bz2
20
21 # Patch0: focusblur_fix-bashism
22 Patch1: contact_sheet_menu_fix
23 Patch2: xmc_no_config.h
24 Patch3: separate+_cflags
25 Patch4: separate_missing_include
26 Patch5: cmyk-tiff-2-pdf_pdfviewer.diff
27 Patch6: bw-simulation-color-mixer-fix.diff
28 Patch7: menu_fix-ca.diff
29 Patch8: menu_bw-simulation.diff
30 Patch9: menu_smart-sharpen-redux.diff
31 Patch10: menu_add-filmgrain.diff
32 Patch11: menu_dbp.diff
33 Patch12: menu_diana-holga2.diff
34 Patch13: refocus_lapack.diff
35 Patch14: refocus_fix_warnings.diff
36 Patch15: gcc4.3-fixes.diff
37 # Patch16: normalmap-add-libm.patch
38 Patch17: gimp-plugin-registry-save-for-web.patch
39 Patch18: gimp-plugin-registry-separate-plus.patch
40 Patch19: gimp-plugin-registry-wavelet-denoise.patch
41 Patch20: gimp-plugin-registry-xmc-undebianize.patch
42 Patch21: gimp-plugin-registry-focus-blur.patch
43
44 BuildRequires: gimp-devel
45 BuildRequires: perl-libxml-perl
46 BuildRequires: libblas-devel
47 %ifarch x86_64
48 BuildRequires: libatlas-devel
49 %else
50 BuildRequires: libatlas-sse-devel
51 BuildRequires: libatlas-sse2-devel
52 BuildRequires: libatlas-sse3-devel
53 %endif
54 BuildRequires: libfftw-devel
55 BuildRequires: liblapack-devel
56 BuildRequires: f2c-devel
57 BuildRequires: libglew-devel
58 BuildRequires: libgtkglext-devel
59 BuildRequires: lcms-devel
60 BuildRequires: mesaglu-devel
61 BuildRequires: libtiff-devel
62 BuildRequires: lqr-devel
63 BuildRequires: icclib-devel
64 BuildRequires: libice-devel
65 BuildRequires: intltool
66 BuildRequires: libxcursor-devel
67 BuildRequires: mesa-common-devel
68 BuildRequires: python
69
70 Requires: atlas
71 Requires: gimp
72 Requires: gimp-python
73 Requires: glew
74 Requires: icclib
75 Requires: atk
76 Requires: libblas
77 %ifarch x86_64
78 Requires: lib64atlas3-x86_64
79 %else
80 Requires: libatlas3-sse
81 Requires: libatlas3-sse2
82 Requires: libatlas3-sse3
83 %endif
84 Requires: fftw
85 Requires: libgcc1
86 Requires: libgimp2.0
87 Requires: gtkglext
88 Requires: libice
89 Requires: liblapack
90 Requires: liblcms
91 Requires: libpango
92 Requires: libmesagl
93 Requires: libmesaglu
94 Requires: libsm
95 Requires: libstdc++
96 Requires: libtiff
97 Requires: libtiff-progs
98 Requires: libx11
99 Requires: libxcursor
100 Requires: libxmu
101 Requires: libxt
102 Requires: python
103 Requires: xdg-utils
104 %ifarch x86_64
105 Requires: lib64glew1.5
106 Requires: lib64lqr0
107 %else
108 Requires: libglew1.5
109 Requires: liblqr0
110 %endif
111
112 Provides: gimp-save-for-web
113 %ifarch x86_64
114 Provides: liblapack.so.3gf()(64bit)
115 Provides: libblas.so.3gf()(64bit)
116 %else
117 Provides: liblapack.so.3gf()
118 Provides: libblas.so.3gf()
119 %endif
120
121 Obsoletes: gimp-dbp
122 Obsoletes: gimp-lqr-plugin
123
124 %description
125 The package contains the following plugins:
126 * 3DScreenshot:
127 Take screenshots in 3D.
128 * Add Film Grain (2.4):
129 Helps adding realistic film grain to BW images.
130 * btn4ws (0.8.0.1):
131 Generates a series of buttons in three states (passive, active, pressed)
132 with various selectable effects on them, as well as XHTML, CSS and
133 JavaScript code for using the buttons.
134 * Black and White Film Simulation (1.1):
135 Converts the selected layer into Black and White using
136 the channel mixer. Tries to produce results resembling
137 tonal qualities of film.
138 * CMYK Tiff 2 PDF for Gimp (20090321):
139 This plugin completes the prepress workflow of using Separate+ to generate
140 CMYK Tiff images by allowing you to convert the saved CMYK Tiff image into
141 a PDF file.
142 * Contact Sheet (2.02):
143 Generates a contact sheet(s) for a directory of images.
144 * David's Batch Processor (1.1.9):
145 A simple batch processing plugin for The Gimp - it allows
146 the user to automatically perform operations (such as resize)
147 on a collection of image files.
148 * Diana-Holga2 (c):
149 Diana/Holga Toys Cameras effect simulator.
150 * El Samuko GIMP Scripts:
151 * Antique Photo Border Script:
152 This script simulates a yellowed and slightly jagged border
153 like these of old photographies.
154 * Che Guevara Script:
155 This script generates a poster like the famous Che Guevara
156 one from Jim Fitzpatrick.
157 * Cyanotype Script:
158 This script simulates the Cyanotype printing process.
159 * Difference Layer Script
160 This script generates two difference layers from the two layers
161 on the top. It's similar to GIMP's built-in Grain Extract/Merge
162 function, but the tonal range is bigger.
163 Now you can apply further editing and "switch on/off" the
164 adjustment by switching the visibility of the subtractive and
165 the additive layer.
166 Also you can change the modification intensity by changing the
167 intensity of these two layers.
168 * Escape Line Script:
169 This script creates escaping lines from any point. It's similar
170 in function to the built-in Line-Nova Script, but much more
171 flexible. So you can chose the center, the thickness, the angle,
172 the length, the offset and the randomness.
173 * Film Grain Script:
174 This is yet another script which simulates the typical film grain
175 of high ISO pictures.
176 * First Photo Border Script:
177 This script simulates the cut-off of the first picture of a film
178 roll of cheap cameras like Lomo.
179 * Lomo Script with Old Style Colors
180 This script simulates the Lomo effect.
181 * Movie 300 Script:
182 This script simulates the color style of the movie "300".
183 * National Geographic Script:
184 This script simulates a high quality (portrait) photo like
185 these from the National Geographic.
186 * Obama "HOPE" Script:
187 This script generates a poster like the famous Obama "HOPE"
188 one from Shepard Fairey.
189 * Rainy Landscape Script:
190 This script changes a dry landscape to a wet one.
191 * Photochrom Script:
192 This script simulates a photochrom image, a lithographic printing
193 process from the 1890's.
194 * Sprocket Hole Script:
195 This script simulates complete exposed 35mm film strips with frame
196 numbers, lettering, overexposed sprocketholes and DX film edge barcodes.
197 * Sunny Landscape Script:
198 This script changes a rainy landscape to a sunny one.
199 * Technicolor 2 Color Script:
200 This script simulates the 2 Color Technicolor effect.
201 * Technicolor 3 Color Script:
202 This script simulates the 3 Color Technicolor effect.
203 * Vintage Look Script:
204 This script simulates a 70s vintage look.
205 * EZ Perspective:
206 Specialized tool for easily correcting or changing perspective.
207 * Fix-CA (3.0.2):
208 Corrects chromatic aberration in photos
209 * Focus-Blur (3.2.5):
210 This plugin tries to simulate an out-of-focus blur
211 * GIMP-Mask:
212 Do and undo several popular image masking (that is, censoring)
213 methods (CP, FL, Q0, MEKO).
214 * Warming and Cooling Filters (May 24, 2010):
215 Warm or cool an image using one of several methods:
216 Wratten, Roy's Warm, Brauer's Warm, Pasty Cadaveric Look
217 * Layer-Effects (2.4):
218 This is a series of scripts that implement various layer effects:
219 Drop Shadow, Inner Shadow, Outer Glow, Inner Glow, Bevel and Emboss,
220 Satin, Color Overlay, Gradient Overlay, Pattern Overlay, Stroke
221 * Liquid Rescale (0.7.0):
222 Content-aware rescaling. Keeps the features of the image while
223 rescaling along a single direction.
224 * Normalmap (1.2.2):
225 Allows you to convert images into RGB normal maps for use in
226 per-pixel lighting applications.
227 * OpenRaster load/save handler (20100506-142cb16):
228 OpenRaster is an effort by the Create project[1] to offer a standardized
229 and open interchange format for raster-based applications. This plugin
230 allows to load and save files in the OpenRaster format.
231 * Planet Render (1-2):
232 Creates a planet. Color, size and sun orientation
233 can be set.
234 * Refocus (0.9.1):
235 The GIMP plugin to refocus images using FIR Wiener filtering.
236 During image processing operations such as scanning and scaling, images
237 tend to get blurry. The blurred impression of these images is due to the
238 fact that image pixels are averaged with their neighbors. Blurred images
239 don't have sharp boundaries and look as though they have been taken with
240 an unfocused camera.
241 * Save for Web (0.29.0):
242 Allows to experiment with various popular web format options. It shows
243 an automatically updated preview and file size statistics.
244 * Separate+ (0.5.6):
245 Separate+ is a plug-in that generates color separations from an RGB
246 image, proofs CMYK colors on the monitor and exports the CMYK TIFF file.
247 * Smart Sharpen (redux) (2.4):
248 This script implements the redux version of smart sharpening. It utilizes
249 the Unsharp Mask or Refocus plugin to sharpen the image.
250 * Streak-Camera simulation (0.6):
251 A streak camera images an object through a slit -
252 thus getting a "one dimensional image". This image is
253 propagated along the second dimension of the image plane
254 at a constant speed. The result is a picture of the time
255 dependency of the object.
256 * Traditional Orton:
257 This is an effect invented by Michael Orton in the 1990’s, which
258 consists of taking two copies of an image, one blurred, and one sharp,
259 and mixing them to produce an image with a dreamy quality. It is
260 especially well suited to landscape and flower photography.
261 * Wavelet Decompose (0.1.2):
262 The wavelet decompose plugin decomposes a layer of an image into layers
263 of wavelet scales. This means that you can edit the image on different
264 detail scales (frequencies). The trivial recomposition of the image can
265 be done by GIMP's layer modes so you can see the results of your
266 modifications instantly. Among the applications are retouching, noise
267 reduction, and enhancing global contrast.
268 * Wavelet Denoise (0.3.1):
269 The wavelet denoise plugin is a tool to selectively reduce noise in
270 individual channels of an image with optional RGB<->YCbCr conversion.
271 It has a user interface to adjust the amount of denoising applied. The
272 wavelet nature of the algorithm makes the processing quite fast.
273 * X11 Mouse Cursor (XMC) plug-in (2.0.6):
274 Enables GIMP to import and export X11 mouse cursor files.
275 (Only shipped if the package was built against libgimp-dev < 2.7~)
276
277 %prep
278 %setup -q -n %{name}-%{version}
279 %patch1 -p1
280 %patch2 -p1
281 %patch3 -p1
282 %patch4 -p1
283 %patch5 -p1
284 %patch6 -p1
285 %patch7 -p1
286 %patch8 -p1
287 %patch9 -p1
288 %patch10 -p1
289 %patch11 -p1
290 %patch12 -p1
291 %patch13 -p1
292 %patch14 -p1
293 %patch15 -p1
294 %patch17 -p1
295 %patch18 -p1
296 %patch19 -p1
297 %patch20 -p1
298
299 (cd focus-blur ; tar -xf "%{SOURCE6}" ; rm src ; ln -s focusblur-3.2.6 src)
300 perl -lpi -e '/^LIBS=/ && s/(\\)/-lm $1/' normalmap/gimp-normalmap-1.2.2/Makefile.linux
301 %patch21 -p1
302
303 %build
304 export EXTRA_LDFLAGS="-lm"
305 cd fix-ca
306 make
307 cd -
308 pushd .
309 cd focus-blur
310 make
311 popd
312 cd gimp-mask
313 make
314 cd -
315 cd lqr/gimp-lqr-plugin
316 %configure2_5x
317 make
318 cd -
319 cd normalmap/gimp-normalmap-1.2.2
320 make
321 cd -
322 cd planet-render
323 make
324 cd -
325 cd safe-for-web/gimp-save-for-web-0.29.0
326 autoreconf
327 %configure2_5x
328 make
329 cd -
330 cd separate+/separate+
331 make
332 cd -
333 cd streak
334 make
335 cd -
336 cd wavelet-decompose/wavelet-decompose-0.1.2
337 make
338 cd -
339 cd wavelet-denoise/wavelet-denoise-0.3.1
340 make
341 cd -
342 cd xmc/gimp-xmc-plugin-2.0.6
343 autoreconf
344 %configure2_5x
345 make
346 cd -
347
348 %install
349 rm -fr $RPM_BUILD_ROOT
350
351 %__install -d %{buildroot}%{_datadir}/gimp/2.0/scripts
352 %__install -d %{buildroot}%{_libdir}/gimp/2.0/plug-ins
353 %__install -d %{buildroot}%{_docdir}/gimp-plugin-registry/DBP
354 %__install -d %{buildroot}%{_docdir}/gimp-plugin-registry/refocus
355
356 %__install -d %{buildroot}%{_datadir}/locale/cs/LC_MESSAGES/
357 %__install -d %{buildroot}%{_datadir}/locale/de/LC_MESSAGES/
358 %__install -d %{buildroot}%{_datadir}/locale/et/LC_MESSAGES/
359 %__install -d %{buildroot}%{_datadir}/locale/fr/LC_MESSAGES/
360 %__install -d %{buildroot}%{_datadir}/locale/it/LC_MESSAGES/
361 %__install -d %{buildroot}%{_datadir}/locale/ja/LC_MESSAGES/
362 %__install -d %{buildroot}%{_datadir}/locale/ko/LC_MESSAGES/
363 %__install -d %{buildroot}%{_datadir}/locale/pl/LC_MESSAGES/
364 %__install -d %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/
365
366 %__cp -rf add-filmgrain/*.scm %{buildroot}%{_datadir}/gimp/2.0/scripts
367 %__cp -rf btn4ws/*.py %{buildroot}%{_datadir}/gimp/2.0/scripts
368 %__cp -rf bw-simulation/*.scm %{buildroot}%{_datadir}/gimp/2.0/scripts
369 %__cp -rf cmyk-tiff-2-pdf/*.py %{buildroot}%{_datadir}/gimp/2.0/scripts
370 %__cp -rf contact-sheet/*.py %{buildroot}%{_datadir}/gimp/2.0/scripts
371 %__cp -rf diana-holga2/*.scm %{buildroot}%{_datadir}/gimp/2.0/scripts
372 %__cp -rf elsamuko/*.scm %{buildroot}%{_datadir}/gimp/2.0/scripts
373 %__cp -rf ez-perspective/*.py %{buildroot}%{_datadir}/gimp/2.0/scripts
374 %__cp -rf hdroberts-tone-adjust/*.scm %{buildroot}%{_datadir}/gimp/2.0/scripts
375 %__cp -rf layer-effects/*.py %{buildroot}%{_datadir}/gimp/2.0/scripts
376 %__cp -rf openraster/*.py %{buildroot}%{_datadir}/gimp/2.0/scripts
377 %__cp -rf planet-render/*.scm %{buildroot}%{_datadir}/gimp/2.0/scripts
378 %__cp -rf smart-sharpen-redux/*.scm %{buildroot}%{_datadir}/gimp/2.0/scripts
379 %__cp -rf traditional-orton/*.scm %{buildroot}%{_datadir}/gimp/2.0/scripts
380
381 %ifarch %ix86
382 %__cp -f %{SOURCE1} %{buildroot}%{_libdir}/gimp/2.0/plug-ins
383 %else
384 %__cp -f %{SOURCE4} %{buildroot}%{_libdir}/gimp/2.0/plug-ins/refocus
385 %endif
386
387 %__cp -f %{SOURCE2} %{buildroot}%{_docdir}/gimp-plugin-registry/refocus
388 %__cp -f %{SOURCE3} %{buildroot}%{_docdir}/gimp-plugin-registry/refocus
389 %__cp -f %{SOURCE5} %{buildroot}%{_docdir}/gimp-plugin-registry
390
391 cd DBP/dbp-1.1.9
392 %makeinstall_std
393 %__cp -f dbp %{buildroot}%{_libdir}/gimp/2.0/plug-ins
394 %__cp -f *.png *.html %{buildroot}%{_docdir}/gimp-plugin-registry/DBP
395 cd -
396 cd fix-ca
397 %__cp -f fix-ca %{buildroot}%{_libdir}/gimp/2.0/plug-ins
398 cd -
399 cd focus-blur/focusblur-3.2.6
400 %makeinstall_std
401 cd -
402 cd gimp-mask
403 %__cp -f gimpmask %{buildroot}%{_libdir}/gimp/2.0/plug-ins
404 cd -
405 cd lqr/gimp-lqr-plugin
406 %makeinstall_std
407 cd -
408 cd normalmap/gimp-normalmap-1.2.2
409 %__cp -f normalmap %{buildroot}%{_libdir}/gimp/2.0/plug-ins
410 cd -
411 cd planet-render
412 %__cp -f *.scm %{buildroot}%{_datadir}/gimp/2.0/scripts
413 cd -
414 cd safe-for-web/gimp-save-for-web-0.29.0
415 %makeinstall_std
416 cd -
417 cd separate+/separate+
418 %__cp -f separate_import separate icc_colorspace %{buildroot}%{_libdir}/gimp/2.0/plug-ins
419 %__cp -f sample-scripts/*.scm %{buildroot}%{_datadir}/gimp/2.0/scripts
420 %__cp -f po/cs.gmo %{buildroot}%{_datadir}/locale/cs/LC_MESSAGES/gimp20-separate.mo
421 %__cp -f po/fr.gmo %{buildroot}%{_datadir}/locale/fr/LC_MESSAGES/gimp20-separate.mo
422 %__cp -f po/ja.gmo %{buildroot}%{_datadir}/locale/ja/LC_MESSAGES/gimp20-separate.mo
423 %__cp -f po/ko.gmo %{buildroot}%{_datadir}/locale/ko/LC_MESSAGES/gimp20-separate.mo
424 %__cp -f po/pl.gmo %{buildroot}%{_datadir}/locale/pl/LC_MESSAGES/gimp20-separate.mo
425 %__cp -f po/ru.gmo %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/gimp20-separate.mo
426 cd -
427 cd streak
428 %__cp -f streak %{buildroot}%{_libdir}/gimp/2.0/plug-ins
429 cd -
430 cd wavelet-decompose/wavelet-decompose-0.1.2
431 %__cp -f src/wavelet-decompose %{buildroot}%{_libdir}/gimp/2.0/plug-ins
432 %__cp -f po/de.mo %{buildroot}%{_datadir}/locale/de/LC_MESSAGES/gimp20-wavelet-decompose-plug-in.mo
433 %__cp -f po/it.mo %{buildroot}%{_datadir}/locale/it/LC_MESSAGES/gimp20-wavelet-decompose-plug-in.mo
434 %__cp -f po/pl.mo %{buildroot}%{_datadir}/locale/pl/LC_MESSAGES/gimp20-wavelet-decompose-plug-in.mo
435 %__cp -f po/ru.mo %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/gimp20-wavelet-decompose-plug-in.mo
436 cd -
437 cd wavelet-denoise/wavelet-denoise-0.3.1
438 %__cp -f src/wavelet-denoise %{buildroot}%{_libdir}/gimp/2.0/plug-ins
439 %__cp -f po/de.mo %{buildroot}%{_datadir}/locale/de/LC_MESSAGES/gimp20-wavelet-denoise-plug-in.mo
440 %__cp -f po/et.mo %{buildroot}%{_datadir}/locale/et/LC_MESSAGES/gimp20-wavelet-denoise-plug-in.mo
441 %__cp -f po/it.mo %{buildroot}%{_datadir}/locale/it/LC_MESSAGES/gimp20-wavelet-denoise-plug-in.mo
442 %__cp -f po/pl.mo %{buildroot}%{_datadir}/locale/pl/LC_MESSAGES/gimp20-wavelet-denoise-plug-in.mo
443 %__cp -f po/ru.mo %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/gimp20-wavelet-denoise-plug-in.mo
444 cd -
445 cd xmc/gimp-xmc-plugin-2.0.6
446 %makeinstall_std
447 cd -
448
449 %post
450 cp %{_libdir}/liblapack.so.3 %{_libdir}/liblapack.so.3gf
451 cp %{_libdir}/libblas.so.3 %{_libdir}/libblas.so.3gf
452
453 %postun
454 rm %{_libdir}/liblapack.so.3gf
455 rm %{_libdir}/libblas.so.3gf
456
457 %clean
458 rm -rf $RPM_BUILD_ROOT
459
460 %files
461 %defattr(-,root,root,0755)
462 %{_datadir}/gimp/2.0/scripts/*
463 %{_libdir}/gimp/2.0/plug-ins/*
464 %{_docdir}/gimp-plugin-registry/*
465 %{_datadir}/locale/*
466 %{_datadir}/gimp-lqr-plugin/*
467 %{_datadir}/gimp-save-for-web/*
468

  ViewVC Help
Powered by ViewVC 1.1.30