]>
Commit | Line | Data |
---|---|---|
73c73671 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
50963072 | 4 | %define kdeappsver 23.08.5 |
aace4945 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
7a17678d WF |
7 | %define kaname akonadi-notes |
8 | Summary: Akonadi Notes | |
9 | Name: ka5-%{kaname} | |
50963072 | 10 | Version: 23.08.5 |
1f366495 | 11 | Release: 1 |
7a17678d WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
1f366495 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
50963072 | 15 | # Source0-md5: e22307bd0d49d152e11da58e1baf7394 |
7a17678d | 16 | URL: http://www.kde.org/ |
1f366495 WF |
17 | BuildRequires: Qt5Core-devel >= %{qtver} |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
19 | BuildRequires: Qt5Test-devel >= 5.9.0 | |
20 | BuildRequires: Qt5Xml-devel >= 5.9.0 | |
df71c570 | 21 | BuildRequires: cmake >= 3.20 |
7a17678d | 22 | BuildRequires: gettext-devel |
e44cc1ab WF |
23 | BuildRequires: ka5-akonadi-devel >= %{kdeappsver} |
24 | BuildRequires: ka5-kmime-devel >= %{kdeappsver} | |
1f366495 WF |
25 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
26 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
e44cc1ab | 27 | BuildRequires: ninja |
1f366495 | 28 | BuildRequires: qt5-build >= %{qtver} |
7a17678d WF |
29 | BuildRequires: rpmbuild(macros) >= 1.164 |
30 | BuildRequires: shared-mime-info | |
31 | BuildRequires: tar >= 1:1.22 | |
32 | BuildRequires: xz | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | Library for akonadi notes integration. | |
37 | ||
72065bcc WF |
38 | %description -l pl.UTF-8 |
39 | Biblioteka do integracji z notatkami akonadi. | |
40 | ||
7a17678d WF |
41 | %package devel |
42 | Summary: Header files for %{kaname} development | |
43 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
44 | Group: X11/Development/Libraries | |
45 | Requires: %{name} = %{version}-%{release} | |
46 | ||
47 | %description devel | |
48 | Header files for %{kaname} development. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
52 | ||
53 | %prep | |
54 | %setup -q -n %{kaname}-%{version} | |
55 | ||
56 | %build | |
7a17678d | 57 | %cmake \ |
df71c570 | 58 | -B build \ |
e44cc1ab | 59 | -G Ninja \ |
73c73671 | 60 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
1300401f | 61 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
df71c570 WF |
62 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
63 | %ninja_build -C build | |
7a17678d | 64 | |
73c73671 | 65 | %if %{with tests} |
df71c570 | 66 | ctest --test-dir build |
73c73671 WF |
67 | %endif |
68 | ||
69 | ||
7a17678d WF |
70 | %install |
71 | rm -rf $RPM_BUILD_ROOT | |
e44cc1ab | 72 | %ninja_install -C build |
7a17678d WF |
73 | |
74 | %find_lang %{kaname} --all-name --with-kde | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files -f %{kaname}.lang | |
83 | %defattr(644,root,root,755) | |
1f366495 WF |
84 | %ghost %{_libdir}/libKPim5AkonadiNotes.so.5 |
85 | %attr(755,root,root) %{_libdir}/libKPim5AkonadiNotes.so.*.*.* | |
7a17678d WF |
86 | |
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
1f366495 WF |
89 | %{_libdir}/qt5/mkspecs/modules/qt_AkonadiNotes.pri |
90 | %{_includedir}/KPim5/AkonadiNotes | |
91 | %{_libdir}/cmake/KF5AkonadiNotes | |
92 | %{_libdir}/cmake/KPim5AkonadiNotes | |
93 | %{_libdir}/libKPim5AkonadiNotes.so |