]>
Commit | Line | Data |
---|---|---|
e86c30c9 WF |
1 | %define kdeappsver 18.12.0 |
2 | %define qtver 5.9.0 | |
3 | %define kaname eventviews | |
4 | Summary: Library for creating events | |
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: d9840f1af87ca727367d51e1be9b0a2b | |
12 | URL: http://www.kde.org/ | |
13 | BuildRequires: Qt5Core-devel >= %{qtver} | |
14 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
15 | BuildRequires: Qt5Test-devel | |
16 | BuildRequires: Qt5UiTools-devel | |
17 | BuildRequires: Qt5Widgets-devel | |
18 | BuildRequires: cmake >= 2.8.12 | |
19 | BuildRequires: gettext-devel | |
20 | BuildRequires: ka5-akonadi-calendar-devel >= 18.12.0 | |
21 | BuildRequires: ka5-akonadi-devel >= 18.12.0 | |
22 | BuildRequires: ka5-calendarsupport-devel >= 18.12.0 | |
23 | BuildRequires: ka5-kcalcore-devel >= 18.12.0 | |
24 | BuildRequires: ka5-kcalutils-devel >= 18.12.0 | |
25 | BuildRequires: ka5-kmime-devel >= 18.12.0 | |
26 | BuildRequires: ka5-libkdepim-devel >= 18.12.0 | |
27 | BuildRequires: kdiagram-devel >= 1.4.0 | |
28 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 | |
29 | BuildRequires: kf5-kcodecs-devel >= 5.51.0 | |
30 | BuildRequires: kf5-kcompletion-devel >= 5.51.0 | |
31 | BuildRequires: kf5-kguiaddons-devel >= 5.51.0 | |
32 | BuildRequires: kf5-kholidays-devel >= 5.51.0 | |
33 | BuildRequires: kf5-ki18n-devel >= 5.51.0 | |
34 | BuildRequires: kf5-kiconthemes-devel >= 5.51.0 | |
35 | BuildRequires: kf5-kservice-devel >= 5.51.0 | |
36 | BuildRequires: qt5-build >= %{qtver} | |
37 | BuildRequires: rpmbuild(macros) >= 1.164 | |
38 | BuildRequires: shared-mime-info | |
39 | BuildRequires: tar >= 1:1.22 | |
40 | BuildRequires: xz | |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %description | |
44 | It contains lib for creating events. | |
45 | ||
46 | %package devel | |
47 | Summary: Header files for %{kaname} development | |
48 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
49 | Group: X11/Development/Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | ||
52 | %description devel | |
53 | Header files for %{kaname} development. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
56 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
57 | ||
58 | %prep | |
59 | %setup -q -n %{kaname}-%{version} | |
60 | ||
61 | %build | |
62 | install -d build | |
63 | cd build | |
64 | %cmake \ | |
65 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
66 | .. | |
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | %{__make} -C build install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
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) | |
84 | /etc/xdg/eventviews.categories | |
85 | /etc/xdg/eventviews.renamecategories | |
86 | %attr(755,root,root) %ghost %{_libdir}/libKF5EventViews.so.5 | |
87 | %attr(755,root,root) %{_libdir}/libKF5EventViews.so.5.*.* | |
88 | %{_datadir}/kservicetypes5/calendardecoration.desktop | |
89 | ||
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %{_includedir}/KF5/EventViews | |
93 | %{_includedir}/KF5/eventviews | |
94 | %{_includedir}/KF5/eventviews_version.h | |
95 | %{_libdir}/cmake/KF5EventViews | |
96 | %attr(755,root,root) %{_libdir}/libKF5EventViews.so | |
97 | %{_libdir}/qt5/mkspecs/modules/qt_EventViews.pri |