]>
Commit | Line | Data |
---|---|---|
375e1bc9 AM |
1 | # Conditional build: |
2 | %bcond_with tests # build without tests | |
3 | # | |
d10a1f69 | 4 | %define kdeframever 5.103 |
317e4b4a | 5 | %define qtver 5.15.2 |
375e1bc9 AM |
6 | %define kfname kpeople |
7 | Summary: Provides access to all contacts and the people who hold them | |
8 | Name: kf5-%{kfname} | |
d10a1f69 | 9 | Version: 5.103.0 |
9a1c115f | 10 | Release: 1 |
375e1bc9 AM |
11 | License: GPL v2+/LGPL v2.1+ |
12 | Group: X11/Libraries | |
56e3f096 | 13 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
d10a1f69 | 14 | # Source0-md5: a1088a560a040c2dcfd554954a95069e |
375e1bc9 AM |
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} | |
20 | %if %{with tests} | |
21 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
22 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
23 | %endif | |
24 | BuildRequires: cmake >= 2.8.12 | |
fcef112b | 25 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
4232b8de | 26 | BuildRequires: kf5-kcoreaddons-devel >= %{version} |
fcef112b | 27 | BuildRequires: ninja |
375e1bc9 AM |
28 | BuildRequires: qt5-build >= %{qtver} |
29 | BuildRequires: rpmbuild(macros) >= 1.164 | |
30 | BuildRequires: tar >= 1:1.22 | |
31 | BuildRequires: xz | |
38c9eb4b | 32 | Requires: kf5-dirs |
375e1bc9 AM |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | Provides access to all contacts and the people who hold them. | |
37 | ||
38 | %package devel | |
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} | |
43 | ||
44 | %description devel | |
45 | Header files for %{kfname} development. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe dla programistów używających %{kfname}. | |
49 | ||
50 | %prep | |
51 | %setup -q -n %{kfname}-%{version} | |
52 | ||
53 | %build | |
54 | install -d build | |
55 | cd build | |
fcef112b | 56 | %cmake -G Ninja \ |
85f45b77 | 57 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
375e1bc9 AM |
58 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
59 | .. | |
fcef112b | 60 | %ninja_build |
375e1bc9 | 61 | |
fcef112b | 62 | %{?with_tests:%ninja_build test} |
375e1bc9 | 63 | |
85f45b77 | 64 | |
375e1bc9 AM |
65 | %install |
66 | rm -rf $RPM_BUILD_ROOT | |
fcef112b | 67 | %ninja_install -C build |
375e1bc9 | 68 | |
71f39251 | 69 | %find_lang %{kfname}5 --all-name --with-kde |
375e1bc9 AM |
70 | |
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %post -p /sbin/ldconfig | |
75 | %postun -p /sbin/ldconfig | |
76 | ||
77 | %files -f %{kfname}5.lang | |
78 | %defattr(644,root,root,755) | |
79 | %doc README.md | |
66bf8e38 | 80 | %{_datadir}/qlogging-categories5/kpeople.categories |
375e1bc9 | 81 | %attr(755,root,root) %{_libdir}/libKF5People.so.*.*.* |
9fb2dbb8 | 82 | %ghost %{_libdir}/libKF5People.so.5 |
375e1bc9 | 83 | %attr(755,root,root) %{_libdir}/libKF5PeopleBackend.so.*.*.* |
9fb2dbb8 | 84 | %ghost %{_libdir}/libKF5PeopleBackend.so.5 |
375e1bc9 | 85 | %attr(755,root,root) %{_libdir}/libKF5PeopleWidgets.so.*.*.* |
9fb2dbb8 | 86 | %ghost %{_libdir}/libKF5PeopleWidgets.so.5 |
375e1bc9 | 87 | %dir %{_libdir}/qt5/qml/org/kde/people |
03c0032d | 88 | %{_libdir}/qt5/qml/org/kde/people/qmldir |
375e1bc9 | 89 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/people/libKF5PeopleDeclarative.so |
b1facbb2 | 90 | %{_datadir}/qlogging-categories5/kpeople.renamecategories |
375e1bc9 AM |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
9fb2dbb8 WF |
94 | %{_libdir}/libKF5People.so |
95 | %{_libdir}/libKF5PeopleBackend.so | |
96 | %{_libdir}/libKF5PeopleWidgets.so | |
375e1bc9 AM |
97 | %{_includedir}/KF5/KPeople |
98 | %{_libdir}/cmake/KF5People | |
99 | %{_libdir}/qt5/mkspecs/modules/qt_KPeople*.pri |