]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | %define qtver 4.4.3 | |
3 | %define kdever 4.2.1 | |
4 | ||
5 | Summary: A KDE frontend for gphoto2 | |
6 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 | |
7 | Name: digikam | |
8 | Version: 0.10.0 | |
9 | Release: 4 | |
10 | License: GPL | |
11 | Group: X11/Applications/Graphics | |
12 | Source0: http://dl.sourceforge.net/digikam/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: 6c6daf958ff4fe93974f1074ba967cd9 | |
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} | |
26 | BuildRequires: kde4-kdepimlibs-devel >= %{kdever} | |
27 | BuildRequires: lcms-devel | |
28 | BuildRequires: lensfun-devel | |
29 | BuildRequires: libgphoto2-devel | |
30 | BuildRequires: pkgconfig >= 1:0.9.0 | |
31 | BuildRequires: qt4-qmake >= %{qtver} | |
32 | BuildRequires: rpmbuild(macros) >= 1.129 | |
33 | BuildRequires: sed >= 4.0 | |
34 | Requires: QtSql-sqlite3 | |
35 | Obsoletes: digikamimageplugins | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | Designed to be a standalone application to preview and download images | |
40 | from a digital camera on a Linux machine. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | Samodzielna aplikacja do oglądania i ściągania obrazków z aparatów | |
44 | cyfrowych pod Linuksem. | |
45 | ||
46 | %package devel | |
47 | Summary: A KDE frontend for gphoto2 - header files | |
48 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 - pliki nagłówkowe | |
49 | Group: Development/Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | ||
52 | %description devel | |
53 | A KDE frontend for gphoto2 - header files. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
56 | Interfejs KDE do gphoto2 - pliki nagłówkowe. | |
57 | ||
58 | %prep | |
59 | %setup -q | |
60 | %patch0 -p0 | |
61 | ||
62 | %build | |
63 | install -d build | |
64 | cd build | |
65 | %cmake \ | |
66 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
67 | -DCMAKE_BUILD_TYPE=%{!?debug:release}%{?debug:debug} \ | |
68 | -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \ | |
69 | %if "%{_lib}" == "lib64" | |
70 | -DLIB_SUFFIX=64 \ | |
71 | %endif | |
72 | ../ | |
73 | ||
74 | %{__make} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} -C build install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT \ | |
81 | kde_htmldir=%{_kdedocdir} \ | |
82 | kde_libs_htmldir=%{_kdedocdir} | |
83 | ||
84 | %find_lang %{name} --with-kde --all-name | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post -p /sbin/ldconfig | |
90 | %postun -p /sbin/ldconfig | |
91 | ||
92 | %files -f %{name}.lang | |
93 | %defattr(644,root,root,755) | |
94 | %doc AUTHORS ChangeLog README | |
95 | %attr(755,root,root) %{_bindir}/digikam | |
96 | %dir %{_datadir}/apps/digikam/utils | |
97 | %attr(755,root,root) %{_datadir}/apps/digikam/utils/digikam-camera | |
98 | %attr(755,root,root) %{_bindir}/digikamthemedesigner | |
99 | %attr(755,root,root) %{_bindir}/digitaglinktree | |
100 | %attr(755,root,root) %{_bindir}/showfoto | |
101 | %attr(755,root,root) %ghost %{_libdir}/libdigikamdatabase.so.1 | |
102 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so.*.*.* | |
103 | %attr(755,root,root) %ghost %{_libdir}/libdigikamcore.so.1 | |
104 | %attr(755,root,root) %{_libdir}/libdigikamcore.so.*.*.* | |
105 | %attr(755,root,root) %{_libdir}/kde4/digikamimageplugin_*.so | |
106 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamalbums.so | |
107 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamdates.so | |
108 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamsearch.so | |
109 | %attr(755,root,root) %{_libdir}/kde4/kio_digikamtags.so | |
110 | %{_mandir}/man1/digitaglinktree.1* | |
111 | %dir %{_datadir}/apps/digikam | |
112 | %{_datadir}/apps/digikam/about | |
113 | %{_datadir}/apps/digikam/cameraui.rc | |
114 | %{_datadir}/apps/digikam/data | |
115 | %{_datadir}/apps/digikam/digikamimageplugin_*.rc | |
116 | %{_datadir}/apps/digikam/digikamimagewindowui.rc | |
117 | %{_datadir}/apps/digikam/digikamui.rc | |
118 | %{_datadir}/apps/digikam/icons | |
119 | %{_datadir}/apps/digikam/lighttablewindowui.rc | |
120 | %{_datadir}/apps/digikam/themes | |
121 | %{_datadir}/apps/digikam/tips | |
122 | %{_datadir}/apps/showfoto | |
123 | %{_datadir}/kde4/services/digikamalbums.protocol | |
124 | %{_datadir}/kde4/services/digikamdates.protocol | |
125 | %{_datadir}/kde4/services/digikamimageplugin_*.desktop | |
126 | %{_datadir}/kde4/services/digikamsearch.protocol | |
127 | %{_datadir}/kde4/services/digikamtags.protocol | |
128 | %{_datadir}/apps/solid/actions/digikam-opencamera.desktop | |
129 | %{_datadir}/kde4/servicetypes/digikamimageplugin.desktop | |
130 | %{_desktopdir}/kde4/*.desktop | |
131 | ||
132 | %files devel | |
133 | %defattr(644,root,root,755) | |
134 | %attr(755,root,root) %{_libdir}/libdigikamcore.so | |
135 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so | |
136 | %{_includedir}/*.h | |
137 | %{_includedir}/digikam |