2 %bcond_with tests # build without tests
4 %define kdeframever 5.109
7 Summary: Provides access to all contacts and the people who hold them
11 License: GPL v2+/LGPL v2.1+
13 Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
14 # Source0-md5: e66ebdbc5547881e8562bab6a02ce8bb
15 URL: http://www.kde.org/
16 BuildRequires: Qt5Core-devel >= %{qtver}
17 BuildRequires: Qt5Gui-devel >= %{qtver}
18 BuildRequires: Qt5Network-devel >= %{qtver}
19 BuildRequires: Qt5Test-devel >= %{qtver}
21 BuildRequires: Qt5Gui-devel >= %{qtver}
22 BuildRequires: Qt5Widgets-devel >= %{qtver}
24 BuildRequires: cmake >= 3.16
25 BuildRequires: kf5-extra-cmake-modules >= %{version}
26 BuildRequires: kf5-kcoreaddons-devel >= %{version}
28 BuildRequires: qt5-build >= %{qtver}
29 BuildRequires: rpmbuild(macros) >= 1.164
30 BuildRequires: tar >= 1:1.22
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Provides access to all contacts and the people who hold them.
39 Summary: Header files for %{kfname} development
40 Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
41 Group: X11/Development/Libraries
42 Requires: %{name} = %{version}-%{release}
45 Header files for %{kfname} development.
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe dla programistów używających %{kfname}.
51 %setup -q -n %{kfname}-%{version}
56 %{!?with_tests:-DBUILD_TESTING=OFF} \
57 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
61 %{?with_tests:%ninja_build -C build test}
65 rm -rf $RPM_BUILD_ROOT
66 %ninja_install -C build
68 %find_lang %{kfname}5 --all-name --with-kde
71 rm -rf $RPM_BUILD_ROOT
73 %post -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
76 %files -f %{kfname}5.lang
77 %defattr(644,root,root,755)
79 %{_datadir}/qlogging-categories5/kpeople.categories
80 %attr(755,root,root) %{_libdir}/libKF5People.so.*.*.*
81 %ghost %{_libdir}/libKF5People.so.5
82 %attr(755,root,root) %{_libdir}/libKF5PeopleBackend.so.*.*.*
83 %ghost %{_libdir}/libKF5PeopleBackend.so.5
84 %attr(755,root,root) %{_libdir}/libKF5PeopleWidgets.so.*.*.*
85 %ghost %{_libdir}/libKF5PeopleWidgets.so.5
86 %dir %{_libdir}/qt5/qml/org/kde/people
87 %{_libdir}/qt5/qml/org/kde/people/qmldir
88 %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/people/libKF5PeopleDeclarative.so
89 %{_datadir}/qlogging-categories5/kpeople.renamecategories
92 %defattr(644,root,root,755)
93 %{_libdir}/libKF5People.so
94 %{_libdir}/libKF5PeopleBackend.so
95 %{_libdir}/libKF5PeopleWidgets.so
96 %{_includedir}/KF5/KPeople
97 %{_libdir}/cmake/KF5People
98 %{_libdir}/qt5/mkspecs/modules/qt_KPeople*.pri