]>
Commit | Line | Data |
---|---|---|
baf13f93 | 1 | %define kdeappsver 21.04.3 |
76ed2702 | 2 | %define kframever 5.56.0 |
137496d6 WF |
3 | %define qtver 5.9.0 |
4 | %define kaname libkgapi | |
5 | Summary: libkgapi | |
6 | Name: ka5-%{kaname} | |
baf13f93 WF |
7 | Version: 21.04.3 |
8 | Release: 1 | |
137496d6 WF |
9 | License: GPL v2+/LGPL v2.1+ |
10 | Group: X11/Libraries | |
f278bc66 | 11 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
baf13f93 | 12 | # Source0-md5: 3a275c6d6365b76b83689f955960bc01 |
137496d6 WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
15 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
16 | BuildRequires: Qt5Network-devel | |
17 | BuildRequires: Qt5Positioning-devel >= 5.11.1 | |
18 | BuildRequires: Qt5PrintSupport-devel >= 5.11.1 | |
19 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
20 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
21 | BuildRequires: Qt5Test-devel | |
22 | BuildRequires: Qt5WebChannel-devel >= 5.11.1 | |
23 | BuildRequires: Qt5WebEngine-devel >= 5.11.1 | |
24 | BuildRequires: Qt5Widgets-devel | |
25 | BuildRequires: Qt5Xml-devel | |
26 | BuildRequires: cmake >= 2.8.12 | |
27 | BuildRequires: cyrus-sasl-devel | |
28 | BuildRequires: gettext-devel | |
76ed2702 | 29 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
f278bc66 WF |
30 | BuildRequires: kf5-kcalendarcore-devel >= %{kframever} |
31 | BuildRequires: kf5-kcontacts-devel >= %{kframever} | |
76ed2702 WF |
32 | BuildRequires: kf5-kio-devel >= %{kframever} |
33 | BuildRequires: kf5-kwallet-devel >= %{kframever} | |
34 | BuildRequires: kf5-kwindowsystem-devel >= %{kframever} | |
35 | BuildRequires: ninja | |
137496d6 WF |
36 | BuildRequires: qt5-build >= %{qtver} |
37 | BuildRequires: rpmbuild(macros) >= 1.164 | |
38 | BuildRequires: shared-mime-info | |
39 | BuildRequires: tar >= 1:1.22 | |
40 | BuildRequires: xz | |
71441f11 | 41 | ExclusiveArch: i686 %{x8664} |
137496d6 WF |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
44 | %description | |
45 | LibKGAPI is a KDE-based library for accessing various Google services | |
46 | via their public API. | |
47 | ||
ce90dac0 WF |
48 | %description -l pl.UTF-8 |
49 | LibKGAPI is biblioteką KDE do dostępu do różnych usług Google'a | |
50 | korzystając z ich publicznego API. | |
51 | ||
137496d6 WF |
52 | %package devel |
53 | Summary: Header files for %{kaname} development | |
54 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
55 | Group: X11/Development/Libraries | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
58 | %description devel | |
59 | Header files for %{kaname} development. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
63 | ||
64 | %prep | |
65 | %setup -q -n %{kaname}-%{version} | |
66 | ||
67 | %build | |
68 | install -d build | |
69 | cd build | |
76ed2702 WF |
70 | %cmake -G Ninja \ |
71 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
137496d6 WF |
72 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
73 | .. | |
76ed2702 | 74 | %ninja_build |
137496d6 WF |
75 | |
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
76ed2702 | 78 | %ninja_install -C build |
137496d6 WF |
79 | |
80 | %find_lang %{kaname}_qt --with-qm --all-name --with-kde | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
88 | %files -f %{kaname}_qt.lang | |
89 | %defattr(644,root,root,755) | |
55c90d81 | 90 | %ghost %{_libdir}/libKPimGAPIBlogger.so.5 |
137496d6 | 91 | %attr(755,root,root) %{_libdir}/libKPimGAPIBlogger.so.5.*.* |
55c90d81 | 92 | %ghost %{_libdir}/libKPimGAPICalendar.so.5 |
137496d6 | 93 | %attr(755,root,root) %{_libdir}/libKPimGAPICalendar.so.5.*.* |
55c90d81 | 94 | %ghost %{_libdir}/libKPimGAPIContacts.so.5 |
137496d6 | 95 | %attr(755,root,root) %{_libdir}/libKPimGAPIContacts.so.5.*.* |
55c90d81 | 96 | %ghost %{_libdir}/libKPimGAPICore.so.5 |
137496d6 | 97 | %attr(755,root,root) %{_libdir}/libKPimGAPICore.so.5.*.* |
55c90d81 | 98 | %ghost %{_libdir}/libKPimGAPIDrive.so.5 |
137496d6 | 99 | %attr(755,root,root) %{_libdir}/libKPimGAPIDrive.so.5.*.* |
55c90d81 | 100 | %ghost %{_libdir}/libKPimGAPILatitude.so.5 |
137496d6 | 101 | %attr(755,root,root) %{_libdir}/libKPimGAPILatitude.so.5.*.* |
55c90d81 | 102 | %ghost %{_libdir}/libKPimGAPIMaps.so.5 |
137496d6 | 103 | %attr(755,root,root) %{_libdir}/libKPimGAPIMaps.so.5.*.* |
55c90d81 | 104 | %ghost %{_libdir}/libKPimGAPITasks.so.5 |
137496d6 | 105 | %attr(755,root,root) %{_libdir}/libKPimGAPITasks.so.5.*.* |
064c0f63 | 106 | %{_libdir}/sasl2/libkdexoauth2.so.3 |
137496d6 | 107 | %attr(755,root,root) %{_libdir}/sasl2/libkdexoauth2.so.3.*.* |
f278bc66 | 108 | %{_datadir}/qlogging-categories5/libkgapi.categories |
137496d6 WF |
109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %{_includedir}/KPim/KGAPI | |
113 | %{_includedir}/KPim/kgapi_version.h | |
114 | %{_libdir}/cmake/KPimGAPI | |
55c90d81 WF |
115 | %{_libdir}/libKPimGAPIBlogger.so |
116 | %{_libdir}/libKPimGAPICalendar.so | |
117 | %{_libdir}/libKPimGAPIContacts.so | |
118 | %{_libdir}/libKPimGAPICore.so | |
119 | %{_libdir}/libKPimGAPIDrive.so | |
120 | %{_libdir}/libKPimGAPIMaps.so | |
121 | %{_libdir}/libKPimGAPILatitude.so | |
122 | %{_libdir}/libKPimGAPITasks.so | |
123 | %{_libdir}/sasl2/libkdexoauth2.so | |
137496d6 WF |
124 | %{_libdir}/qt5/mkspecs/modules/qt_KGAPIBlogger.pri |
125 | %{_libdir}/qt5/mkspecs/modules/qt_KGAPICalendar.pri | |
126 | %{_libdir}/qt5/mkspecs/modules/qt_KGAPIContacts.pri | |
127 | %{_libdir}/qt5/mkspecs/modules/qt_KGAPICore.pri | |
128 | %{_libdir}/qt5/mkspecs/modules/qt_KGAPIDrive.pri | |
129 | %{_libdir}/qt5/mkspecs/modules/qt_KGAPILatitude.pri | |
130 | %{_libdir}/qt5/mkspecs/modules/qt_KGAPIMaps.pri | |
131 | %{_libdir}/qt5/mkspecs/modules/qt_KGAPITasks.pri |