]>
Commit | Line | Data |
---|---|---|
30a98c9c WF |
1 | %define kdeappsver 18.12.0 |
2 | %define qtver 5.9.0 | |
3 | %define kaname pimcommon | |
4 | Summary: Common PIM libraries | |
5 | Name: ka5-%{kaname} | |
6 | Version: 18.12.0 | |
7 | Release: 1 | |
8 | License: GPL v2+/LGPL v2.1+ | |
9 | Group: X11/Libraries | |
10 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
11 | # Source0-md5: c9fc75c61a8b1f5376eda052ae0e71d5 | |
12 | URL: http://www.kde.org/ | |
13 | BuildRequires: Qt5Core-devel >= %{qtver} | |
14 | BuildRequires: Qt5DBus-devel | |
15 | BuildRequires: Qt5Designer-devel | |
16 | BuildRequires: Qt5Gui-devel | |
17 | BuildRequires: Qt5Network-devel | |
18 | BuildRequires: Qt5PrintSupport-devel | |
19 | BuildRequires: Qt5Test-devel | |
20 | BuildRequires: Qt5UiTools-devel >= 5.11.1 | |
21 | BuildRequires: Qt5Widgets-devel | |
22 | BuildRequires: Qt5Xml-devel | |
23 | BuildRequires: cmake >= 2.8.12 | |
24 | BuildRequires: gettext-devel | |
25 | BuildRequires: grantlee-qt5-devel >= 5.1 | |
26 | BuildRequires: ka5-akonadi-contacts-devel >= 18.12.0 | |
27 | BuildRequires: ka5-akonadi-devel >= 18.12.0 | |
28 | BuildRequires: ka5-kcontacts-devel >= 18.12.0 | |
29 | BuildRequires: ka5-kimap-devel >= 18.12.0 | |
30 | BuildRequires: ka5-kmime-devel >= 18.12.0 | |
31 | BuildRequires: ka5-kpimtextedit-devel >= 18.12.0 | |
32 | BuildRequires: ka5-libkdepim-devel >= 18.12.0 | |
33 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 | |
34 | BuildRequires: kf5-karchive-devel >= 5.51.0 | |
35 | BuildRequires: kf5-kcodecs-devel >= 5.51.0 | |
36 | BuildRequires: kf5-kcompletion-devel >= 5.51.0 | |
37 | BuildRequires: kf5-kconfig-devel >= 5.51.0 | |
38 | BuildRequires: kf5-kconfigwidgets-devel >= 5.51.0 | |
39 | BuildRequires: kf5-kcoreaddons-devel >= 5.51.0 | |
40 | BuildRequires: kf5-kdbusaddons-devel >= 5.51.0 | |
41 | BuildRequires: kf5-ki18n-devel >= 5.51.0 | |
42 | BuildRequires: kf5-kiconthemes-devel >= 5.51.0 | |
43 | BuildRequires: kf5-kio-devel >= 5.51.0 | |
44 | BuildRequires: kf5-kitemmodels-devel >= 5.51.0 | |
45 | BuildRequires: kf5-kjobwidgets-devel >= 5.51.0 | |
46 | BuildRequires: kf5-knewstuff-devel >= 5.51.0 | |
47 | BuildRequires: kf5-kservice-devel >= 5.51.0 | |
48 | BuildRequires: kf5-kwidgetsaddons-devel >= 5.51.0 | |
49 | BuildRequires: kf5-kxmlgui-devel >= 5.51.0 | |
50 | BuildRequires: libxslt-progs | |
51 | BuildRequires: qt5-build >= %{qtver} | |
52 | BuildRequires: rpmbuild(macros) >= 1.164 | |
53 | BuildRequires: shared-mime-info | |
54 | BuildRequires: tar >= 1:1.22 | |
55 | BuildRequires: xz | |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
57 | ||
58 | %description | |
59 | Common PIM libraries. | |
60 | ||
61 | %package devel | |
62 | Summary: Header files for %{kaname} development | |
63 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
64 | Group: X11/Development/Libraries | |
65 | Requires: %{name} = %{version}-%{release} | |
66 | ||
67 | %description devel | |
68 | Header files for %{kaname} development. | |
69 | ||
70 | %description devel -l pl.UTF-8 | |
71 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
72 | ||
73 | %prep | |
74 | %setup -q -n %{kaname}-%{version} | |
75 | ||
76 | %build | |
77 | install -d build | |
78 | cd build | |
79 | %cmake \ | |
80 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
81 | .. | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | %{__make} -C build install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
89 | %find_lang %{kaname} --all-name --with-kde | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files -f %{kaname}.lang | |
98 | %defattr(644,root,root,755) | |
99 | /etc/xdg/pimcommon.categories | |
100 | /etc/xdg/pimcommon.renamecategories | |
101 | %attr(755,root,root) %ghost %{_libdir}/libKF5PimCommon.so.5 | |
102 | %attr(755,root,root) %{_libdir}/libKF5PimCommon.so.5.*.* | |
103 | %attr(755,root,root) %ghost %{_libdir}/libKF5PimCommonAkonadi.so.5 | |
104 | %attr(755,root,root) %{_libdir}/libKF5PimCommonAkonadi.so.5.*.* | |
105 | %attr(755,root,root) %{_libdir}/qt5/plugins/designer/pimcommonwidgets.so | |
106 | ||
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
109 | %{_includedir}/KF5/PimCommon | |
110 | %{_includedir}/KF5/PimCommonAkonadi | |
111 | %{_includedir}/KF5/pimcommon | |
112 | %{_includedir}/KF5/pimcommon_version.h | |
113 | %{_includedir}/KF5/pimcommonakonadi | |
114 | %{_includedir}/KF5/pimcommonakonadi_version.h | |
115 | %{_libdir}/cmake/KF5PimCommon | |
116 | %{_libdir}/cmake/KF5PimCommonAkonadi | |
117 | %attr(755,root,root) %{_libdir}/libKF5PimCommon.so | |
118 | %attr(755,root,root) %{_libdir}/libKF5PimCommonAkonadi.so | |
119 | %{_libdir}/qt5/mkspecs/modules/qt_PimCommon.pri | |
120 | %{_libdir}/qt5/mkspecs/modules/qt_PimCommonAkonadi.pri |