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