]> git.pld-linux.org Git - packages/digikam.git/blame - digikam.spec
- release 4 (by relup.sh)
[packages/digikam.git] / digikam.spec
CommitLineData
542fb54c 1#
d6f862d3 2%define qtver 4.8.3
44a32c2e 3%define kdever 4.10.0
b939ed32 4
71912001 5Summary: A KDE frontend for gphoto2
9336ef07 6Summary(pl.UTF-8): Interfejs KDE do gphoto2
71912001 7Name: digikam
c70dd883 8Version: 4.13.0
51dfe2aa 9Release: 4
71912001 10License: GPL
bbee21d4 11Group: X11/Applications/Graphics
5dae3618 12Source0: http://download.kde.org/stable/digikam/%{name}-%{version}.tar.bz2
c70dd883 13# Source0-md5: 930b9a89244afd1f28490d0acabbecc5
3847bb61 14Patch0: %{name}-build.patch
2010d8d7 15Patch1: sendimages-icedove.diff
e028b4c5 16Patch2: opencv3.patch
c97fe0ce 17URL: http://www.digikam.org/
44a32c2e 18BuildRequires: ImageMagick-devel
ad6a12d4 19BuildRequires: Qt3Support-devel >= %{qtver}
b939ed32 20BuildRequires: QtCore-devel >= %{qtver}
2e4093ff 21BuildRequires: QtDesigner-devel >= %{qtver}
b939ed32 22BuildRequires: QtSql-devel >= %{qtver}
ad6a12d4 23BuildRequires: QtSvg-devel >= %{qtver}
93cbaab2 24BuildRequires: QtXmlPatterns-devel >= %{qtver}
54e075b6 25BuildRequires: automoc4
c373d0b8 26BuildRequires: clapack-devel
53105e77 27BuildRequires: cmake >= 2.8.0
5262d002 28BuildRequires: eigen3
670a830d 29BuildRequires: gettext-tools
ad6a12d4 30BuildRequires: jasper-devel
c4744ada 31BuildRequires: java-opencv
d5554f8c 32BuildRequires: kde4-baloo-devel >= %{kdever}
0459e5cb 33BuildRequires: kde4-kdelibs-devel >= %{kdever}
f1d85640 34BuildRequires: kde4-kdepimlibs-devel >= %{kdever}
ad6a12d4 35BuildRequires: lcms-devel
44a32c2e 36BuildRequires: lensfun-devel >= 0.2.6
3847bb61 37BuildRequires: libf2c-devel >= 20110801
ad6a12d4 38BuildRequires: libgphoto2-devel
93cbaab2
AM
39BuildRequires: kde4-libkdcraw-devel >= %{kdever}
40BuildRequires: kde4-libkdeedu-devel >= %{kdever}
41BuildRequires: kde4-libkexiv2-devel >= %{kdever}
42BuildRequires: kde4-libkipi-devel >= %{kdever}
43BuildRequires: kde4-libksane-devel >= %{kdever}
8fed4c5b 44BuildRequires: liblqr-devel >= 0.4.0
c373d0b8 45BuildRequires: libpgf-devel
0459e5cb 46BuildRequires: libtiff-devel
93cbaab2 47BuildRequires: kde4-marble-devel >= %{kdever}
08d3e3c0 48# fixed mysql_install_db in this version
2ea6fb31 49BuildRequires: mysql-extras >= 5.5.9-2
a49afd90 50BuildRequires: opencv-devel
4bd81adb 51BuildRequires: pkgconfig >= 1:0.9.0
c373d0b8 52BuildRequires: qjson-devel >= 0.5
53105e77 53BuildRequires: qt4-build >= %{qtver}
ad6a12d4 54BuildRequires: qt4-qmake >= %{qtver}
44a32c2e 55BuildRequires: qt-gstreamer-devel
38779549 56BuildRequires: rpmbuild(macros) >= 1.606
08c8f1c6 57BuildRequires: sed >= 4.0
9177f2c6 58BuildRequires: shared-desktop-ontologies-devel >= 0.2
0459e5cb 59BuildRequires: soprano-devel
b76f708a 60Requires: QtSql-sqlite3
09901b94 61Obsoletes: digikamimageplugins
269bc1de 62Obsoletes: kipi-plugins
71912001 63BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64
71912001 65%description
66Designed to be a standalone application to preview and download images
5d9f4722
JB
67from a digital camera on a Linux machine.
68
c2abdcf5
JR
69%description -l pl.UTF-8
70Samodzielna aplikacja do oglądania i ściągania obrazków z aparatów
5d9f4722 71cyfrowych pod Linuksem.
71912001 72
16378764 73%package devel
74Summary: A KDE frontend for gphoto2 - header files
9336ef07 75Summary(pl.UTF-8): Interfejs KDE do gphoto2 - pliki nagłówkowe
16378764 76Group: Development/Libraries
b58138fb 77Requires: %{name} = %{version}-%{release}
16378764 78
79%description devel
b58138fb 80A KDE frontend for gphoto2 - header files.
16378764 81
c2abdcf5
JR
82%description devel -l pl.UTF-8
83Interfejs KDE do gphoto2 - pliki nagłówkowe.
16378764 84
71912001 85%prep
c34b6b99 86%setup -q
3847bb61 87%patch0 -p1
2010d8d7 88%patch1 -p1
e028b4c5 89%patch2 -p1
71912001 90
53a63809 91# use kde one
efe5eb2e 92rm cmake/modules/FindK{Sane,exiv2,ipi}.cmake
53a63809 93
028efeaa 94%build
54e075b6
AM
95install -d build
96cd build
97%cmake \
c373d0b8 98 -DSERVERCMD_MYSQL=%{_sbindir}/mysqld \
44a32c2e 99 -DENABLE_RAWSPEED=ON \
5ce372d4
AM
100 -DDIGIKAMSC_COMPILE_LIBKFACE:BOOL=ON \
101 -DDIGIKAMSC_COMPILE_LIBKGEOMAP:BOOL=ON \
102 -DDIGIKAMSC_COMPILE_LIBMEDIAWIKI:BOOL=ON \
103 -DDIGIKAMSC_COMPILE_LIBKVKONTAKTE:BOOL=ON \
e028b4c5 104 -DENABLE_OPENCV3:BOOL=ON \
b939ed32 105 ../
54e075b6 106
71912001 107%{__make}
108
71912001 109%install
110rm -rf $RPM_BUILD_ROOT
5d9f4722 111
25125ed6 112%{__make} -C build install \
20118f11 113 DESTDIR=$RPM_BUILD_ROOT \
b91f9341 114 kde_htmldir=%{_kdedocdir} \
115 kde_libs_htmldir=%{_kdedocdir}
116
08c8f1c6 117%find_lang %{name} --with-kde --all-name
71912001 118
448c0f84
JR
119# libkipi belongs to kde4-libkipi and libkipi.mo belongs to kde4-l10n
120%{__sed} -i -e '/.*\/libkipi.mo$/d' %{name}.lang
121
71912001 122%clean
123rm -rf $RPM_BUILD_ROOT
124
e8f56759 125%post -p /sbin/ldconfig
126%postun -p /sbin/ldconfig
b58138fb 127
23238fb9 128%files -f %{name}.lang
71912001 129%defattr(644,root,root,755)
bf209cc5 130%doc README
8fed4c5b 131%attr(755,root,root) %{_bindir}/cleanup_digikamdb
25125ed6 132%attr(755,root,root) %{_bindir}/digikam
bf209cc5 133%attr(755,root,root) %{_bindir}/dngconverter
bf209cc5 134%attr(755,root,root) %{_bindir}/expoblending
5ce372d4 135%attr(755,root,root) %{_bindir}/libkgeomap_demo
291eb8d8 136%attr(755,root,root) %{_bindir}/panoramagui
963f3c1c 137%attr(755,root,root) %{_bindir}/photolayoutseditor
bf209cc5 138%attr(755,root,root) %{_bindir}/scangui
e5426923 139%dir %{_datadir}/apps/digikam/utils
f1d85640 140%attr(755,root,root) %{_datadir}/apps/digikam/utils/digikam-camera
a2d2f379
AM
141%dir %{_datadir}/apps/digikam/database
142%{_datadir}/apps/digikam/database/dbconfig.xml
143%{_datadir}/apps/digikam/database/mysql-global.conf
38f1c629 144%{_datadir}/apps/kconf_update/adjustlevelstool.upd
25125ed6
RT
145%attr(755,root,root) %{_bindir}/digitaglinktree
146%attr(755,root,root) %{_bindir}/showfoto
25125ed6 147%attr(755,root,root) %{_libdir}/libdigikamdatabase.so.*.*.*
bf209cc5 148%attr(755,root,root) %{_libdir}/libkface.so.*.*.*
efe5eb2e 149%attr(755,root,root) %ghost %{_libdir}/libkface.so.3
bf209cc5 150%attr(755,root,root) %{_libdir}/libkgeomap.so.*.*.*
efe5eb2e 151%attr(755,root,root) %ghost %{_libdir}/libkgeomap.so.2
bf209cc5 152%attr(755,root,root) %{_libdir}/libkipiplugins.so.*.*.*
bf209cc5
AM
153%attr(755,root,root) %{_libdir}/libmediawiki.so.*.*.*
154%attr(755,root,root) %ghost %{_libdir}/libmediawiki.so.1
291eb8d8
AM
155%attr(755,root,root) %{_libdir}/libkvkontakte.so.*.*.*
156%attr(755,root,root) %ghost %{_libdir}/libkvkontakte.so.1
a7ef1db7 157%attr(755,root,root) %{_libdir}/libdigikamcore.so.*.*.*
25125ed6
RT
158%attr(755,root,root) %{_libdir}/kde4/digikamimageplugin_*.so
159%attr(755,root,root) %{_libdir}/kde4/kio_digikamalbums.so
160%attr(755,root,root) %{_libdir}/kde4/kio_digikamdates.so
bf209cc5 161%attr(755,root,root) %{_libdir}/kde4/kio_digikammapimages.so
25125ed6
RT
162%attr(755,root,root) %{_libdir}/kde4/kio_digikamsearch.so
163%attr(755,root,root) %{_libdir}/kde4/kio_digikamtags.so
bf209cc5 164%attr(755,root,root) %{_libdir}/kde4/kipiplugin_*.so
7499557c 165%{_mandir}/man1/digitaglinktree.1*
8fed4c5b 166%{_mandir}/man1/cleanup_digikamdb.1*
d8fc6a3f
AM
167%{_datadir}/appdata/digiKam*.xml
168%{_datadir}/appdata/digikam*.xml
169%{_datadir}/appdata/showfoto.appdata.xml
c36996c2 170%dir %{_datadir}/apps/digikam
c36996c2 171%{_datadir}/apps/digikam/about
44a32c2e 172%{_datadir}/apps/digikam/importui.rc
c36996c2 173%{_datadir}/apps/digikam/data
25125ed6
RT
174%{_datadir}/apps/digikam/digikamimageplugin_*.rc
175%{_datadir}/apps/digikam/digikamimagewindowui.rc
176%{_datadir}/apps/digikam/digikamui.rc
7499557c 177%{_datadir}/apps/digikam/icons
25125ed6 178%{_datadir}/apps/digikam/lighttablewindowui.rc
8fed4c5b 179%{_datadir}/apps/digikam/queuemgrwindowui.rc
7499557c 180%{_datadir}/apps/digikam/tips
bf209cc5 181%{_datadir}/apps/gpssync
3847bb61 182%{_datadir}/apps/kipi
bf209cc5
AM
183%{_datadir}/apps/kipiplugin_*
184%{_datadir}/apps/libkface
185%{_datadir}/apps/libkgeomap
963f3c1c 186%{_datadir}/apps/photolayoutseditor
319a89db 187%{_datadir}/apps/showfoto
25125ed6
RT
188%{_datadir}/kde4/services/digikamalbums.protocol
189%{_datadir}/kde4/services/digikamdates.protocol
7499557c 190%{_datadir}/kde4/services/digikamimageplugin_*.desktop
bf209cc5 191%{_datadir}/kde4/services/digikammapimages.protocol
25125ed6
RT
192%{_datadir}/kde4/services/digikamsearch.protocol
193%{_datadir}/kde4/services/digikamtags.protocol
bf209cc5 194%{_datadir}/kde4/services/kipiplugin_*.desktop
8fed4c5b 195%{_datadir}/apps/digikam/digikam.notifyrc
f1d85640 196%{_datadir}/apps/solid/actions/digikam-opencamera.desktop
25125ed6 197%{_datadir}/kde4/servicetypes/digikamimageplugin.desktop
963f3c1c
AA
198%{_datadir}/kde4/servicetypes/photolayoutseditorborderplugin.desktop
199%{_datadir}/kde4/servicetypes/photolayoutseditoreffectplugin.desktop
38f1c629 200%{_datadir}/templates/kipiplugins_photolayoutseditor
5262d002 201%{_datadir}/config.kcfg/photolayoutseditor.kcfg
bf209cc5 202%{_iconsdir}/*/*/actions/*.png
8fed4c5b 203%{_iconsdir}/*/*/apps/*.png
bf209cc5 204%{_iconsdir}/*/*/apps/*.svgz
25125ed6 205%{_desktopdir}/kde4/*.desktop
16378764 206
207%files devel
b58138fb 208%defattr(644,root,root,755)
a7ef1db7 209%attr(755,root,root) %{_libdir}/libdigikamcore.so
25125ed6 210%attr(755,root,root) %{_libdir}/libdigikamdatabase.so
bf209cc5
AM
211%attr(755,root,root) %{_libdir}/libkface.so
212%attr(755,root,root) %{_libdir}/libkgeomap.so
213%attr(755,root,root) %{_libdir}/libkipiplugins.so
214%attr(755,root,root) %{_libdir}/libmediawiki.so
291eb8d8 215%attr(755,root,root) %{_libdir}/libkvkontakte.so
efe5eb2e 216%{_libdir}/cmake/Kface-*
291eb8d8 217%{_libdir}/cmake/LibKVkontakte
This page took 0.475038 seconds and 4 git commands to generate.