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