]>
Commit | Line | Data |
---|---|---|
542fb54c | 1 | # |
b939ed32 | 2 | %define qtver 4.4.3 |
c34b6b99 | 3 | %define kdever 4.2.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 |
e8a4598c | 8 | Version: 0.10.0 |
c34b6b99 | 9 | Release: 1 |
71912001 | 10 | License: GPL |
bbee21d4 | 11 | Group: X11/Applications/Graphics |
c34b6b99 AM |
12 | Source0: http://dl.sourceforge.net/digikam/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 6c6daf958ff4fe93974f1074ba967cd9 | |
c97fe0ce | 14 | URL: http://www.digikam.org/ |
f1d85640 | 15 | Patch0: %{name}-link.patch |
ad6a12d4 | 16 | BuildRequires: Qt3Support-devel >= %{qtver} |
b939ed32 | 17 | BuildRequires: QtCore-devel >= %{qtver} |
18 | BuildRequires: QtSql-devel >= %{qtver} | |
ad6a12d4 | 19 | BuildRequires: QtSvg-devel >= %{qtver} |
54e075b6 | 20 | BuildRequires: automoc4 |
27f6a145 | 21 | BuildRequires: cmake >= 2.6.2 |
ad6a12d4 | 22 | BuildRequires: jasper-devel |
0a708609 | 23 | BuildRequires: kde4-kdeedu-devel >= %{kdever} |
f1d85640 | 24 | BuildRequires: kde4-kdegraphics-devel >= %{kdever} |
25 | BuildRequires: kde4-kdepimlibs-devel >= %{kdever} | |
ad6a12d4 | 26 | BuildRequires: lcms-devel |
29465dd2 | 27 | BuildRequires: lensfun-devel |
ad6a12d4 | 28 | BuildRequires: libgphoto2-devel |
4bd81adb | 29 | BuildRequires: pkgconfig >= 1:0.9.0 |
ad6a12d4 | 30 | BuildRequires: qt4-qmake >= %{qtver} |
16f9da1b | 31 | BuildRequires: rpmbuild(macros) >= 1.129 |
08c8f1c6 | 32 | BuildRequires: sed >= 4.0 |
b76f708a | 33 | Requires: QtSql-sqlite3 |
09901b94 | 34 | Obsoletes: digikamimageplugins |
71912001 | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
71912001 | 37 | %description |
38 | Designed to be a standalone application to preview and download images | |
5d9f4722 JB |
39 | from a digital camera on a Linux machine. |
40 | ||
c2abdcf5 JR |
41 | %description -l pl.UTF-8 |
42 | Samodzielna aplikacja do oglądania i ściągania obrazków z aparatów | |
5d9f4722 | 43 | cyfrowych pod Linuksem. |
71912001 | 44 | |
16378764 | 45 | %package devel |
46 | Summary: A KDE frontend for gphoto2 - header files | |
9336ef07 | 47 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 - pliki nagłówkowe |
16378764 | 48 | Group: Development/Libraries |
b58138fb | 49 | Requires: %{name} = %{version}-%{release} |
16378764 | 50 | |
51 | %description devel | |
b58138fb | 52 | A KDE frontend for gphoto2 - header files. |
16378764 | 53 | |
c2abdcf5 JR |
54 | %description devel -l pl.UTF-8 |
55 | Interfejs KDE do gphoto2 - pliki nagłówkowe. | |
16378764 | 56 | |
71912001 | 57 | %prep |
c34b6b99 | 58 | %setup -q |
f1d85640 | 59 | %patch0 -p0 |
71912001 | 60 | |
028efeaa | 61 | %build |
54e075b6 AM |
62 | install -d build |
63 | cd build | |
64 | %cmake \ | |
b939ed32 | 65 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
66 | -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \ | |
af5d9803 | 67 | %if "%{_lib}" == "lib64" |
b939ed32 | 68 | -DLIB_SUFFIX=64 \ |
af5d9803 | 69 | %endif |
b939ed32 | 70 | ../ |
54e075b6 | 71 | |
71912001 | 72 | %{__make} |
73 | ||
71912001 | 74 | %install |
75 | rm -rf $RPM_BUILD_ROOT | |
5d9f4722 | 76 | |
25125ed6 | 77 | %{__make} -C build install \ |
20118f11 | 78 | DESTDIR=$RPM_BUILD_ROOT \ |
b91f9341 | 79 | kde_htmldir=%{_kdedocdir} \ |
80 | kde_libs_htmldir=%{_kdedocdir} | |
81 | ||
08c8f1c6 | 82 | %find_lang %{name} --with-kde --all-name |
71912001 | 83 | |
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
e8f56759 | 87 | %post -p /sbin/ldconfig |
88 | %postun -p /sbin/ldconfig | |
b58138fb | 89 | |
23238fb9 | 90 | %files -f %{name}.lang |
71912001 | 91 | %defattr(644,root,root,755) |
08c8f1c6 | 92 | %doc AUTHORS ChangeLog README |
25125ed6 | 93 | %attr(755,root,root) %{_bindir}/digikam |
e5426923 | 94 | %dir %{_datadir}/apps/digikam/utils |
f1d85640 | 95 | %attr(755,root,root) %{_datadir}/apps/digikam/utils/digikam-camera |
25125ed6 RT |
96 | %attr(755,root,root) %{_bindir}/digikamthemedesigner |
97 | %attr(755,root,root) %{_bindir}/digitaglinktree | |
98 | %attr(755,root,root) %{_bindir}/showfoto | |
7499557c | 99 | %attr(755,root,root) %ghost %{_libdir}/libdigikamdatabase.so.1 |
25125ed6 | 100 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so.*.*.* |
7499557c | 101 | %attr(755,root,root) %ghost %{_libdir}/libdigikamcore.so.1 |
a7ef1db7 | 102 | %attr(755,root,root) %{_libdir}/libdigikamcore.so.*.*.* |
25125ed6 RT |
103 | %attr(755,root,root) %{_libdir}/kde4/digikamimageplugin_*.so |
104 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamalbums.so | |
105 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamdates.so | |
106 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamsearch.so | |
107 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamtags.so | |
7499557c | 108 | %{_mandir}/man1/digitaglinktree.1* |
c36996c2 | 109 | %dir %{_datadir}/apps/digikam |
c36996c2 | 110 | %{_datadir}/apps/digikam/about |
7499557c | 111 | %{_datadir}/apps/digikam/cameraui.rc |
c36996c2 | 112 | %{_datadir}/apps/digikam/data |
25125ed6 RT |
113 | %{_datadir}/apps/digikam/digikamimageplugin_*.rc |
114 | %{_datadir}/apps/digikam/digikamimagewindowui.rc | |
115 | %{_datadir}/apps/digikam/digikamui.rc | |
7499557c | 116 | %{_datadir}/apps/digikam/icons |
25125ed6 | 117 | %{_datadir}/apps/digikam/lighttablewindowui.rc |
7499557c ER |
118 | %{_datadir}/apps/digikam/themes |
119 | %{_datadir}/apps/digikam/tips | |
319a89db | 120 | %{_datadir}/apps/showfoto |
25125ed6 RT |
121 | %{_datadir}/kde4/services/digikamalbums.protocol |
122 | %{_datadir}/kde4/services/digikamdates.protocol | |
7499557c | 123 | %{_datadir}/kde4/services/digikamimageplugin_*.desktop |
25125ed6 RT |
124 | %{_datadir}/kde4/services/digikamsearch.protocol |
125 | %{_datadir}/kde4/services/digikamtags.protocol | |
f1d85640 | 126 | %{_datadir}/apps/solid/actions/digikam-opencamera.desktop |
25125ed6 | 127 | %{_datadir}/kde4/servicetypes/digikamimageplugin.desktop |
25125ed6 | 128 | %{_desktopdir}/kde4/*.desktop |
16378764 | 129 | |
130 | %files devel | |
b58138fb | 131 | %defattr(644,root,root,755) |
a7ef1db7 | 132 | %attr(755,root,root) %{_libdir}/libdigikamcore.so |
25125ed6 | 133 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so |
78244360 | 134 | %{_includedir}/*.h |
b58138fb | 135 | %{_includedir}/digikam |