]> git.pld-linux.org Git - packages/ka5-akonadi-calendar.git/blob - ka5-akonadi-calendar.spec
- updated to 22.12.1
[packages/ka5-akonadi-calendar.git] / ka5-akonadi-calendar.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # build with tests
4 %define         kdeappsver      22.12.1
5 %define         kframever       5.94.0
6 %define         qtver           5.15.2
7 %define         kaname          akonadi-calendar
8 Summary:        Akonadi Calendar
9 Name:           ka5-%{kaname}
10 Version:        22.12.1
11 Release:        1
12 License:        GPL v2+/LGPL v2.1+
13 Group:          X11/Libraries
14 Source0:        https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
15 # Source0-md5:  2f3ecf739dda394ea5d5128dde3d6bf1
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:  cmake >= 2.8.12
21 BuildRequires:  gettext-devel
22 BuildRequires:  ka5-akonadi-contacts-devel >= %{kdeappsver}
23 BuildRequires:  ka5-akonadi-devel >= %{kdeappsver}
24 BuildRequires:  ka5-kcalutils-devel >= %{kdeappsver}
25 BuildRequires:  ka5-kidentitymanagement-devel >= %{kdeappsver}
26 BuildRequires:  ka5-kmailtransport-devel >= %{kdeappsver}
27 BuildRequires:  kf5-extra-cmake-modules >= %{kframever}
28 BuildRequires:  kf5-kcalendarcore-devel >= %{kframever}
29 BuildRequires:  kf5-kcodecs-devel >= %{kframever}
30 BuildRequires:  kf5-kcontacts-devel >= %{kframever}
31 BuildRequires:  kf5-kdbusaddons-devel >= %{kframever}
32 BuildRequires:  kf5-kiconthemes-devel >= %{kframever}
33 BuildRequires:  kf5-kio-devel >= %{kframever}
34 BuildRequires:  kf5-knotifications-devel >= %{kframever}
35 BuildRequires:  kf5-kwallet-devel >= %{kframever}
36 BuildRequires:  ninja
37 BuildRequires:  qt5-build >= %{qtver}
38 BuildRequires:  rpmbuild(macros) >= 1.164
39 BuildRequires:  shared-mime-info
40 BuildRequires:  tar >= 1:1.22
41 BuildRequires:  xz
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %description
45 Akonadi Calendar is a library that effectively bridges the
46 type-agnostic API of the Akonadi client libraries and the
47 domain-specific KCalCore library. It provides jobs, models and other
48 helpers to make working with events and calendars through Akonadi
49 easier.
50
51 %package devel
52 Summary:        Header files for %{kaname} development
53 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{kpname}
54 Group:          X11/Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56
57 %description devel
58 Header files for %{kaname} development.
59
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe dla programistów używających %{kaname}.
62
63 %prep
64 %setup -q -n %{kaname}-%{version}
65
66 %build
67 install -d build
68 cd build
69 %cmake -G Ninja \
70         %{!?with_tests:-DBUILD_TESTING=OFF} \
71         -DHTML_INSTALL_DIR=%{_kdedocdir} \
72         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
73         ..
74 %ninja_build
75
76 %if %{with tests}
77 ctest
78 %endif
79
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 %ninja_install -C build
84
85 %find_lang %{kaname} --all-name --with-kde
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %files -f %{kaname}.lang
94 %defattr(644,root,root,755)
95 %ghost %{_libdir}/libKF5AkonadiCalendar.so.5
96 %attr(755,root,root) %{_libdir}/libKF5AkonadiCalendar.so.*.*.*
97 %attr(755,root,root) %{_libdir}/qt5/plugins/akonadi_serializer_kcalcore.so
98 %{_datadir}/akonadi/plugins/serializer/akonadi_serializer_kcalcore.desktop
99 %{_datadir}/qlogging-categories5/akonadi-calendar.categories
100 %{_datadir}/qlogging-categories5/akonadi-calendar.renamecategories
101 /etc/xdg/autostart/org.kde.kalendarac.desktop
102 %attr(755,root,root) %{_bindir}/kalendarac
103 %{_datadir}/dbus-1/services/org.kde.kalendarac.service
104 %{_datadir}/knotifications5/kalendarac.notifyrc
105 %{_datadir}/qlogging-categories5/org_kde_kalendarac.categories
106 %dir %{_libdir}/qt5/plugins/kf5/org.kde.kcalendarcore.calendars
107 %{_libdir}/qt5/plugins/kf5/org.kde.kcalendarcore.calendars/libakonadicalendarplugin.so
108
109 %files devel
110 %defattr(644,root,root,755)
111 %{_libdir}/cmake/KF5AkonadiCalendar
112 %{_libdir}/libKF5AkonadiCalendar.so
113 %{_libdir}/qt5/mkspecs/modules/qt_AkonadiCalendar.pri
114 %{_includedir}/KF5/AkonadiCalendar
This page took 1.19407 seconds and 4 git commands to generate.