]>
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 | |
1900bb9e | 8 | %define kdeframever 5.97 |
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} |
1900bb9e | 13 | Version: 5.97.0 |
08833e86 | 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 |
1900bb9e | 18 | # Source0-md5: aa862f672a8dfaef39af0dda8c3ea892 |
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 |
5ced6b28 | 27 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
660a4795 | 28 | BuildRequires: ninja |
33f59a00 | 29 | BuildRequires: qt5-linguist >= %{qtver} |
4104425e | 30 | BuildRequires: rpmbuild(macros) >= 1.736 |
5ced6b28 | 31 | BuildRequires: shared-mime-info >= 1.3 |
ddbe1ed5 ER |
32 | BuildRequires: tar >= 1:1.22 |
33 | BuildRequires: xz | |
5ced6b28 | 34 | Requires: Qt5Core >= %{qtver} |
3dc0910e | 35 | Requires: kf5-dirs |
5ac406ba WF |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | KCoreAddons provides classes built on top of QtCore to perform various | |
40 | tasks such as manipulating mime types, autosaving files, creating | |
41 | backup files, generating random sequences, performing text | |
42 | manipulations such as macro replacement, accessing user information | |
43 | and many more. | |
44 | ||
45 | %package devel | |
33f59a00 ER |
46 | Summary: Header files for %{kfname} development |
47 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
5ac406ba WF |
48 | Group: X11/Development/Libraries |
49 | Requires: %{name} = %{version}-%{release} | |
8b60ebee | 50 | Requires: Qt5Core >= %{qtver} |
e8c6165d | 51 | Requires: cmake >= 3.16 |
5ac406ba WF |
52 | |
53 | %description devel | |
33f59a00 | 54 | Header files for %{kfname} development. |
5ac406ba WF |
55 | |
56 | %description devel -l pl.UTF-8 | |
33f59a00 | 57 | Pliki nagłówkowe dla programistów używających %{kfname}. |
5ac406ba WF |
58 | |
59 | %prep | |
33f59a00 | 60 | %setup -q -n %{kfname}-%{version} |
3dc0910e | 61 | #%patch0 -p1 |
5ac406ba WF |
62 | |
63 | %build | |
64 | install -d build | |
65 | cd build | |
660a4795 | 66 | %cmake -G Ninja \ |
e7f0c914 | 67 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
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 | |
e7f0c914 | 74 | |
5ac406ba WF |
75 | %install |
76 | rm -rf $RPM_BUILD_ROOT | |
660a4795 | 77 | %ninja_install -C build |
5ac406ba | 78 | |
cfd4d676 KM |
79 | # not supported by glibc yet |
80 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/tok | |
81 | ||
d768fe92 | 82 | %find_lang %{kfname}5_qt --with-qm --all-name --with-kde |
5ac406ba WF |
83 | |
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
33f59a00 ER |
87 | %post -p /sbin/ldconfig |
88 | %postun -p /sbin/ldconfig | |
5ac406ba | 89 | |
33f59a00 | 90 | %files -f %{kfname}5_qt.lang |
5ac406ba WF |
91 | %defattr(644,root,root,755) |
92 | %doc README.md | |
93 | %{_datadir}/mime/packages/kde5.xml | |
3c1e7cb9 | 94 | %attr(755,root,root) %{_libdir}/libKF5CoreAddons.so.*.*.* |
3772000c | 95 | %ghost %{_libdir}/libKF5CoreAddons.so.5 |
08833e86 WF |
96 | ##%dir %{_libdir}/qt5/plugins/namespace |
97 | ##%attr(755,root,root) %{_libdir}/qt5/plugins/namespace/jsonplugin_cmake_macro.so | |
98 | ##%attr(755,root,root) %{_libdir}/qt5/plugins/namespace/pluginwithoutmetadata.so | |
a61cd107 | 99 | %{_datadir}/qlogging-categories5/kcoreaddons.categories |
7772a76b WF |
100 | %dir %{_datadir}/kf5/licenses |
101 | %{_datadir}/kf5/licenses/ARTISTIC | |
102 | %{_datadir}/kf5/licenses/BSD | |
103 | %{_datadir}/kf5/licenses/GPL_V2 | |
104 | %{_datadir}/kf5/licenses/GPL_V3 | |
105 | %{_datadir}/kf5/licenses/LGPL_V2 | |
106 | %{_datadir}/kf5/licenses/LGPL_V21 | |
107 | %{_datadir}/kf5/licenses/LGPL_V3 | |
108 | %{_datadir}/kf5/licenses/QPL_V1.0 | |
257459df | 109 | %{_datadir}/qlogging-categories5/kcoreaddons.renamecategories |
5ac406ba WF |
110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
3c1e7cb9 | 113 | %attr(755,root,root) %{_bindir}/desktoptojson |
5ac406ba | 114 | %{_includedir}/KF5/KCoreAddons |
5ac406ba | 115 | %{_libdir}/cmake/KF5CoreAddons |
3772000c | 116 | %{_libdir}/libKF5CoreAddons.so |
3c1e7cb9 | 117 | %{_libdir}/qt5/mkspecs/modules/qt_KCoreAddons.pri |