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