]>
Commit | Line | Data |
---|---|---|
7d515263 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
cb4b4006 | 4 | %define kdeappsver 22.04.0 |
7eba7692 | 5 | %define kframever 5.56.0 |
c4b3e93b WF |
6 | %define qtver 5.9.0 |
7 | %define kaname kmbox | |
8 | Summary: Kmbox | |
9 | Name: ka5-%{kaname} | |
cb4b4006 | 10 | Version: 22.04.0 |
c4b3e93b WF |
11 | Release: 1 |
12 | License: GPL v2+/LGPL v2.1+ | |
13 | Group: X11/Applications | |
83bf7801 | 14 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
cb4b4006 | 15 | # Source0-md5: 512bfd1d7ab751fc2a2a9cec5d2dc7b7 |
c4b3e93b WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Test-devel | |
19 | BuildRequires: cmake >= 2.8.12 | |
7eba7692 WF |
20 | BuildRequires: ka5-kmime-devel >= %{kdeappsver} |
21 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} | |
22 | BuildRequires: ninja | |
c4b3e93b WF |
23 | BuildRequires: qt5-build >= %{qtver} |
24 | BuildRequires: rpmbuild(macros) >= 1.164 | |
25 | BuildRequires: shared-mime-info | |
26 | BuildRequires: tar >= 1:1.22 | |
27 | BuildRequires: xz | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Library which provides support for mail apps. | |
32 | ||
b72f9466 WF |
33 | %description -l pl.UTF-8 |
34 | Biblioteka ze wsparciem dla programów pocztowych. | |
35 | ||
c4b3e93b WF |
36 | %package devel |
37 | Summary: Header files for %{kaname} development | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
39 | Group: X11/Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | Header files for %{kaname} development. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
47 | ||
48 | %prep | |
49 | %setup -q -n %{kaname}-%{version} | |
50 | ||
51 | %build | |
52 | install -d build | |
53 | cd build | |
7eba7692 | 54 | %cmake -G Ninja \ |
7d515263 | 55 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
7eba7692 | 56 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
c4b3e93b WF |
57 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
58 | .. | |
7eba7692 | 59 | %ninja_build |
c4b3e93b | 60 | |
7d515263 WF |
61 | %if %{with tests} |
62 | ctest | |
63 | %endif | |
64 | ||
65 | ||
c4b3e93b WF |
66 | %install |
67 | rm -rf $RPM_BUILD_ROOT | |
7eba7692 | 68 | %ninja_install -C build |
c4b3e93b WF |
69 | |
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
12517e73 WF |
78 | %ghost %{_libdir}/libKF5Mbox.so.5 |
79 | %attr(755,root,root) %{_libdir}/libKF5Mbox.so.*.*.* | |
83bf7801 WF |
80 | %{_datadir}/qlogging-categories5/kmbox.categories |
81 | %{_datadir}/qlogging-categories5/kmbox.renamecategories | |
c4b3e93b WF |
82 | |
83 | %files devel | |
84 | %defattr(644,root,root,755) | |
85 | %{_includedir}/KF5/KMbox | |
c4b3e93b | 86 | %{_libdir}/cmake/KF5Mbox |
12517e73 | 87 | %{_libdir}/libKF5Mbox.so |
83bf7801 | 88 | %{_libdir}/qt5/mkspecs/modules/qt_KMbox.pri |