]>
Commit | Line | Data |
---|---|---|
542fb54c | 1 | # |
15bd38f2 | 2 | %define qtver 4.7.0 |
0b1f5db8 | 3 | %define kdever 4.5.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 |
15bd38f2 | 8 | Version: 1.5.0 |
7cb1bd83 | 9 | Release: 1 |
71912001 | 10 | License: GPL |
bbee21d4 | 11 | Group: X11/Applications/Graphics |
c34b6b99 | 12 | Source0: http://dl.sourceforge.net/digikam/%{name}-%{version}.tar.bz2 |
15bd38f2 | 13 | # Source0-md5: eb3097836fe032d0031578d5b93223f3 |
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} |
2e4093ff | 18 | BuildRequires: QtDesigner-devel >= %{qtver} |
b939ed32 | 19 | BuildRequires: QtSql-devel >= %{qtver} |
ad6a12d4 | 20 | BuildRequires: QtSvg-devel >= %{qtver} |
54e075b6 | 21 | BuildRequires: automoc4 |
53105e77 | 22 | BuildRequires: cmake >= 2.8.0 |
4d8f9783 | 23 | BuildRequires: gettext-devel |
ad6a12d4 | 24 | BuildRequires: jasper-devel |
0a708609 | 25 | BuildRequires: kde4-kdeedu-devel >= %{kdever} |
f1d85640 | 26 | BuildRequires: kde4-kdegraphics-devel >= %{kdever} |
0459e5cb | 27 | BuildRequires: kde4-kdelibs-devel >= %{kdever} |
f1d85640 | 28 | BuildRequires: kde4-kdepimlibs-devel >= %{kdever} |
ad6a12d4 | 29 | BuildRequires: lcms-devel |
29465dd2 | 30 | BuildRequires: lensfun-devel |
ad6a12d4 | 31 | BuildRequires: libgphoto2-devel |
8fed4c5b | 32 | BuildRequires: liblqr-devel >= 0.4.0 |
0459e5cb | 33 | BuildRequires: libtiff-devel |
08d3e3c0 | 34 | # fixed mysql_install_db in this version |
35 | BuildRequires: mysql >= 5.1.49-2 | |
4bd81adb | 36 | BuildRequires: pkgconfig >= 1:0.9.0 |
53105e77 | 37 | BuildRequires: qt4-build >= %{qtver} |
ad6a12d4 | 38 | BuildRequires: qt4-qmake >= %{qtver} |
16f9da1b | 39 | BuildRequires: rpmbuild(macros) >= 1.129 |
08c8f1c6 | 40 | BuildRequires: sed >= 4.0 |
0459e5cb | 41 | BuildRequires: soprano-devel |
b76f708a | 42 | Requires: QtSql-sqlite3 |
09901b94 | 43 | Obsoletes: digikamimageplugins |
71912001 | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
71912001 | 46 | %description |
47 | Designed to be a standalone application to preview and download images | |
5d9f4722 JB |
48 | from a digital camera on a Linux machine. |
49 | ||
c2abdcf5 JR |
50 | %description -l pl.UTF-8 |
51 | Samodzielna aplikacja do oglądania i ściągania obrazków z aparatów | |
5d9f4722 | 52 | cyfrowych pod Linuksem. |
71912001 | 53 | |
16378764 | 54 | %package devel |
55 | Summary: A KDE frontend for gphoto2 - header files | |
9336ef07 | 56 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 - pliki nagłówkowe |
16378764 | 57 | Group: Development/Libraries |
b58138fb | 58 | Requires: %{name} = %{version}-%{release} |
16378764 | 59 | |
60 | %description devel | |
b58138fb | 61 | A KDE frontend for gphoto2 - header files. |
16378764 | 62 | |
c2abdcf5 JR |
63 | %description devel -l pl.UTF-8 |
64 | Interfejs KDE do gphoto2 - pliki nagłówkowe. | |
16378764 | 65 | |
71912001 | 66 | %prep |
c34b6b99 | 67 | %setup -q |
f1d85640 | 68 | %patch0 -p0 |
71912001 | 69 | |
028efeaa | 70 | %build |
8fed4c5b AM |
71 | # explicitely remove hne language support (re-add when glibc supports it) |
72 | %{__sed} -i -e 's/add_subdirectory(hne)//g' po/CMakeLists.txt | |
54e075b6 AM |
73 | install -d build |
74 | cd build | |
75 | %cmake \ | |
b939ed32 | 76 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
e8010219 | 77 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ |
b939ed32 | 78 | -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \ |
af5d9803 | 79 | %if "%{_lib}" == "lib64" |
b939ed32 | 80 | -DLIB_SUFFIX=64 \ |
af5d9803 | 81 | %endif |
b939ed32 | 82 | ../ |
54e075b6 | 83 | |
71912001 | 84 | %{__make} |
85 | ||
71912001 | 86 | %install |
87 | rm -rf $RPM_BUILD_ROOT | |
5d9f4722 | 88 | |
25125ed6 | 89 | %{__make} -C build install \ |
20118f11 | 90 | DESTDIR=$RPM_BUILD_ROOT \ |
b91f9341 | 91 | kde_htmldir=%{_kdedocdir} \ |
92 | kde_libs_htmldir=%{_kdedocdir} | |
93 | ||
08c8f1c6 | 94 | %find_lang %{name} --with-kde --all-name |
71912001 | 95 | |
96 | %clean | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
e8f56759 | 99 | %post -p /sbin/ldconfig |
100 | %postun -p /sbin/ldconfig | |
b58138fb | 101 | |
23238fb9 | 102 | %files -f %{name}.lang |
71912001 | 103 | %defattr(644,root,root,755) |
08c8f1c6 | 104 | %doc AUTHORS ChangeLog README |
8fed4c5b | 105 | %attr(755,root,root) %{_bindir}/cleanup_digikamdb |
25125ed6 | 106 | %attr(755,root,root) %{_bindir}/digikam |
15bd38f2 | 107 | %{_datadir}/apps/digikam/lensfun |
e5426923 | 108 | %dir %{_datadir}/apps/digikam/utils |
f1d85640 | 109 | %attr(755,root,root) %{_datadir}/apps/digikam/utils/digikam-camera |
a2d2f379 AM |
110 | %dir %{_datadir}/apps/digikam/database |
111 | %{_datadir}/apps/digikam/database/dbconfig.xml | |
112 | %{_datadir}/apps/digikam/database/mysql-global.conf | |
25125ed6 RT |
113 | %attr(755,root,root) %{_bindir}/digitaglinktree |
114 | %attr(755,root,root) %{_bindir}/showfoto | |
7499557c | 115 | %attr(755,root,root) %ghost %{_libdir}/libdigikamdatabase.so.1 |
25125ed6 | 116 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so.*.*.* |
7499557c | 117 | %attr(755,root,root) %ghost %{_libdir}/libdigikamcore.so.1 |
a7ef1db7 | 118 | %attr(755,root,root) %{_libdir}/libdigikamcore.so.*.*.* |
25125ed6 | 119 | %attr(755,root,root) %{_libdir}/kde4/digikamimageplugin_*.so |
8fed4c5b | 120 | %attr(755,root,root) %{_libdir}/kde4/digikamnepomukservice.so |
25125ed6 RT |
121 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamalbums.so |
122 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamdates.so | |
123 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamsearch.so | |
124 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamtags.so | |
53105e77 | 125 | %attr(755,root,root) %{_libdir}/kde4/plugins/marble/ExternalDraw.so |
a2d2f379 | 126 | %attr(755,root,root) %{_libdir}/kde4/libexec/digikamdatabaseserver |
7499557c | 127 | %{_mandir}/man1/digitaglinktree.1* |
8fed4c5b | 128 | %{_mandir}/man1/cleanup_digikamdb.1* |
c36996c2 | 129 | %dir %{_datadir}/apps/digikam |
c36996c2 | 130 | %{_datadir}/apps/digikam/about |
7499557c | 131 | %{_datadir}/apps/digikam/cameraui.rc |
c36996c2 | 132 | %{_datadir}/apps/digikam/data |
25125ed6 RT |
133 | %{_datadir}/apps/digikam/digikamimageplugin_*.rc |
134 | %{_datadir}/apps/digikam/digikamimagewindowui.rc | |
135 | %{_datadir}/apps/digikam/digikamui.rc | |
7499557c | 136 | %{_datadir}/apps/digikam/icons |
25125ed6 | 137 | %{_datadir}/apps/digikam/lighttablewindowui.rc |
8fed4c5b | 138 | %{_datadir}/apps/digikam/queuemgrwindowui.rc |
7499557c ER |
139 | %{_datadir}/apps/digikam/themes |
140 | %{_datadir}/apps/digikam/tips | |
319a89db | 141 | %{_datadir}/apps/showfoto |
25125ed6 RT |
142 | %{_datadir}/kde4/services/digikamalbums.protocol |
143 | %{_datadir}/kde4/services/digikamdates.protocol | |
7499557c | 144 | %{_datadir}/kde4/services/digikamimageplugin_*.desktop |
8fed4c5b | 145 | %{_datadir}/kde4/services/digikamnepomukservice.desktop |
25125ed6 RT |
146 | %{_datadir}/kde4/services/digikamsearch.protocol |
147 | %{_datadir}/kde4/services/digikamtags.protocol | |
8fed4c5b | 148 | %{_datadir}/apps/digikam/digikam.notifyrc |
f1d85640 | 149 | %{_datadir}/apps/solid/actions/digikam-opencamera.desktop |
25125ed6 | 150 | %{_datadir}/kde4/servicetypes/digikamimageplugin.desktop |
8fed4c5b | 151 | %{_iconsdir}/*/*/apps/*.png |
25125ed6 | 152 | %{_desktopdir}/kde4/*.desktop |
16378764 | 153 | |
154 | %files devel | |
b58138fb | 155 | %defattr(644,root,root,755) |
a7ef1db7 | 156 | %attr(755,root,root) %{_libdir}/libdigikamcore.so |
25125ed6 | 157 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so |
78244360 | 158 | %{_includedir}/*.h |
b58138fb | 159 | %{_includedir}/digikam |