]>
Commit | Line | Data |
---|---|---|
542fb54c | 1 | # |
291eb8d8 AM |
2 | %define qtver 4.7.4 |
3 | %define kdever 4.7.1 | |
b939ed32 | 4 | |
71912001 | 5 | Summary: A KDE frontend for gphoto2 |
9336ef07 | 6 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 |
71912001 | 7 | Name: digikam |
c54707de | 8 | Version: 2.1.1 |
6f58be7a | 9 | Release: 1 |
71912001 | 10 | License: GPL |
bbee21d4 | 11 | Group: X11/Applications/Graphics |
bf209cc5 | 12 | Source0: http://downloads.sourceforge.net/digikam/%{name}-%{version}.tar.bz2 |
c54707de | 13 | # Source0-md5: 8cd3f5f2141bbb54ba2fd80371582c2c |
c97fe0ce | 14 | URL: http://www.digikam.org/ |
ad6a12d4 | 15 | BuildRequires: Qt3Support-devel >= %{qtver} |
b939ed32 | 16 | BuildRequires: QtCore-devel >= %{qtver} |
2e4093ff | 17 | BuildRequires: QtDesigner-devel >= %{qtver} |
b939ed32 | 18 | BuildRequires: QtSql-devel >= %{qtver} |
ad6a12d4 | 19 | BuildRequires: QtSvg-devel >= %{qtver} |
54e075b6 | 20 | BuildRequires: automoc4 |
53105e77 | 21 | BuildRequires: cmake >= 2.8.0 |
4d8f9783 | 22 | BuildRequires: gettext-devel |
ad6a12d4 | 23 | BuildRequires: jasper-devel |
0459e5cb | 24 | BuildRequires: kde4-kdelibs-devel >= %{kdever} |
f1d85640 | 25 | BuildRequires: kde4-kdepimlibs-devel >= %{kdever} |
ad6a12d4 | 26 | BuildRequires: lcms-devel |
29465dd2 | 27 | BuildRequires: lensfun-devel |
ad6a12d4 | 28 | BuildRequires: libgphoto2-devel |
bf209cc5 AM |
29 | BuildRequires: libkdcraw-devel >= %{kdever} |
30 | BuildRequires: libkdeedu-devel >= %{kdever} | |
31 | BuildRequires: libkexiv2-devel >= %{kdever} | |
32 | BuildRequires: libkipi-devel >= %{kdever} | |
33 | BuildRequires: libksane-devel >= %{kdever} | |
8fed4c5b | 34 | BuildRequires: liblqr-devel >= 0.4.0 |
0459e5cb | 35 | BuildRequires: libtiff-devel |
bf209cc5 | 36 | BuildRequires: marble-devel >= %{kdever} |
08d3e3c0 | 37 | # fixed mysql_install_db in this version |
2ea6fb31 | 38 | BuildRequires: mysql-extras >= 5.5.9-2 |
a49afd90 | 39 | BuildRequires: opencv-devel |
4bd81adb | 40 | BuildRequires: pkgconfig >= 1:0.9.0 |
2ffdcb3e | 41 | BuildRequires: qjson-devel |
53105e77 | 42 | BuildRequires: qt4-build >= %{qtver} |
ad6a12d4 | 43 | BuildRequires: qt4-qmake >= %{qtver} |
16f9da1b | 44 | BuildRequires: rpmbuild(macros) >= 1.129 |
08c8f1c6 | 45 | BuildRequires: sed >= 4.0 |
9177f2c6 | 46 | BuildRequires: shared-desktop-ontologies-devel >= 0.2 |
0459e5cb | 47 | BuildRequires: soprano-devel |
b76f708a | 48 | Requires: QtSql-sqlite3 |
09901b94 | 49 | Obsoletes: digikamimageplugins |
71912001 | 50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
71912001 | 52 | %description |
53 | Designed to be a standalone application to preview and download images | |
5d9f4722 JB |
54 | from a digital camera on a Linux machine. |
55 | ||
c2abdcf5 JR |
56 | %description -l pl.UTF-8 |
57 | Samodzielna aplikacja do oglądania i ściągania obrazków z aparatów | |
5d9f4722 | 58 | cyfrowych pod Linuksem. |
71912001 | 59 | |
16378764 | 60 | %package devel |
61 | Summary: A KDE frontend for gphoto2 - header files | |
9336ef07 | 62 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 - pliki nagłówkowe |
16378764 | 63 | Group: Development/Libraries |
b58138fb | 64 | Requires: %{name} = %{version}-%{release} |
16378764 | 65 | |
66 | %description devel | |
b58138fb | 67 | A KDE frontend for gphoto2 - header files. |
16378764 | 68 | |
c2abdcf5 JR |
69 | %description devel -l pl.UTF-8 |
70 | Interfejs KDE do gphoto2 - pliki nagłówkowe. | |
16378764 | 71 | |
71912001 | 72 | %prep |
c34b6b99 | 73 | %setup -q |
71912001 | 74 | |
028efeaa | 75 | %build |
8fed4c5b AM |
76 | # explicitely remove hne language support (re-add when glibc supports it) |
77 | %{__sed} -i -e 's/add_subdirectory(hne)//g' po/CMakeLists.txt | |
54e075b6 AM |
78 | install -d build |
79 | cd build | |
80 | %cmake \ | |
b939ed32 | 81 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
e8010219 | 82 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ |
b939ed32 | 83 | -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \ |
af5d9803 | 84 | %if "%{_lib}" == "lib64" |
b939ed32 | 85 | -DLIB_SUFFIX=64 \ |
291eb8d8 | 86 | -DLIB_INSTALL_DIR_SUFFIX=64 \ |
af5d9803 | 87 | %endif |
b939ed32 | 88 | ../ |
54e075b6 | 89 | |
71912001 | 90 | %{__make} |
91 | ||
71912001 | 92 | %install |
93 | rm -rf $RPM_BUILD_ROOT | |
5d9f4722 | 94 | |
25125ed6 | 95 | %{__make} -C build install \ |
20118f11 | 96 | DESTDIR=$RPM_BUILD_ROOT \ |
b91f9341 | 97 | kde_htmldir=%{_kdedocdir} \ |
98 | kde_libs_htmldir=%{_kdedocdir} | |
99 | ||
08c8f1c6 | 100 | %find_lang %{name} --with-kde --all-name |
71912001 | 101 | |
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
e8f56759 | 105 | %post -p /sbin/ldconfig |
106 | %postun -p /sbin/ldconfig | |
b58138fb | 107 | |
23238fb9 | 108 | %files -f %{name}.lang |
71912001 | 109 | %defattr(644,root,root,755) |
bf209cc5 | 110 | %doc README |
8fed4c5b | 111 | %attr(755,root,root) %{_bindir}/cleanup_digikamdb |
25125ed6 | 112 | %attr(755,root,root) %{_bindir}/digikam |
bf209cc5 AM |
113 | %attr(755,root,root) %{_bindir}/dngconverter |
114 | %attr(755,root,root) %{_bindir}/dnginfo | |
115 | %attr(755,root,root) %{_bindir}/expoblending | |
116 | %attr(755,root,root) %{_bindir}/libkgeomap_demo | |
291eb8d8 | 117 | %attr(755,root,root) %{_bindir}/panoramagui |
bf209cc5 | 118 | %attr(755,root,root) %{_bindir}/scangui |
15bd38f2 | 119 | %{_datadir}/apps/digikam/lensfun |
e5426923 | 120 | %dir %{_datadir}/apps/digikam/utils |
f1d85640 | 121 | %attr(755,root,root) %{_datadir}/apps/digikam/utils/digikam-camera |
a2d2f379 AM |
122 | %dir %{_datadir}/apps/digikam/database |
123 | %{_datadir}/apps/digikam/database/dbconfig.xml | |
124 | %{_datadir}/apps/digikam/database/mysql-global.conf | |
25125ed6 RT |
125 | %attr(755,root,root) %{_bindir}/digitaglinktree |
126 | %attr(755,root,root) %{_bindir}/showfoto | |
bf209cc5 | 127 | %attr(755,root,root) %ghost %{_libdir}/libdigikamdatabase.so.2 |
25125ed6 | 128 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so.*.*.* |
bf209cc5 AM |
129 | %attr(755,root,root) %ghost %{_libdir}/libdigikamcore.so.2 |
130 | %attr(755,root,root) %{_libdir}/libkface.so.*.*.* | |
131 | %attr(755,root,root) %ghost %{_libdir}/libkface.so.1 | |
132 | %attr(755,root,root) %{_libdir}/libkgeomap.so.*.*.* | |
133 | %attr(755,root,root) %ghost %{_libdir}/libkgeomap.so.1 | |
134 | %attr(755,root,root) %{_libdir}/libkipiplugins.so.*.*.* | |
135 | %attr(755,root,root) %ghost %{_libdir}/libkipiplugins.so.2 | |
136 | %attr(755,root,root) %{_libdir}/libmediawiki.so.*.*.* | |
137 | %attr(755,root,root) %ghost %{_libdir}/libmediawiki.so.1 | |
291eb8d8 AM |
138 | %attr(755,root,root) %{_libdir}/libkvkontakte.so.*.*.* |
139 | %attr(755,root,root) %ghost %{_libdir}/libkvkontakte.so.1 | |
a7ef1db7 | 140 | %attr(755,root,root) %{_libdir}/libdigikamcore.so.*.*.* |
25125ed6 | 141 | %attr(755,root,root) %{_libdir}/kde4/digikamimageplugin_*.so |
8fed4c5b | 142 | %attr(755,root,root) %{_libdir}/kde4/digikamnepomukservice.so |
25125ed6 RT |
143 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamalbums.so |
144 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamdates.so | |
bf209cc5 | 145 | %attr(755,root,root) %{_libdir}/kde4/kio_digikammapimages.so |
25125ed6 RT |
146 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamsearch.so |
147 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamtags.so | |
bf209cc5 | 148 | %attr(755,root,root) %{_libdir}/kde4/kipiplugin_*.so |
a2d2f379 | 149 | %attr(755,root,root) %{_libdir}/kde4/libexec/digikamdatabaseserver |
7499557c | 150 | %{_mandir}/man1/digitaglinktree.1* |
8fed4c5b | 151 | %{_mandir}/man1/cleanup_digikamdb.1* |
c36996c2 | 152 | %dir %{_datadir}/apps/digikam |
c36996c2 | 153 | %{_datadir}/apps/digikam/about |
7499557c | 154 | %{_datadir}/apps/digikam/cameraui.rc |
c36996c2 | 155 | %{_datadir}/apps/digikam/data |
25125ed6 RT |
156 | %{_datadir}/apps/digikam/digikamimageplugin_*.rc |
157 | %{_datadir}/apps/digikam/digikamimagewindowui.rc | |
158 | %{_datadir}/apps/digikam/digikamui.rc | |
7499557c | 159 | %{_datadir}/apps/digikam/icons |
25125ed6 | 160 | %{_datadir}/apps/digikam/lighttablewindowui.rc |
8fed4c5b | 161 | %{_datadir}/apps/digikam/queuemgrwindowui.rc |
7499557c | 162 | %{_datadir}/apps/digikam/tips |
bf209cc5 AM |
163 | %{_datadir}/apps/gpssync |
164 | %{_datadir}/apps/kipiplugin_* | |
165 | %{_datadir}/apps/libkface | |
166 | %{_datadir}/apps/libkgeomap | |
319a89db | 167 | %{_datadir}/apps/showfoto |
25125ed6 RT |
168 | %{_datadir}/kde4/services/digikamalbums.protocol |
169 | %{_datadir}/kde4/services/digikamdates.protocol | |
7499557c | 170 | %{_datadir}/kde4/services/digikamimageplugin_*.desktop |
bf209cc5 | 171 | %{_datadir}/kde4/services/digikammapimages.protocol |
8fed4c5b | 172 | %{_datadir}/kde4/services/digikamnepomukservice.desktop |
25125ed6 RT |
173 | %{_datadir}/kde4/services/digikamsearch.protocol |
174 | %{_datadir}/kde4/services/digikamtags.protocol | |
bf209cc5 | 175 | %{_datadir}/kde4/services/kipiplugin_*.desktop |
8fed4c5b | 176 | %{_datadir}/apps/digikam/digikam.notifyrc |
f1d85640 | 177 | %{_datadir}/apps/solid/actions/digikam-opencamera.desktop |
25125ed6 | 178 | %{_datadir}/kde4/servicetypes/digikamimageplugin.desktop |
bf209cc5 AM |
179 | %{_iconsdir}/*/*/actions/*.png |
180 | %{_iconsdir}/*/*/actions/*.svgz | |
8fed4c5b | 181 | %{_iconsdir}/*/*/apps/*.png |
bf209cc5 | 182 | %{_iconsdir}/*/*/apps/*.svgz |
25125ed6 | 183 | %{_desktopdir}/kde4/*.desktop |
16378764 | 184 | |
185 | %files devel | |
b58138fb | 186 | %defattr(644,root,root,755) |
a7ef1db7 | 187 | %attr(755,root,root) %{_libdir}/libdigikamcore.so |
25125ed6 | 188 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so |
bf209cc5 AM |
189 | %attr(755,root,root) %{_libdir}/libkface.so |
190 | %attr(755,root,root) %{_libdir}/libkgeomap.so | |
191 | %attr(755,root,root) %{_libdir}/libkipiplugins.so | |
192 | %attr(755,root,root) %{_libdir}/libmediawiki.so | |
291eb8d8 | 193 | %attr(755,root,root) %{_libdir}/libkvkontakte.so |
bf209cc5 AM |
194 | %{_pkgconfigdir}/libkface.pc |
195 | %{_pkgconfigdir}/libkgeomap.pc | |
196 | %{_pkgconfigdir}/libmediawiki.pc | |
197 | %{_datadir}/apps/cmake/modules/FindKGeoMap.cmake | |
198 | %{_datadir}/apps/cmake/modules/FindKface.cmake | |
199 | %{_datadir}/apps/cmake/modules/FindMediawiki.cmake | |
291eb8d8 | 200 | %{_libdir}/cmake/LibKVkontakte |
bf209cc5 | 201 | %{_includedir}/libkface |
291eb8d8 | 202 | %{_includedir}/libkvkontakte |
bf209cc5 AM |
203 | %{_includedir}/libkgeomap |
204 | %{_includedir}/libmediawiki |