]>
Commit | Line | Data |
---|---|---|
41ea2bc3 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
964d3167 | 4 | %bcond_without webengine # build without webengine |
70922bdc | 5 | %define kdeappsver 23.04.3 |
cfb3ea7c WF |
6 | %define kframever 5.94.0 |
7 | %define qtver 5.15.2 | |
137496d6 | 8 | %define kaname libkgapi |
964d3167 WF |
9 | %ifarch x32 |
10 | %undefine with_webengine | |
11 | %endif | |
137496d6 WF |
12 | Summary: libkgapi |
13 | Name: ka5-%{kaname} | |
70922bdc | 14 | Version: 23.04.3 |
7618c29c | 15 | Release: 1 |
137496d6 WF |
16 | License: GPL v2+/LGPL v2.1+ |
17 | Group: X11/Libraries | |
12e85133 | 18 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
70922bdc | 19 | # Source0-md5: 0c3c982486f7b58c81ac963591644378 |
137496d6 WF |
20 | URL: http://www.kde.org/ |
21 | BuildRequires: Qt5Core-devel >= %{qtver} | |
22 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
23 | BuildRequires: Qt5Network-devel | |
24 | BuildRequires: Qt5Positioning-devel >= 5.11.1 | |
25 | BuildRequires: Qt5PrintSupport-devel >= 5.11.1 | |
26 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
27 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
28 | BuildRequires: Qt5Test-devel | |
964d3167 WF |
29 | %{?with_webengine:BuildRequires: Qt5WebChannel-devel >= 5.11.1} |
30 | %{?with_webengine:BuildRequires: Qt5WebEngine-devel >= 5.11.1} | |
137496d6 WF |
31 | BuildRequires: Qt5Widgets-devel |
32 | BuildRequires: Qt5Xml-devel | |
33 | BuildRequires: cmake >= 2.8.12 | |
34 | BuildRequires: cyrus-sasl-devel | |
35 | BuildRequires: gettext-devel | |
76ed2702 | 36 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
f278bc66 WF |
37 | BuildRequires: kf5-kcalendarcore-devel >= %{kframever} |
38 | BuildRequires: kf5-kcontacts-devel >= %{kframever} | |
76ed2702 WF |
39 | BuildRequires: kf5-kio-devel >= %{kframever} |
40 | BuildRequires: kf5-kwallet-devel >= %{kframever} | |
41 | BuildRequires: kf5-kwindowsystem-devel >= %{kframever} | |
42 | BuildRequires: ninja | |
137496d6 | 43 | BuildRequires: qt5-build >= %{qtver} |
964d3167 | 44 | BuildRequires: qt5-linguist >= %{qtver} |
137496d6 WF |
45 | BuildRequires: rpmbuild(macros) >= 1.164 |
46 | BuildRequires: shared-mime-info | |
47 | BuildRequires: tar >= 1:1.22 | |
48 | BuildRequires: xz | |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
50 | ||
51 | %description | |
52 | LibKGAPI is a KDE-based library for accessing various Google services | |
53 | via their public API. | |
54 | ||
ce90dac0 WF |
55 | %description -l pl.UTF-8 |
56 | LibKGAPI is biblioteką KDE do dostępu do różnych usług Google'a | |
57 | korzystając z ich publicznego API. | |
58 | ||
137496d6 WF |
59 | %package devel |
60 | Summary: Header files for %{kaname} development | |
61 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
62 | Group: X11/Development/Libraries | |
63 | Requires: %{name} = %{version}-%{release} | |
64 | ||
65 | %description devel | |
66 | Header files for %{kaname} development. | |
67 | ||
68 | %description devel -l pl.UTF-8 | |
69 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
70 | ||
71 | %prep | |
72 | %setup -q -n %{kaname}-%{version} | |
73 | ||
74 | %build | |
75 | install -d build | |
76 | cd build | |
76ed2702 | 77 | %cmake -G Ninja \ |
41ea2bc3 | 78 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
76ed2702 | 79 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
137496d6 WF |
80 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
81 | .. | |
76ed2702 | 82 | %ninja_build |
137496d6 | 83 | |
41ea2bc3 WF |
84 | %if %{with tests} |
85 | ctest | |
86 | %endif | |
87 | ||
88 | ||
137496d6 WF |
89 | %install |
90 | rm -rf $RPM_BUILD_ROOT | |
76ed2702 | 91 | %ninja_install -C build |
137496d6 WF |
92 | |
93 | %find_lang %{kaname}_qt --with-qm --all-name --with-kde | |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post -p /sbin/ldconfig | |
99 | %postun -p /sbin/ldconfig | |
100 | ||
101 | %files -f %{kaname}_qt.lang | |
102 | %defattr(644,root,root,755) | |
f278bc66 | 103 | %{_datadir}/qlogging-categories5/libkgapi.categories |
7618c29c WF |
104 | %ghost %{_libdir}/libKPim5GAPIBlogger.so.5 |
105 | %attr(755,root,root) %{_libdir}/libKPim5GAPIBlogger.so.*.*.* | |
106 | %ghost %{_libdir}/libKPim5GAPICalendar.so.5 | |
107 | %attr(755,root,root) %{_libdir}/libKPim5GAPICalendar.so.*.*.* | |
108 | %ghost %{_libdir}/libKPim5GAPICore.so.5 | |
109 | %attr(755,root,root) %{_libdir}/libKPim5GAPICore.so.*.*.* | |
110 | %ghost %{_libdir}/libKPim5GAPIDrive.so.5 | |
111 | %attr(755,root,root) %{_libdir}/libKPim5GAPIDrive.so.*.*.* | |
112 | %ghost %{_libdir}/libKPim5GAPILatitude.so.5 | |
113 | %attr(755,root,root) %{_libdir}/libKPim5GAPILatitude.so.*.*.* | |
114 | %ghost %{_libdir}/libKPim5GAPIMaps.so.5 | |
115 | %attr(755,root,root) %{_libdir}/libKPim5GAPIMaps.so.*.*.* | |
116 | %ghost %{_libdir}/libKPim5GAPIPeople.so.5 | |
117 | %attr(755,root,root) %{_libdir}/libKPim5GAPIPeople.so.*.*.* | |
118 | %ghost %{_libdir}/libKPim5GAPITasks.so.5 | |
119 | %attr(755,root,root) %{_libdir}/libKPim5GAPITasks.so.*.*.* | |
120 | %ghost %{_libdir}/sasl2/libkdexoauth2.so.3 | |
121 | %attr(755,root,root) %{_libdir}/sasl2/libkdexoauth2.so.*.*.* | |
137496d6 WF |
122 | |
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
137496d6 WF |
125 | %{_libdir}/qt5/mkspecs/modules/qt_KGAPIBlogger.pri |
126 | %{_libdir}/qt5/mkspecs/modules/qt_KGAPICalendar.pri | |
137496d6 WF |
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 | |
7618c29c WF |
132 | %{_includedir}/KPim5/KGAPI |
133 | %{_includedir}/KPim5/kgapi_version.h | |
134 | %{_libdir}/cmake/KPim5GAPI | |
135 | %{_libdir}/cmake/KPimGAPI | |
136 | %{_libdir}/libKPim5GAPIBlogger.so | |
137 | %{_libdir}/libKPim5GAPICalendar.so | |
138 | %{_libdir}/libKPim5GAPICore.so | |
139 | %{_libdir}/libKPim5GAPIDrive.so | |
140 | %{_libdir}/libKPim5GAPILatitude.so | |
141 | %{_libdir}/libKPim5GAPIMaps.so | |
142 | %{_libdir}/libKPim5GAPIPeople.so | |
143 | %{_libdir}/libKPim5GAPITasks.so | |
144 | %{_libdir}/sasl2/libkdexoauth2.so | |
145 | %{_libdir}/qt5/mkspecs/modules/qt_KGAPIPeople.pri |