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