]>
Commit | Line | Data |
---|---|---|
33f59a00 ER |
1 | # |
2 | # Conditional build: | |
519e4d44 | 3 | %bcond_with tests # build with tests |
33f59a00 | 4 | |
5ac406ba | 5 | # TODO: |
5ac406ba | 6 | # - runtime Requires if any |
3c1e7cb9 | 7 | |
43eda347 | 8 | %define kdeframever 5.90 |
e8c6165d | 9 | %define qtver 5.15.2 |
33f59a00 | 10 | %define kfname kcoreaddons |
5ac406ba | 11 | Summary: Utilities for core application functionality and accessing the OS |
33f59a00 | 12 | Name: kf5-%{kfname} |
43eda347 | 13 | Version: 5.90.0 |
f46dbc30 | 14 | Release: 1 |
5ac406ba WF |
15 | License: GPL v2+/LGPL v2.1+ |
16 | Group: X11/Libraries | |
6f24f9f8 | 17 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
43eda347 | 18 | # Source0-md5: f481c9b2099565493d6bff90eaa2ad8e |
ccdad5cc | 19 | Patch0: flaky-tests.patch |
5ac406ba | 20 | URL: http://www.kde.org/ |
33f59a00 | 21 | BuildRequires: Qt5Core-devel >= %{qtver} |
5ced6b28 | 22 | %if %{with tests} |
33f59a00 | 23 | BuildRequires: Qt5Test-devel >= %{qtver} |
5ced6b28 JP |
24 | BuildRequires: Qt5Widgets-devel >= %{qtver} |
25 | %endif | |
e8c6165d | 26 | BuildRequires: cmake >= 3.16 |
5ac406ba | 27 | BuildRequires: fam-devel |
5ced6b28 | 28 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
660a4795 | 29 | BuildRequires: ninja |
33f59a00 | 30 | BuildRequires: qt5-linguist >= %{qtver} |
4104425e | 31 | BuildRequires: rpmbuild(macros) >= 1.736 |
5ced6b28 | 32 | BuildRequires: shared-mime-info >= 1.3 |
ddbe1ed5 ER |
33 | BuildRequires: tar >= 1:1.22 |
34 | BuildRequires: xz | |
5ced6b28 | 35 | Requires: Qt5Core >= %{qtver} |
3dc0910e | 36 | Requires: kf5-dirs |
5ac406ba WF |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | KCoreAddons provides classes built on top of QtCore to perform various | |
41 | tasks such as manipulating mime types, autosaving files, creating | |
42 | backup files, generating random sequences, performing text | |
43 | manipulations such as macro replacement, accessing user information | |
44 | and many more. | |
45 | ||
46 | %package devel | |
33f59a00 ER |
47 | Summary: Header files for %{kfname} development |
48 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
5ac406ba WF |
49 | Group: X11/Development/Libraries |
50 | Requires: %{name} = %{version}-%{release} | |
8b60ebee | 51 | Requires: Qt5Core >= %{qtver} |
e8c6165d | 52 | Requires: cmake >= 3.16 |
5ac406ba WF |
53 | |
54 | %description devel | |
33f59a00 | 55 | Header files for %{kfname} development. |
5ac406ba WF |
56 | |
57 | %description devel -l pl.UTF-8 | |
33f59a00 | 58 | Pliki nagłówkowe dla programistów używających %{kfname}. |
5ac406ba WF |
59 | |
60 | %prep | |
33f59a00 | 61 | %setup -q -n %{kfname}-%{version} |
3dc0910e | 62 | #%patch0 -p1 |
5ac406ba WF |
63 | |
64 | %build | |
65 | install -d build | |
66 | cd build | |
660a4795 | 67 | %cmake -G Ninja \ |
3c1e7cb9 | 68 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
5ac406ba | 69 | ../ |
660a4795 | 70 | %ninja_build |
5ac406ba | 71 | |
660a4795 | 72 | %{?with_tests:%ninja_build test} |
3c1e7cb9 | 73 | |
5ac406ba WF |
74 | %install |
75 | rm -rf $RPM_BUILD_ROOT | |
660a4795 | 76 | %ninja_install -C build |
5ac406ba | 77 | |
d768fe92 | 78 | %find_lang %{kfname}5_qt --with-qm --all-name --with-kde |
5ac406ba WF |
79 | |
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
33f59a00 ER |
83 | %post -p /sbin/ldconfig |
84 | %postun -p /sbin/ldconfig | |
5ac406ba | 85 | |
33f59a00 | 86 | %files -f %{kfname}5_qt.lang |
5ac406ba WF |
87 | %defattr(644,root,root,755) |
88 | %doc README.md | |
89 | %{_datadir}/mime/packages/kde5.xml | |
3c1e7cb9 | 90 | %attr(755,root,root) %{_libdir}/libKF5CoreAddons.so.*.*.* |
3772000c | 91 | %ghost %{_libdir}/libKF5CoreAddons.so.5 |
3353cfcb WF |
92 | %dir %{_libdir}/qt5/plugins/namespace |
93 | %attr(755,root,root) %{_libdir}/qt5/plugins/namespace/jsonplugin_cmake_macro.so | |
a61cd107 | 94 | %{_datadir}/qlogging-categories5/kcoreaddons.categories |
7772a76b WF |
95 | %dir %{_datadir}/kf5/licenses |
96 | %{_datadir}/kf5/licenses/ARTISTIC | |
97 | %{_datadir}/kf5/licenses/BSD | |
98 | %{_datadir}/kf5/licenses/GPL_V2 | |
99 | %{_datadir}/kf5/licenses/GPL_V3 | |
100 | %{_datadir}/kf5/licenses/LGPL_V2 | |
101 | %{_datadir}/kf5/licenses/LGPL_V21 | |
102 | %{_datadir}/kf5/licenses/LGPL_V3 | |
103 | %{_datadir}/kf5/licenses/QPL_V1.0 | |
257459df | 104 | %{_datadir}/qlogging-categories5/kcoreaddons.renamecategories |
5ac406ba WF |
105 | |
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
3c1e7cb9 | 108 | %attr(755,root,root) %{_bindir}/desktoptojson |
5ac406ba WF |
109 | %{_includedir}/KF5/KCoreAddons |
110 | %{_includedir}/KF5/kcoreaddons_version.h | |
111 | %{_libdir}/cmake/KF5CoreAddons | |
3772000c | 112 | %{_libdir}/libKF5CoreAddons.so |
3c1e7cb9 | 113 | %{_libdir}/qt5/mkspecs/modules/qt_KCoreAddons.pri |