]>
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.8.0 | |
9 | Release: 1 | |
10 | License: GPL | |
11 | Group: X11/Applications/Graphics | |
12 | Source0: http://download.kde.org/stable/digikam/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: 39ae21083ab47acbb8ca89f73716fecb | |
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: rpmbuild(macros) >= 1.606 | |
45 | BuildRequires: sed >= 4.0 | |
46 | BuildRequires: shared-desktop-ontologies-devel >= 0.2 | |
47 | BuildRequires: soprano-devel | |
48 | Requires: Qt5Sql-sqldriver-mysql | |
49 | Requires: Qt5Sql-sqldriver-sqlite3 | |
50 | Obsoletes: digikamimageplugins | |
51 | Obsoletes: kipi-plugins | |
52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
53 | ||
54 | %description | |
55 | Designed to be a standalone application to preview and download images | |
56 | from a digital camera on a Linux machine. | |
57 | ||
58 | %description -l pl.UTF-8 | |
59 | Samodzielna aplikacja do oglądania i ściągania obrazków z aparatów | |
60 | cyfrowych pod Linuksem. | |
61 | ||
62 | %package devel | |
63 | Summary: A KDE frontend for gphoto2 - header files | |
64 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 - pliki nagłówkowe | |
65 | Group: Development/Libraries | |
66 | Requires: %{name} = %{version}-%{release} | |
67 | ||
68 | %description devel | |
69 | A KDE frontend for gphoto2 - header files. | |
70 | ||
71 | %description devel -l pl.UTF-8 | |
72 | Interfejs KDE do gphoto2 - pliki nagłówkowe. | |
73 | ||
74 | %prep | |
75 | %setup -q | |
76 | ||
77 | %build | |
78 | install -d build | |
79 | cd build | |
80 | %cmake \ | |
81 | -DENABLE_AKONADICONTACTSUPPORT:BOOL=ON \ | |
82 | -DENABLE_APPSTYLES:BOOL=ON \ | |
83 | -DENABLE_KFILEMETADATASUPPORT:BOOL=ON \ | |
84 | -DENABLE_MEDIAPLAYER:BOOL=OFF \ | |
85 | -DENABLE_MYSQLSUPPORT:BOOL=ON \ | |
86 | -DENABLE_INTERNALMYSQL:BOOL=ON \ | |
87 | -DENABLE_OPENCV3:BOOL=ON \ | |
88 | -DDIGIKAMSC_COMPILE_KIPIPLUGINS=ON \ | |
89 | ../ | |
90 | ||
91 | %{__make} | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} -C build install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT \ | |
98 | kde_htmldir=%{_kdedocdir} \ | |
99 | kde_libs_htmldir=%{_kdedocdir} | |
100 | ||
101 | %find_lang %{name} --with-kde --all-name | |
102 | ||
103 | # libkipi belongs to kde4-libkipi and libkipi.mo belongs to kde4-l10n | |
104 | %{__sed} -i -e '/.*\/libkipi.mo$/d' %{name}.lang | |
105 | ||
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post -p /sbin/ldconfig | |
110 | %postun -p /sbin/ldconfig | |
111 | ||
112 | %files -f %{name}.lang | |
113 | %defattr(644,root,root,755) | |
114 | %doc README | |
115 | %attr(755,root,root) %{_bindir}/cleanup_digikamdb | |
116 | %attr(755,root,root) %{_bindir}/digikam | |
117 | %attr(755,root,root) %{_bindir}/digitaglinktree | |
118 | %attr(755,root,root) %{_bindir}/showfoto | |
119 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so.*.*.* | |
120 | %attr(755,root,root) %{_libdir}/libdigikamgui.so.*.* | |
121 | %attr(755,root,root) %{_libdir}/libdigikamcore.so.*.*.* | |
122 | %{_datadir}/%{name} | |
123 | %{_datadir}/knotifications5/digikam.notifyrc | |
124 | %{_datadir}/kxmlgui5/digikam | |
125 | %{_datadir}/kxmlgui5/showfoto | |
126 | %{_desktopdir}/org.kde.digikam.desktop | |
127 | %{_desktopdir}/org.kde.showfoto.desktop | |
128 | %{_datadir}/metainfo/org.kde.digikam.appdata.xml | |
129 | %{_datadir}/metainfo/org.kde.showfoto.appdata.xml | |
130 | %{_datadir}/showfoto | |
131 | %{_datadir}/solid/actions/digikam-opencamera.desktop | |
132 | %{_mandir}/man1/digitaglinktree.1* | |
133 | %{_mandir}/man1/cleanup_digikamdb.1* | |
134 | %{_iconsdir}/*/*/actions/*.png | |
135 | %{_iconsdir}/*/*/apps/*.png | |
136 | %{_iconsdir}/*/*/apps/*.svgz | |
137 | ||
138 | %files devel | |
139 | %defattr(644,root,root,755) | |
140 | %attr(755,root,root) %{_libdir}/libdigikamcore.so | |
141 | %attr(755,root,root) %{_libdir}/libdigikamdatabase.so | |
142 | %attr(755,root,root) %{_libdir}/libdigikamgui.so |