summaryrefslogtreecommitdiffstats
path: root/redhat/libraries/kipi-plugins/kipi-plugins.spec
blob: 79c2fb183f5c8e00caa1404459d8cdf6549fcd58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
#
# spec file for package kipi-plugins (version R14)
#
# Copyright (c) 2014 Trinity Desktop Environment
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://www.trinitydesktop.org/
#

# BUILD WARNING:
#  Remove qt-devel and qt3-devel and any kde*-devel on your system !
#  Having KDE libraries may cause FTBFS here !

# TDE variables
%define tde_epoch 2
%if "%{?tde_version}" == ""
%define tde_version 14.0.0
%endif
%define tde_pkg kipi-plugins
%define tde_prefix /opt/trinity
%define tde_bindir %{tde_prefix}/bin
%define tde_datadir %{tde_prefix}/share
%define tde_docdir %{tde_datadir}/doc
%define tde_includedir %{tde_prefix}/include
%define tde_libdir %{tde_prefix}/%{_lib}
%define tde_mandir %{tde_prefix}/man
%define tde_tdeappdir %{tde_datadir}/applications/tde
%define tde_tdedocdir %{tde_docdir}/tde
%define tde_tdeincludedir %{tde_includedir}/tde
%define tde_tdelibdir %{tde_libdir}/trinity

%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?pclinuxos}
%define kipi-plugins %{_lib}kipi
%else
%define kipi-plugins kipi-plugins
%endif


Name:		trinity-%{tde_pkg}
Epoch:		%{tde_epoch}
Version:	0.1.6
Release:	%{?tde_version}_%{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}
Summary:	Image manipulation/handling plugins for KIPI aware programs [Trinity]
Group:		System/Libraries
URL:		http://www.trinitydesktop.org/
#URL:		http://www.kipi-plugins.org/

%if 0%{?suse_version}
License:	GPL-2.0+
%else
License:	GPLv2+
%endif

#Vendor:		Trinity Desktop
#Packager:	Francois Andriot <francois.andriot@free.fr>

Prefix:			%{tde_prefix}
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Source0:		%{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz

BuildRequires: trinity-tdelibs-devel >= %{tde_version}
BuildRequires: trinity-tdepim-devel >= %{tde_version}
BuildRequires: trinity-libkdcraw-devel >= %{tde_version}
BuildRequires: trinity-libkexiv2-devel >= %{tde_version}
BuildRequires: trinity-libkipi-devel >= %{tde_version}

BuildRequires: desktop-file-utils
BuildRequires: pkgconfig
BuildRequires: gettext
BuildRequires: gcc-c++

# JPEG support
BuildRequires: libjpeg-devel

# EXIV2
%if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires:	%{_lib}exiv2-devel
%endif
%if 0%{?rhel} || 0%{?fedora}
BuildRequires:	exiv2-devel
%endif
%if 0%{?suse_version}
BuildRequires:	libexiv2-devel
%endif

# GPOD (ipod) support
%if 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version}
%define with_gpod 1
BuildRequires:	libgpod-devel >= 0.4.2
%endif

# LCMS support
%if 0%{?suse_version}
BuildRequires: liblcms-devel
%else
BuildRequires: lcms-devel
%endif

# GPHOTO2 support
%if 0%{?rhel} == 4 || 0%{?rhel} == 5 || 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires:	gphoto2-devel
%else
BuildRequires:	libgphoto2-devel
%endif

# TIFF support
BuildRequires:	libtiff-devel

# XSLT support
BuildRequires:	libxslt-devel

# MESA support
%if 0%{?rhel} || 0%{?fedora}
BuildRequires: mesa-libGL-devel
BuildRequires: mesa-libGLU-devel
%endif
%if 0%{?mdkversion} || 0%{?mgaversion}
%if 0%{?pclinuxos}
BuildRequires: MesaGLU-devel
%else
BuildRequires: mesaglu-devel
%endif
%endif
%if 0%{?suse_version}
BuildRequires: Mesa-libGL-devel
BuildRequires: Mesa-libGLU-devel
%endif

# AUTOTOOLS
BuildRequires: automake autoconf libtool
%if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires:	%{_lib}ltdl-devel
%endif
%if 0%{?fedora} || 0%{?rhel} >= 5 || 0%{?suse_version} >= 1220
BuildRequires:	libtool-ltdl-devel
%endif

%description
KIPI plugins (TDE Image Plugin Interface) is an effort to develop a
common plugin structure for Digikam, KPhotoAlbum (formerly known as
KimDaBa), Showimg and Gwenview.
Its aim is to share image plugins among graphic applications.

