]>
Commit | Line | Data |
---|---|---|
73c73671 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
2bc8d928 | 4 | %define kdeappsver 22.12.1 |
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} | |
2bc8d928 WF |
10 | Version: 22.12.1 |
11 | Release: 1 | |
7a17678d WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
b65fddd9 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
2bc8d928 | 15 | # Source0-md5: 6612e1e429a160f5cf960889fd278421 |
7a17678d WF |
16 | URL: http://www.kde.org/ |
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 | |
21 | BuildRequires: cmake >= 2.8.12 | |
22 | BuildRequires: gettext-devel | |
e44cc1ab WF |
23 | BuildRequires: ka5-akonadi-devel >= %{kdeappsver} |
24 | BuildRequires: ka5-kmime-devel >= %{kdeappsver} | |
1300401f WF |
25 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
26 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
e44cc1ab | 27 | BuildRequires: ninja |
7a17678d WF |
28 | BuildRequires: qt5-build >= %{qtver} |
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 | |
57 | install -d build | |
58 | cd build | |
59 | %cmake \ | |
e44cc1ab | 60 | -G Ninja \ |
73c73671 | 61 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
1300401f | 62 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
7a17678d WF |
63 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
64 | .. | |
e44cc1ab | 65 | %ninja_build |
7a17678d | 66 | |
73c73671 WF |
67 | %if %{with tests} |
68 | ctest | |
69 | %endif | |
70 | ||
71 | ||
7a17678d WF |
72 | %install |
73 | rm -rf $RPM_BUILD_ROOT | |
e44cc1ab | 74 | %ninja_install -C build |
7a17678d WF |
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) | |
ac597d01 WF |
86 | %ghost %{_libdir}/libKF5AkonadiNotes.so.5 |
87 | %attr(755,root,root) %{_libdir}/libKF5AkonadiNotes.so.*.*.* | |
7a17678d WF |
88 | |
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
7a17678d | 91 | %{_libdir}/cmake/KF5AkonadiNotes |
ac597d01 | 92 | %{_libdir}/libKF5AkonadiNotes.so |
7a17678d | 93 | %{_libdir}/qt5/mkspecs/modules/qt_AkonadiNotes.pri |
f0ad597d | 94 | %{_includedir}/KF5/AkonadiNotes |