- updated to 22.04.1
[packages/ka5-libkgapi.git] / ka5-libkgapi.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # build with tests
4 %define         kdeappsver      22.04.1
5 %define         kframever       5.56.0
6 %define         qtver           5.9.0
7 %define         kaname          libkgapi
8 Summary:        libkgapi
9 Name:           ka5-%{kaname}
10 Version:        22.04.1
11 Release:        1
12 License:        GPL v2+/LGPL v2.1+
13 Group:          X11/Libraries
14 Source0:        http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
15 # Source0-md5:  4cb5da8d74db211ae3c627015527d32c
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
32 BuildRequires:  kf5-extra-cmake-modules >= %{kframever}
33 BuildRequires:  kf5-kcalendarcore-devel >= %{kframever}
34 BuildRequires:  kf5-kcontacts-devel >= %{kframever}
35 BuildRequires:  kf5-kio-devel >= %{kframever}
36 BuildRequires:  kf5-kwallet-devel >= %{kframever}
37 BuildRequires:  kf5-kwindowsystem-devel >= %{kframever}
38 BuildRequires:  ninja
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
44 ExclusiveArch:  i686  %{x8664}
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
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
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
73 %cmake -G Ninja \
74         %{!?with_tests:-DBUILD_TESTING=OFF} \
75         -DHTML_INSTALL_DIR=%{_kdedocdir} \
76         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
77         ..
78 %ninja_build
79
80 %if %{with tests}
81 ctest
82 %endif
83
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 %ninja_install -C build
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)
99 %ghost %{_libdir}/libKPimGAPIBlogger.so.5
100 %attr(755,root,root) %{_libdir}/libKPimGAPIBlogger.so.5.*.*
101 %ghost %{_libdir}/libKPimGAPICalendar.so.5
102 %attr(755,root,root) %{_libdir}/libKPimGAPICalendar.so.5.*.*
103 %ghost %{_libdir}/libKPimGAPIContacts.so.5
104 %attr(755,root,root) %{_libdir}/libKPimGAPIContacts.so.5.*.*
105 %ghost %{_libdir}/libKPimGAPICore.so.5
106 %attr(755,root,root) %{_libdir}/libKPimGAPICore.so.5.*.*
107 %ghost %{_libdir}/libKPimGAPIDrive.so.5
108 %attr(755,root,root) %{_libdir}/libKPimGAPIDrive.so.5.*.*
109 %ghost %{_libdir}/libKPimGAPILatitude.so.5
110 %attr(755,root,root) %{_libdir}/libKPimGAPILatitude.so.5.*.*
111 %ghost %{_libdir}/libKPimGAPIMaps.so.5
112 %attr(755,root,root) %{_libdir}/libKPimGAPIMaps.so.5.*.*
113 %ghost %{_libdir}/libKPimGAPITasks.so.5
114 %attr(755,root,root) %{_libdir}/libKPimGAPITasks.so.5.*.*
115 %{_libdir}/sasl2/libkdexoauth2.so.3
116 %attr(755,root,root) %{_libdir}/sasl2/libkdexoauth2.so.3.*.*
117 %{_datadir}/qlogging-categories5/libkgapi.categories
118
119 %files devel
120 %defattr(644,root,root,755)
121 %{_includedir}/KPim/KGAPI
122 %{_includedir}/KPim/kgapi_version.h
123 %{_libdir}/cmake/KPimGAPI
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
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
This page took 0.080766 seconds and 4 git commands to generate.