Plugins available are:

RawConverter:        Raw image converter for digital cameras
SlideShow:           Slideshow with effects ripped out from kslideshow
                     and 3D effects using OpenGL
MpegEncoder:         Create an MPEG slideshow from your images
PrintWizard:         A wizard to print images in various format
JpegLossLess:        Batch process your JPEG images without losing meta
                     information and compression
CdArchiving:         Archive your albums on CD or DVD using K3b
ScanImages:          Scanner management using Kooka
ScreenshotImages:    Snap screen based on KSnapshot and adapted to Kipi
Calendar:            Sreate calendars with images
SendImages:          Send images by email, allowing resizing
                     and recompressing before sending
RenameImages:        Batch image renamer
ConvertImages:       Batch image converter
BorderImages:        Add border to your images in batch
FilterImages:        Batch image enhancer using digital filters
ColorImages:         Batch image color enhancer
EffectImages:        Batch image transformation effects
ResizeImages:        Batch image resizer
RecompressImages:    Batch image recompressor
FindDuplicateImages: Find duplicate images in albums
TimeAdjust:          Adjust image file time and date
WallPaper:           Set your image as wallpaper
FindImages:          Find duplicate images in albums
GalleryExport:       Interface for export images collections to remote
                     Gallery (and Gallery 2) servers
FlickrExport:        Export images to a remote Flickr web service
HTMLGallery:         Export images to HTML
SimpleviewerExport:  Export images in a nice flash movie
GPSSync:             Geolocalize pictures
MetadataEdit:        Edit EXIF and IPTC pictures metadata
%if 0%{?with_gpod}
IpodExport:          Export images to an ipod device
%endif
PicasaWebExport:     Export pictures to Picasa web service

##########

%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
%debug_package
%endif

##########

%prep
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}

%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__cp "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common"


%build
unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"

%configure \
  --prefix=%{tde_prefix} \
  --exec-prefix=%{tde_prefix} \
  --datadir=%{tde_datadir} \
  --libdir=%{tde_libdir} \
  --mandir=%{tde_mandir} \
  --includedir=%{tde_tdeincludedir} \
  \
  --disable-dependency-tracking \
  --disable-debug \
  --enable-new-ldflags \
  --enable-final \
  --enable-closure \
  --enable-rpath \
  --disable-gcc-hidden-visibility

%__make %{?_smp_mflags}


%install
export PATH="%{tde_bindir}:${PATH}"
%__rm -rf %{buildroot}
%__make install DESTDIR=%{buildroot}
%__rm -rf %{buildroot}%{tde_mandir}


