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