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