]>
Commit | Line | Data |
---|---|---|
17e9833c WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
fec332d9 | 4 | %define kdeappsver 23.04.3 |
be3ce27f | 5 | %define kframever 5.94.0 |
3325d39a | 6 | %define kfver 5.53.0 |
be3ce27f | 7 | %define qtver 5.15.2 |
3325d39a WF |
8 | %define kaname kontactinterface |
9 | Summary: Kontact interface | |
10 | Name: ka5-%{kaname} | |
fec332d9 | 11 | Version: 23.04.3 |
6215148f | 12 | Release: 1 |
3325d39a WF |
13 | License: GPL v2+/LGPL v2.1+ |
14 | Group: X11/Libraries | |
9aca43b3 | 15 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
fec332d9 | 16 | # Source0-md5: c7e07c6fdc5ef039f2af494a244bf996 |
3325d39a WF |
17 | URL: http://www.kde.org/ |
18 | BuildRequires: gettext-devel | |
13fe6394 WF |
19 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
20 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
21 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
22 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
23 | BuildRequires: kf5-kparts-devel >= %{kframever} | |
24 | BuildRequires: kf5-kwindowsystem-devel >= %{kframever} | |
25 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
ee47b886 | 26 | BuildRequires: ninja |
3325d39a WF |
27 | BuildRequires: qt5-build >= %{qtver} |
28 | BuildRequires: rpmbuild(macros) >= 1.164 | |
29 | BuildRequires: shared-mime-info | |
30 | BuildRequires: tar >= 1:1.22 | |
31 | BuildRequires: xz | |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %description | |
35 | Kontact interface. | |
36 | ||
5770913b WF |
37 | %description -l pl.UTF-8 |
38 | Interfejs programowy do Kontact. | |
39 | ||
3325d39a WF |
40 | %package devel |
41 | Summary: Header files for %{kaname} development | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
43 | Group: X11/Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | ||
46 | %description devel | |
47 | Header files for %{kaname} development. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
51 | ||
52 | %prep | |
53 | %setup -q -n %{kaname}-%{version} | |
54 | ||
55 | %build | |
56 | install -d build | |
57 | cd build | |
58 | %cmake \ | |
ee47b886 | 59 | -G Ninja \ |
17e9833c | 60 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
13fe6394 | 61 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
3325d39a WF |
62 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
63 | .. | |
ee47b886 | 64 | %ninja_build |
3325d39a | 65 | |
17e9833c WF |
66 | %if %{with tests} |
67 | ctest | |
68 | %endif | |
69 | ||
70 | ||
3325d39a WF |
71 | %install |
72 | rm -rf $RPM_BUILD_ROOT | |
ee47b886 | 73 | %ninja_install -C build |
3325d39a WF |
74 | install -d $RPM_BUILD_ROOT%{_includedir}/KF5/Akonadi |
75 | ||
76 | %find_lang %{kaname} --all-name --with-kde | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files -f %{kaname}.lang | |
85 | %defattr(644,root,root,755) | |
0c8864b2 WF |
86 | %{_datadir}/qlogging-categories5/kontactinterface.categories |
87 | %{_datadir}/qlogging-categories5/kontactinterface.renamecategories | |
6215148f WF |
88 | %ghost %{_libdir}/libKPim5KontactInterface.so.5 |
89 | %attr(755,root,root) %{_libdir}/libKPim5KontactInterface.so.*.*.* | |
3325d39a WF |
90 | |
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
3325d39a | 93 | %{_libdir}/qt5/mkspecs/modules/qt_KontactInterface.pri |
6215148f WF |
94 | %{_includedir}/KPim5/KontactInterface |
95 | %{_libdir}/cmake/KF5KontactInterface | |
96 | %{_libdir}/cmake/KPim5KontactInterface | |
97 | %{_libdir}/libKPim5KontactInterface.so |