- updated to 20.12.3
[packages/ka5-kldap.git] / ka5-kldap.spec
1 %define         kdeappsver      20.12.3
2 %define         kframever       5.56.0
3 %define         qtver           5.9.0
4 %define         kaname          kldap
5 Summary:        LDAP access API for KDE
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:  0d80c299679a8c51cd6c2494f2023f6e
13 URL:            http://www.kde.org/
14 BuildRequires:  Qt5Core-devel >= %{qtver}
15 BuildRequires:  Qt5Gui-devel >= 5.11.1
16 BuildRequires:  Qt5Test-devel
17 BuildRequires:  cmake >= 2.8.12
18 BuildRequires:  cyrus-sasl-devel
19 BuildRequires:  gettext-devel
20 BuildRequires:  kf5-extra-cmake-modules >= %{kframever}
21 BuildRequires:  kf5-kcalendarcore-devel >= %{kframever}
22 BuildRequires:  kf5-kcompletion-devel >= %{kframever}
23 BuildRequires:  kf5-kdoctools-devel >= %{kframever}
24 BuildRequires:  kf5-ki18n-devel >= %{kframever}
25 BuildRequires:  kf5-kio-devel >= %{kframever}
26 BuildRequires:  kf5-kwidgetsaddons-devel >= %{kframever}
27 BuildRequires:  ninja
28 BuildRequires:  qt5-build >= %{qtver}
29 BuildRequires:  rpmbuild(macros) >= 1.164
30 BuildRequires:  shared-mime-info
31 BuildRequires:  tar >= 1:1.22
32 BuildRequires:  xz
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 kldap - an LDAP access API for KDE.
37
38 %package devel
39 Summary:        Header files for %{kaname} development
40 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{kaname}
41 Group:          X11/Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43
44 %description devel
45 Header files for %{kaname} development.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe dla programistów używających %{kaname}.
49
50 %prep
51 %setup -q -n %{kaname}-%{version}
52
53 %build
54 install -d build
55 cd build
56 %cmake -G Ninja \
57         -DHTML_INSTALL_DIR=%{_kdedocdir} \
58         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
59         ..
60 %ninja_build
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 %ninja_install -C build
65
66 rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{ko,sr}
67 %find_lang %{kaname}_qt --with-qm --all-name --with-kde
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post   -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
74
75 %files -f %{kaname}_qt.lang
76 %defattr(644,root,root,755)
77 %attr(755,root,root) %ghost %{_libdir}/libKF5Ldap.so.5
78 %attr(755,root,root) %{_libdir}/libKF5Ldap.so.5.*.*
79 %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/ldap.so
80 %{_datadir}/kservices5/ldap.protocol
81 %{_datadir}/kservices5/ldaps.protocol
82 %{_datadir}/qlogging-categories5/kldap.categories
83 %{_datadir}/qlogging-categories5/kldap.renamecategories
84
85 %files devel
86 %defattr(644,root,root,755)
87 %{_includedir}/KF5/KLDAP
88 %{_includedir}/KF5/kldap_version.h
89 %{_libdir}/cmake/KF5Ldap
90 %attr(755,root,root) %{_libdir}/libKF5Ldap.so
91 %{_libdir}/qt5/mkspecs/modules/qt_Ldap.pri
This page took 0.091315 seconds and 3 git commands to generate.