5cc95e96f8032759960b9ae4a548a4707b8103b8
[packages/ka5-libkdepim.git] / ka5-libkdepim.spec
1 %define         kdeappsver      20.12.3
2 %define         kframever       5.56.0
3 %define         qtver           5.9.0
4 %define         kaname          libkdepim
5 Summary:        libkdepim
6 Name:           ka5-%{kaname}
7 Version:        20.12.3
8 Release:        1
9 License:        GPL v2+/LGPL v2.1+
10 Group:          X11/Libraries
11 Source0:        http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
12 # Source0-md5:  ede8ea4b20129c7aa20c43c78102d0c9
13 URL:            http://www.kde.org/
14 BuildRequires:  Qt5Core-devel >= %{qtver}
15 BuildRequires:  Qt5DBus-devel
16 BuildRequires:  Qt5Designer-devel
17 BuildRequires:  Qt5Gui-devel >= 5.11.1
18 BuildRequires:  Qt5Network-devel
19 BuildRequires:  Qt5Test-devel
20 BuildRequires:  Qt5UiTools-devel >= 5.11.1
21 BuildRequires:  Qt5Widgets-devel
22 BuildRequires:  cmake >= 2.8.12
23 BuildRequires:  gettext-devel
24 BuildRequires:  ka5-akonadi-contacts-devel >= %{kdeappsver}
25 BuildRequires:  ka5-akonadi-devel >= %{kdeappsver}
26 BuildRequires:  ka5-akonadi-mime-devel >= %{kdeappsver}
27 BuildRequires:  ka5-akonadi-search-devel >= %{kdeappsver}
28 BuildRequires:  ka5-kldap-devel >= %{kdeappsver}
29 BuildRequires:  kf5-extra-cmake-modules >= %{kframever}
30 BuildRequires:  kf5-kcalendarcore-devel >= %{kframever}
31 BuildRequires:  kf5-kcmutils-devel >= %{kframever}
32 BuildRequires:  kf5-kcodecs-devel >= %{kframever}
33 BuildRequires:  kf5-kcompletion-devel >= %{kframever}
34 BuildRequires:  kf5-kconfig-devel >= %{kframever}
35 BuildRequires:  kf5-kconfigwidgets-devel >= %{kframever}
36 BuildRequires:  kf5-kcontacts-devel >= %{kframever}
37 BuildRequires:  kf5-kcoreaddons-devel >= %{kframever}
38 BuildRequires:  kf5-kdesignerplugin-devel >= %{kframever}
39 BuildRequires:  kf5-ki18n-devel >= %{kframever}
40 BuildRequires:  kf5-kiconthemes-devel >= %{kframever}
41 BuildRequires:  kf5-kio-devel >= %{kframever}
42 BuildRequires:  kf5-kitemviews-devel >= %{kframever}
43 BuildRequires:  kf5-kjobwidgets-devel >= %{kframever}
44 BuildRequires:  kf5-kwallet-devel >= %{kframever}
45 BuildRequires:  kf5-kwidgetsaddons-devel >= %{kframever}
46 BuildRequires:  ninja
47 BuildRequires:  qt5-build >= %{qtver}
48 BuildRequires:  rpmbuild(macros) >= 1.164
49 BuildRequires:  shared-mime-info
50 BuildRequires:  tar >= 1:1.22
51 BuildRequires:  xz
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 %description
55 Library for common kdepim apps.
56
57 %package devel
58 Summary:        Header files for %{kaname} development
59 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{kaname}
60 Group:          X11/Development/Libraries
61 Requires:       %{name} = %{version}-%{release}
62
63 %description devel
64 Header files for %{kaname} development.
65
66 %description devel -l pl.UTF-8
67 Pliki nagłówkowe dla programistów używających %{kaname}.
68
69 %prep
70 %setup -q -n %{kaname}-%{version}
71
72 %build
73 install -d build
74 cd build
75 %cmake -G Ninja \
76         -DHTML_INSTALL_DIR=%{_kdedocdir} \
77         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
78         ..
79 %ninja_build
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 %ninja_install -C build
84
85 %find_lang %{kaname}_qt --with-qm --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}_qt.lang
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %ghost %{_libdir}/libKF5Libkdepim.so.5
96 %attr(755,root,root) %{_libdir}/libKF5Libkdepim.so.5.*.*
97 %attr(755,root,root) %{_libdir}/qt5/plugins/designer/kdepimwidgets.so
98 %{_datadir}/dbus-1/interfaces/org.kde.addressbook.service.xml
99 %{_datadir}/dbus-1/interfaces/org.kde.mailtransport.service.xml
100 %{_datadir}/qlogging-categories5/libkdepim.categories
101 %{_datadir}/qlogging-categories5/libkdepim.renamecategories
102
103 %files devel
104 %defattr(644,root,root,755)
105 %{_includedir}/KF5/Libkdepim
106 %{_includedir}/KF5/libkdepim
107 %{_includedir}/KF5/libkdepim_version.h
108 %{_libdir}/cmake/KF5Libkdepim
109 %{_libdir}/cmake/MailTransportDBusService
110 %attr(755,root,root) %{_libdir}/libKF5Libkdepim.so
111 %{_libdir}/qt5/mkspecs/modules/qt_Libkdepim.pri
This page took 0.102722 seconds and 2 git commands to generate.