]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | %define qtver 4.8.3 | |
3 | %define kdever 4.10.0 | |
4 | ||
5 | Summary: A KDE frontend for gphoto2 | |
6 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 | |
7 | Name: digikam | |
8 | Version: 3.0.0 | |
9 | Release: 1 | |
10 | License: GPL | |
11 | Group: X11/Applications/Graphics | |
12 | Source0: http://download.kde.org/stable/digikam/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: e1325fa3f8d2ab2e14ca0af7261967db | |
14 | Patch0: %{name}-build.patch | |
15 | URL: http://www.digikam.org/ | |
16 | BuildRequires: ImageMagick-devel | |
17 | BuildRequires: Qt3Support-devel >= %{qtver} | |
18 | BuildRequires: QtCore-devel >= %{qtver} | |
19 | BuildRequires: QtDesigner-devel >= %{qtver} | |
20 | BuildRequires: QtSql-devel >= %{qtver} | |
21 | BuildRequires: QtSvg-devel >= %{qtver} | |
22 | BuildRequires: QtXmlPatterns-devel >= %{qtver} | |
23 | BuildRequires: automoc4 | |
24 | BuildRequires: clapack-devel | |
25 | BuildRequires: cmake >= 2.8.0 | |
26 | BuildRequires: gettext-devel | |
27 | BuildRequires: jasper-devel | |
28 | BuildRequires: kde4-kdelibs-devel >= %{kdever} | |
29 | BuildRequires: kde4-kdepimlibs-devel >= %{kdever} | |
30 | BuildRequires: lcms-devel | |
31 | BuildRequires: lensfun-devel >= 0.2.6 | |
32 | BuildRequires: libf2c-devel >= 20110801 | |
33 | BuildRequires: libgphoto2-devel | |
34 | BuildRequires: kde4-libkdcraw-devel >= %{kdever} | |
35 | BuildRequires: kde4-libkdeedu-devel >= %{kdever} | |
36 | BuildRequires: kde4-libkexiv2-devel >= %{kdever} | |
37 | BuildRequires: kde4-libkipi-devel >= %{kdever} | |
38 | BuildRequires: kde4-libksane-devel >= %{kdever} | |
39 | BuildRequires: liblqr-devel >= 0.4.0 | |
40 | BuildRequires: libpgf-devel | |
41 | BuildRequires: libtiff-devel | |
42 | BuildRequires: kde4-marble-devel >= %{kdever} | |
43 | # fixed mysql_install_db in this version | |
44 | BuildRequires: mysql-extras >= 5.5.9-2 | |
45 | BuildRequires: opencv-devel | |
46 | BuildRequires: pkgconfig >= 1:0.9.0 | |
47 | BuildRequires: qjson-devel >= 0.5 | |
48 | BuildRequires: qt4-build >= %{qtver} | |
49 | BuildRequires: qt4-qmake >= %{qtver} | |
50 | BuildRequires: qt-gstreamer-devel | |
51 | BuildRequires: rpmbuild(macros) >= 1.606 | |
52 | BuildRequires: sed >= 4.0 | |
53 | BuildRequires: shared-desktop-ontologies-devel >= 0.2 | |
54 | BuildRequires: soprano-devel | |
55 | Requires: QtSql-sqlite3 | |
56 | Obsoletes: digikamimageplugins | |
57 | Obsoletes: kipi-plugins | |
58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
59 | ||
60 | %description | |
61 | Designed to be a standalone application to preview and download images | |
62 | from a digital camera on a Linux machine. | |
63 | ||
64 | %description -l pl.UTF-8 | |
65 | Samodzielna aplikacja do oglądania i ściągania obrazków z aparatów | |
66 | cyfrowych pod Linuksem. | |
67 | ||
68 | %package devel | |
69 | Summary: A KDE frontend for gphoto2 - header files | |
70 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 - pliki nagłówkowe | |
71 | Group: Development/Libraries | |
72 | Requires: %{name} = %{version}-%{release} | |
73 | ||
74 | %description devel | |
75 | A KDE frontend for gphoto2 - header files. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Interfejs KDE do gphoto2 - pliki nagłówkowe. | |
79 | ||
80 | %prep | |
81 | %setup -q | |
82 | %patch0 -p1 | |
83 | ||
84 | %build | |
85 | install -d build | |
86 | cd build | |
87 | %cmake \ | |
88 | -DSERVERCMD_MYSQL=%{_sbindir}/mysqld \ | |
89 | -DENABLE_RAWSPEED=ON \ | |
90 | ../ | |
91 | ||
92 | %{__make} | |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %{__make} -C build install \ | |
98 | DESTDIR=$RPM_BUILD_ROOT \ | |
99 | kde_htmldir=%{_kdedocdir} \ | |
100 | kde_libs_htmldir=%{_kdedocdir} | |
101 | ||
102 | %find_lang %{name} --with-kde --all-name | |
103 | ||
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %post -p /sbin/ldconfig | |
108 | %postun -p /sbin/ldconfig | |
109 | ||
110 | %files -f %{name}.lang | |
111 | %defattr(644,root,root,755) | |
112 | %doc README | |
113 | %attr(755,root,root) %{_bindir}/avtest | |
114 | %attr(755,root,root) %{_bindir}/cleanup_digikamdb | |
115 | %attr(755,root,root) %{_bindir}/digikam | |
116 | %attr(755,root,root) %{_bindir}/dngconverter | |
117 | %attr(755,root,root) %{_bindir}/dnginfo | |
118 | %attr(755,root,root) %{_bindir}/expoblending | |
119 | %attr(755,root,root) %{_bindir}/panoramagui | |
120 | %attr(755,root,root) %{_bindir}/photolayoutseditor | |
121 | %attr(755,root,root) %{_bindir}/scangui | |
122 | %dir %{_datadir}/apps/digikam/utils | |
123 | %attr(755,root,root) %{_datadir}/apps/digikam/utils/digikam-camera | |
124 | %dir %{_datadir}/apps/digikam/database | |
125 | %{_datadir}/apps/digikam/database/dbconfig.xml | |
126 | %{_datadir}/apps/digikam/database/mysql-global.conf | |
127 | %{_datadir}/apps/kconf_update/adjustlevelstool.upd | |
128 | %attr(755,root,root) %{_bindir}/digitaglinktree | |
129 | %attr(755,root,root) %{_bindir}/showfoto | |
130 | %attr(755,root,root) %ghost %{_libdir}/libdigikamdatabase.so.3 | |
131 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so.*.*.* | |
132 | %attr(755,root,root) %ghost %{_libdir}/libdigikamcore.so.3 | |
133 | %attr(755,root,root) %{_libdir}/libkface.so.*.*.* | |
134 | %attr(755,root,root) %ghost %{_libdir}/libkface.so.1 | |
135 | %attr(755,root,root) %{_libdir}/libkgeomap.so.*.*.* | |
136 | %attr(755,root,root) %ghost %{_libdir}/libkgeomap.so.1 | |
137 | %attr(755,root,root) %{_libdir}/libkipiplugins.so.*.*.* | |
138 | %attr(755,root,root) %ghost %{_libdir}/libkipiplugins.so.3 | |
139 | %attr(755,root,root) %{_libdir}/libmediawiki.so.*.*.* | |
140 | %attr(755,root,root) %ghost %{_libdir}/libmediawiki.so.1 | |
141 | %attr(755,root,root) %{_libdir}/libkvkontakte.so.*.*.* | |
142 | %attr(755,root,root) %ghost %{_libdir}/libkvkontakte.so.1 | |
143 | %attr(755,root,root) %{_libdir}/libdigikamcore.so.*.*.* | |
144 | %attr(755,root,root) %{_libdir}/kde4/digikamimageplugin_*.so | |
145 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamalbums.so | |
146 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamdates.so | |
147 | %attr(755,root,root) %{_libdir}/kde4/kio_digikammapimages.so | |
148 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamsearch.so | |
149 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamtags.so | |
150 | %attr(755,root,root) %{_libdir}/kde4/kipiplugin_*.so | |
151 | %attr(755,root,root) %{_libdir}/kde4/libexec/digikamdatabaseserver | |
152 | %{_mandir}/man1/digitaglinktree.1* | |
153 | %{_mandir}/man1/cleanup_digikamdb.1* | |
154 | %dir %{_datadir}/apps/digikam | |
155 | %{_datadir}/apps/digikam/about | |
156 | %{_datadir}/apps/digikam/importui.rc | |
157 | %{_datadir}/apps/digikam/data | |
158 | %{_datadir}/apps/digikam/digikamimageplugin_*.rc | |
159 | %{_datadir}/apps/digikam/digikamimagewindowui.rc | |
160 | %{_datadir}/apps/digikam/digikamui.rc | |
161 | %{_datadir}/apps/digikam/icons | |
162 | %{_datadir}/apps/digikam/lighttablewindowui.rc | |
163 | %{_datadir}/apps/digikam/queuemgrwindowui.rc | |
164 | %{_datadir}/apps/digikam/tips | |
165 | %{_datadir}/apps/gpssync | |
166 | %{_datadir}/apps/kipi | |
167 | %{_datadir}/apps/kipiplugin_* | |
168 | %{_datadir}/apps/libkface | |
169 | %{_datadir}/apps/libkgeomap | |
170 | %{_datadir}/apps/photolayoutseditor | |
171 | %{_datadir}/apps/showfoto | |
172 | %{_datadir}/kde4/services/digikamalbums.protocol | |
173 | %{_datadir}/kde4/services/digikamdates.protocol | |
174 | %{_datadir}/kde4/services/digikamimageplugin_*.desktop | |
175 | %{_datadir}/kde4/services/digikammapimages.protocol | |
176 | %{_datadir}/kde4/services/digikamsearch.protocol | |
177 | %{_datadir}/kde4/services/digikamtags.protocol | |
178 | %{_datadir}/kde4/services/kipiplugin_*.desktop | |
179 | %{_datadir}/apps/digikam/digikam.notifyrc | |
180 | %{_datadir}/apps/solid/actions/digikam-opencamera.desktop | |
181 | %{_datadir}/kde4/servicetypes/digikamimageplugin.desktop | |
182 | %{_datadir}/kde4/servicetypes/photolayoutseditorborderplugin.desktop | |
183 | %{_datadir}/kde4/servicetypes/photolayoutseditoreffectplugin.desktop | |
184 | %{_datadir}/config.kcfg/PLEConfigSkeleton.kcfgc | |
185 | %{_datadir}/templates/kipiplugins_photolayoutseditor | |
186 | %{_iconsdir}/*/*/actions/*.png | |
187 | %{_iconsdir}/*/*/actions/*.svgz | |
188 | %{_iconsdir}/*/*/apps/*.png | |
189 | %{_iconsdir}/*/*/apps/*.svgz | |
190 | %{_desktopdir}/kde4/*.desktop | |
191 | ||
192 | %files devel | |
193 | %defattr(644,root,root,755) | |
194 | %attr(755,root,root) %{_libdir}/libdigikamcore.so | |
195 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so | |
196 | %attr(755,root,root) %{_libdir}/libkface.so | |
197 | %attr(755,root,root) %{_libdir}/libkgeomap.so | |
198 | %attr(755,root,root) %{_libdir}/libkipiplugins.so | |
199 | %attr(755,root,root) %{_libdir}/libmediawiki.so | |
200 | %attr(755,root,root) %{_libdir}/libkvkontakte.so | |
201 | %{_pkgconfigdir}/libkface.pc | |
202 | %{_pkgconfigdir}/libkgeomap.pc | |
203 | %{_pkgconfigdir}/libmediawiki.pc | |
204 | %{_datadir}/apps/cmake/modules/FindKGeoMap.cmake | |
205 | %{_datadir}/apps/cmake/modules/FindKface.cmake | |
206 | %{_datadir}/apps/cmake/modules/FindMediawiki.cmake | |
207 | %{_libdir}/cmake/LibKVkontakte | |
208 | %{_includedir}/libkface | |
209 | %{_includedir}/libkvkontakte | |
210 | %{_includedir}/libkgeomap | |
211 | %{_includedir}/libmediawiki |