%clean
%__rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%{tde_bindir}/images2mpg
%{tde_libdir}/libkipiplugins.la
%{tde_libdir}/libkipiplugins.so
%{tde_libdir}/libkipiplugins.so.0
%{tde_libdir}/libkipiplugins.so.0.0.1
%{tde_tdelibdir}/kipiplugin_acquireimages.la
%{tde_tdelibdir}/kipiplugin_acquireimages.so
%{tde_tdelibdir}/kipiplugin_batchprocessimages.la
%{tde_tdelibdir}/kipiplugin_batchprocessimages.so
%{tde_tdelibdir}/kipiplugin_calendar.la
%{tde_tdelibdir}/kipiplugin_calendar.so
%{tde_tdelibdir}/kipiplugin_cdarchiving.la
%{tde_tdelibdir}/kipiplugin_cdarchiving.so
%{tde_tdelibdir}/kipiplugin_findimages.la
%{tde_tdelibdir}/kipiplugin_findimages.so
%{tde_tdelibdir}/kipiplugin_flickrexport.la
%{tde_tdelibdir}/kipiplugin_flickrexport.so
%{tde_tdelibdir}/kipiplugin_galleryexport.la
%{tde_tdelibdir}/kipiplugin_galleryexport.so
%{tde_tdelibdir}/kipiplugin_gpssync.la
%{tde_tdelibdir}/kipiplugin_gpssync.so
%{tde_tdelibdir}/kipiplugin_htmlexport.la
%{tde_tdelibdir}/kipiplugin_htmlexport.so
%if 0%{?with_gpod}
%{tde_tdelibdir}/kipiplugin_ipodexport.la
%{tde_tdelibdir}/kipiplugin_ipodexport.so
%endif
%{tde_tdelibdir}/kipiplugin_jpeglossless.la
%{tde_tdelibdir}/kipiplugin_jpeglossless.so
%{tde_tdelibdir}/kipiplugin_kameraklient.la
%{tde_tdelibdir}/kipiplugin_kameraklient.so
%{tde_tdelibdir}/kipiplugin_metadataedit.la
%{tde_tdelibdir}/kipiplugin_metadataedit.so
%{tde_tdelibdir}/kipiplugin_mpegencoder.la
%{tde_tdelibdir}/kipiplugin_mpegencoder.so
%{tde_tdelibdir}/kipiplugin_picasawebexport.la
%{tde_tdelibdir}/kipiplugin_picasawebexport.so
%{tde_tdelibdir}/kipiplugin_printwizard.la
%{tde_tdelibdir}/kipiplugin_printwizard.so
%{tde_tdelibdir}/kipiplugin_rawconverter.la
%{tde_tdelibdir}/kipiplugin_rawconverter.so
%{tde_tdelibdir}/kipiplugin_sendimages.la
%{tde_tdelibdir}/kipiplugin_sendimages.so
%{tde_tdelibdir}/kipiplugin_simpleviewer.la
%{tde_tdelibdir}/kipiplugin_simpleviewer.so
%{tde_tdelibdir}/kipiplugin_slideshow.la
%{tde_tdelibdir}/kipiplugin_slideshow.so
%{tde_tdelibdir}/kipiplugin_timeadjust.la
%{tde_tdelibdir}/kipiplugin_timeadjust.so
%{tde_tdelibdir}/kipiplugin_viewer.la
%{tde_tdelibdir}/kipiplugin_viewer.so
%{tde_tdelibdir}/kipiplugin_wallpaper.la
%{tde_tdelibdir}/kipiplugin_wallpaper.so
%{tde_datadir}/applnk/.hidden/kipi-plugins.desktop
%{tde_datadir}/apps/kipi/
%{tde_datadir}/apps/kipiplugin_batchprocessimages/
%{tde_datadir}/apps/kipiplugin_findimages/
%{tde_datadir}/apps/kipiplugin_galleryexport/
%{tde_datadir}/apps/kipiplugin_gpssync/
%{tde_datadir}/apps/kipiplugin_htmlexport/
%{tde_datadir}/apps/kipiplugin_jpeglossless/
%{tde_datadir}/apps/kipiplugin_rawconverter/
%{tde_datadir}/apps/kipiplugin_simpleviewerexport/
%{tde_datadir}/apps/kipiplugin_slideshow/
%{tde_datadir}/apps/kipiplugin_viewer/
%{tde_datadir}/config.kcfg/htmlexportconfig.kcfg
%{tde_datadir}/services/kipiplugin_acquireimages.desktop
%{tde_datadir}/services/kipiplugin_batchprocessimages.desktop
%{tde_datadir}/services/kipiplugin_calendar.desktop
%{tde_datadir}/services/kipiplugin_cdarchiving.desktop
%{tde_datadir}/services/kipiplugin_findimages.desktop
%{tde_datadir}/services/kipiplugin_flickrexport.desktop
%{tde_datadir}/services/kipiplugin_galleryexport.desktop
%{tde_datadir}/services/kipiplugin_gpssync.desktop
%{tde_datadir}/services/kipiplugin_htmlexport.desktop
%if 0%{?with_gpod}
%{tde_datadir}/services/kipiplugin_ipodexport.desktop
%endif
%{tde_datadir}/services/kipiplugin_jpeglossless.desktop
%{tde_datadir}/services/kipiplugin_kameraklient.desktop
%{tde_datadir}/services/kipiplugin_metadataedit.desktop
%{tde_datadir}/services/kipiplugin_mpegencoder.desktop
%{tde_datadir}/services/kipiplugin_picasawebexport.desktop
%{tde_datadir}/services/kipiplugin_printwizard.desktop
%{tde_datadir}/services/kipiplugin_rawconverter.desktop
%{tde_datadir}/services/kipiplugin_sendimages.desktop
%{tde_datadir}/services/kipiplugin_simpleviewer.desktop
%{tde_datadir}/services/kipiplugin_slideshow.desktop
%{tde_datadir}/services/kipiplugin_timeadjust.desktop
%{tde_datadir}/services/kipiplugin_viewer.desktop
%{tde_datadir}/services/kipiplugin_wallpaper.desktop
%{tde_mandir}/man1/images2mpg.1*
%{tde_tdedocdir}/HTML/de/kipi-plugins/
%{tde_tdedocdir}/HTML/en/kipi-plugins/
%{tde_tdedocdir}/HTML/es/kipi-plugins/
%{tde_tdedocdir}/HTML/et/kipi-plugins/
%{tde_tdedocdir}/HTML/it/kipi-plugins/
%{tde_tdedocdir}/HTML/nl/kipi-plugins/
%{tde_tdedocdir}/HTML/pt_BR/kipi-plugins/
%{tde_tdedocdir}/HTML/ru/kipi-plugins/
%{tde_tdedocdir}/HTML/sv/kipi-plugins/
%lang(ar) %{tde_datadir}/locale/ar/LC_MESSAGES/*.mo
%lang(be) %{tde_datadir}/locale/be/LC_MESSAGES/*.mo
%lang(br) %{tde_datadir}/locale/br/LC_MESSAGES/*.mo
%lang(ca) %{tde_datadir}/locale/ca/LC_MESSAGES/*.mo
%lang(cs) %{tde_datadir}/locale/cs/LC_MESSAGES/*.mo
%lang(cy) %{tde_datadir}/locale/cy/LC_MESSAGES/*.mo
%lang(da) %{tde_datadir}/locale/da/LC_MESSAGES/*.mo
%lang(de) %{tde_datadir}/locale/de/LC_MESSAGES/*.mo
%lang(el) %{tde_datadir}/locale/el/LC_MESSAGES/*.mo
%lang(en_GB) %{tde_datadir}/locale/en_GB/LC_MESSAGES/*.mo
%lang(es) %{tde_datadir}/locale/es/LC_MESSAGES/*.mo
%lang(et) %{tde_datadir}/locale/et/LC_MESSAGES/*.mo
%lang(fi) %{tde_datadir}/locale/fi/LC_MESSAGES/*.mo
%lang(fr) %{tde_datadir}/locale/fr/LC_MESSAGES/*.mo
%lang(ga) %{tde_datadir}/locale/ga/LC_MESSAGES/*.mo
%lang(gl) %{tde_datadir}/locale/gl/LC_MESSAGES/*.mo
%lang(hu) %{tde_datadir}/locale/hu/LC_MESSAGES/*.mo
%lang(is) %{tde_datadir}/locale/is/LC_MESSAGES/*.mo
%lang(it) %{tde_datadir}/locale/it/LC_MESSAGES/*.mo
%lang(ja) %{tde_datadir}/locale/ja/LC_MESSAGES/*.mo
%lang(lt) %{tde_datadir}/locale/lt/LC_MESSAGES/*.mo
%lang(ms) %{tde_datadir}/locale/ms/LC_MESSAGES/*.mo
%lang(mt) %{tde_datadir}/locale/mt/LC_MESSAGES/*.mo
%lang(nb) %{tde_datadir}/locale/nb/LC_MESSAGES/*.mo
%lang(nds) %{tde_datadir}/locale/nds/LC_MESSAGES/*.mo
%lang(nl) %{tde_datadir}/locale/nl/LC_MESSAGES/*.mo
%lang(nn) %{tde_datadir}/locale/nn/LC_MESSAGES/*.mo
%lang(pa) %{tde_datadir}/locale/pa/LC_MESSAGES/*.mo
%lang(pl) %{tde_datadir}/locale/pl/LC_MESSAGES/*.mo
%lang(pt) %{tde_datadir}/locale/pt/LC_MESSAGES/*.mo
%lang(pt_BR) %{tde_datadir}/locale/pt_BR/LC_MESSAGES/*.mo
%lang(ru) %{tde_datadir}/locale/ru/LC_MESSAGES/*.mo
%lang(rw) %{tde_datadir}/locale/rw/LC_MESSAGES/*.mo
%lang(sk) %{tde_datadir}/locale/sk/LC_MESSAGES/*.mo
%lang(sr) %{tde_datadir}/locale/sr/LC_MESSAGES/*.mo
%lang(sr@Latn) %{tde_datadir}/locale/sr@Latn/LC_MESSAGES/*.mo
%lang(sv) %{tde_datadir}/locale/sv/LC_MESSAGES/*.mo
%lang(ta) %{tde_datadir}/locale/ta/LC_MESSAGES/*.mo
%lang(th) %{tde_datadir}/locale/th/LC_MESSAGES/*.mo
%lang(tr) %{tde_datadir}/locale/tr/LC_MESSAGES/*.mo
%lang(uk) %{tde_datadir}/locale/uk/LC_MESSAGES/*.mo
%lang(zh_CN) %{tde_datadir}/locale/zh_CN/LC_MESSAGES/*.mo


%changelog