]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | %define qtver 4.8.3 | |
3 | %define kdever 4.10.0 | |
4 | ||
5 | Summary: A KDE frontend for gphoto2 | |
6 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 | |
7 | Name: digikam | |
8 | Version: 5.9.0 | |
9 | Release: 3 | |
10 | License: GPL | |
11 | Group: X11/Applications/Graphics | |
12 | Source0: http://download.kde.org/stable/digikam/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: 7811cc633e7e1770d1d9860fa36ea251 | |
14 | URL: http://www.digikam.org/ | |
15 | BuildRequires: ImageMagick-devel | |
16 | BuildRequires: clapack-devel | |
17 | BuildRequires: cmake >= 2.8.0 | |
18 | BuildRequires: eigen3 | |
19 | BuildRequires: exiv2-devel >= 0.26 | |
20 | BuildRequires: gettext-tools | |
21 | BuildRequires: jasper-devel | |
22 | BuildRequires: java-opencv | |
23 | BuildRequires: kf5-kcoreaddons-devel | |
24 | BuildRequires: kf5-kdoctools >= 5.38.0 | |
25 | BuildRequires: kf5-kfilemetadata-devel | |
26 | BuildRequires: kf5-kiconthemes-devel | |
27 | BuildRequires: kf5-knotifications-devel | |
28 | BuildRequires: kf5-knotifyconfig-devel | |
29 | BuildRequires: kf5-kservice-devel | |
30 | BuildRequires: kf5-solid-devel | |
31 | BuildRequires: kf5-threadweaver-devel | |
32 | BuildRequires: kf5-kwindowsystem-devel | |
33 | BuildRequires: kf5-kxmlgui-devel | |
34 | BuildRequires: lcms-devel | |
35 | BuildRequires: lensfun-devel >= 0.2.6 | |
36 | BuildRequires: libf2c-devel >= 20110801 | |
37 | BuildRequires: libgphoto2-devel | |
38 | BuildRequires: liblqr-devel >= 0.4.0 | |
39 | BuildRequires: libpgf-devel | |
40 | BuildRequires: libtiff-devel | |
41 | BuildRequires: opencv-devel | |
42 | BuildRequires: pkgconfig >= 1:0.9.0 | |
43 | BuildRequires: qjson-devel >= 0.5 | |
44 | BuildRequires: qtav-devel | |
45 | BuildRequires: rpmbuild(macros) >= 1.606 | |
46 | BuildRequires: sed >= 4.0 | |
47 | BuildRequires: shared-desktop-ontologies-devel >= 0.2 | |
48 | BuildRequires: soprano-devel | |
49 | Requires: Qt5Sql-sqldriver-mysql | |
50 | Requires: Qt5Sql-sqldriver-sqlite3 | |
51 | Obsoletes: digikamimageplugins | |
52 | Obsoletes: kipi-plugins | |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %description | |
56 | Designed to be a standalone application to preview and download images | |
57 | from a digital camera on a Linux machine. | |
58 | ||
59 | %description -l pl.UTF-8 | |
60 | Samodzielna aplikacja do oglądania i ściągania obrazków z aparatów | |
61 | cyfrowych pod Linuksem. | |
62 | ||
63 | %package devel | |
64 | Summary: A KDE frontend for gphoto2 - header files | |
65 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 - pliki nagłówkowe | |
66 | Group: Development/Libraries | |
67 | Requires: %{name} = %{version}-%{release} | |
68 | ||
69 | %description devel | |
70 | A KDE frontend for gphoto2 - header files. | |
71 | ||
72 | %description devel -l pl.UTF-8 | |
73 | Interfejs KDE do gphoto2 - pliki nagłówkowe. | |
74 | ||
75 | %prep | |
76 | %setup -q | |
77 | ||
78 | %build | |
79 | install -d build | |
80 | cd build | |
81 | %cmake \ | |
82 | -DENABLE_AKONADICONTACTSUPPORT:BOOL=ON \ | |
83 | -DENABLE_APPSTYLES:BOOL=ON \ | |
84 | -DENABLE_KFILEMETADATASUPPORT:BOOL=ON \ | |
85 | -DENABLE_MEDIAPLAYER:BOOL=ON \ | |
86 | -DENABLE_MYSQLSUPPORT:BOOL=ON \ | |
87 | -DENABLE_INTERNALMYSQL:BOOL=ON \ | |
88 | -DENABLE_OPENCV3:BOOL=ON \ | |
89 | -DDIGIKAMSC_COMPILE_KIPIPLUGINS=ON \ | |
90 | ../ | |
91 | ||
92 | %{__make} | |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %{__make} -C build install \ | |
98 | DESTDIR=$RPM_BUILD_ROOT \ | |
99 | kde_htmldir=%{_kdedocdir} \ | |
100 | kde_libs_htmldir=%{_kdedocdir} | |
101 | ||
102 | %find_lang %{name} --with-kde --all-name | |
103 | ||
104 | # libkipi belongs to kde4-libkipi and libkipi.mo belongs to kde4-l10n | |
105 | %{__sed} -i -e '/.*\/libkipi.mo$/d' %{name}.lang | |
106 | ||
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %post -p /sbin/ldconfig | |
111 | %postun -p /sbin/ldconfig | |
112 | ||
113 | %files -f %{name}.lang | |
114 | %defattr(644,root,root,755) | |
115 | %doc README | |
116 | %attr(755,root,root) %{_bindir}/cleanup_digikamdb | |
117 | %attr(755,root,root) %{_bindir}/digikam | |
118 | %attr(755,root,root) %{_bindir}/digitaglinktree | |
119 | %attr(755,root,root) %{_bindir}/showfoto | |
120 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so.*.*.* | |
121 | %attr(755,root,root) %{_libdir}/libdigikamgui.so.*.* | |
122 | %attr(755,root,root) %{_libdir}/libdigikamcore.so.*.*.* | |
123 | %{_datadir}/%{name} | |
124 | %{_datadir}/knotifications5/digikam.notifyrc | |
125 | %{_datadir}/kxmlgui5/digikam | |
126 | %{_datadir}/kxmlgui5/showfoto | |
127 | %{_desktopdir}/org.kde.digikam.desktop | |
128 | %{_desktopdir}/org.kde.showfoto.desktop | |
129 | %{_datadir}/metainfo/org.kde.digikam.appdata.xml | |
130 | %{_datadir}/metainfo/org.kde.showfoto.appdata.xml | |
131 | %{_datadir}/showfoto | |
132 | %{_datadir}/solid/actions/digikam-opencamera.desktop | |
133 | %{_mandir}/man1/digitaglinktree.1* | |
134 | %{_mandir}/man1/cleanup_digikamdb.1* | |
135 | %{_iconsdir}/*/*/actions/*.png | |
136 | %{_iconsdir}/*/*/apps/*.png | |
137 | %{_iconsdir}/*/*/apps/*.svgz | |
138 | ||
139 | %files devel | |
140 | %defattr(644,root,root,755) | |
141 | %attr(755,root,root) %{_libdir}/libdigikamcore.so | |
142 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so | |
143 | %attr(755,root,root) %{_libdir}/libdigikamgui.so |