]>
Commit | Line | Data |
---|---|---|
33f59a00 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # build without tests | |
4 | ||
5ac406ba | 5 | # TODO: |
5ac406ba | 6 | # - runtime Requires if any |
3c1e7cb9 | 7 | |
b4c03dcc | 8 | %define kdeframever 5.19 |
33f59a00 ER |
9 | %define qtver 5.3.2 |
10 | %define kfname kcoreaddons | |
5ac406ba | 11 | Summary: Utilities for core application functionality and accessing the OS |
33f59a00 | 12 | Name: kf5-%{kfname} |
b4c03dcc | 13 | Version: 5.19.0 |
ccdad5cc | 14 | Release: 2 |
5ac406ba WF |
15 | License: GPL v2+/LGPL v2.1+ |
16 | Group: X11/Libraries | |
33f59a00 | 17 | Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
b4c03dcc | 18 | # Source0-md5: 996db46c7e3b6a3b1837a0cc9373bcdd |
ccdad5cc | 19 | Patch0: flaky-tests.patch |
5ac406ba | 20 | URL: http://www.kde.org/ |
33f59a00 ER |
21 | BuildRequires: Qt5Core-devel >= %{qtver} |
22 | BuildRequires: Qt5Test-devel >= %{qtver} | |
5ac406ba WF |
23 | BuildRequires: cmake >= 2.8.12 |
24 | BuildRequires: fam-devel | |
3c1e7cb9 | 25 | BuildRequires: kf5-extra-cmake-modules >= 1.4.0 |
33f59a00 | 26 | BuildRequires: qt5-linguist >= %{qtver} |
5ac406ba WF |
27 | BuildRequires: rpmbuild(macros) >= 1.164 |
28 | BuildRequires: shared-mime-info | |
ddbe1ed5 ER |
29 | BuildRequires: tar >= 1:1.22 |
30 | BuildRequires: xz | |
5ac406ba WF |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | KCoreAddons provides classes built on top of QtCore to perform various | |
35 | tasks such as manipulating mime types, autosaving files, creating | |
36 | backup files, generating random sequences, performing text | |
37 | manipulations such as macro replacement, accessing user information | |
38 | and many more. | |
39 | ||
40 | %package devel | |
33f59a00 ER |
41 | Summary: Header files for %{kfname} development |
42 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
5ac406ba WF |
43 | Group: X11/Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
45 | ||
46 | %description devel | |
33f59a00 | 47 | Header files for %{kfname} development. |
5ac406ba WF |
48 | |
49 | %description devel -l pl.UTF-8 | |
33f59a00 | 50 | Pliki nagłówkowe dla programistów używających %{kfname}. |
5ac406ba WF |
51 | |
52 | %prep | |
33f59a00 | 53 | %setup -q -n %{kfname}-%{version} |
ccdad5cc | 54 | %patch0 -p1 |
5ac406ba WF |
55 | |
56 | %build | |
57 | install -d build | |
58 | cd build | |
59 | %cmake \ | |
3c1e7cb9 | 60 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
5ac406ba WF |
61 | ../ |
62 | %{__make} | |
63 | ||
3c1e7cb9 AM |
64 | %{?with_tests:%{__make} test} |
65 | ||
5ac406ba WF |
66 | %install |
67 | rm -rf $RPM_BUILD_ROOT | |
33f59a00 | 68 | %{__make} -C build install \ |
5ac406ba WF |
69 | DESTDIR=$RPM_BUILD_ROOT |
70 | ||
d768fe92 | 71 | %find_lang %{kfname}5_qt --with-qm --all-name --with-kde |
5ac406ba WF |
72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
33f59a00 ER |
76 | %post -p /sbin/ldconfig |
77 | %postun -p /sbin/ldconfig | |
5ac406ba | 78 | |
33f59a00 | 79 | %files -f %{kfname}5_qt.lang |
5ac406ba WF |
80 | %defattr(644,root,root,755) |
81 | %doc README.md | |
82 | %{_datadir}/mime/packages/kde5.xml | |
3c1e7cb9 | 83 | %attr(755,root,root) %{_libdir}/libKF5CoreAddons.so.*.*.* |
33f59a00 | 84 | %attr(755,root,root) %ghost %{_libdir}/libKF5CoreAddons.so.5 |
5ac406ba WF |
85 | |
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
3c1e7cb9 | 88 | %attr(755,root,root) %{_bindir}/desktoptojson |
5ac406ba WF |
89 | %{_includedir}/KF5/KCoreAddons |
90 | %{_includedir}/KF5/kcoreaddons_version.h | |
91 | %{_libdir}/cmake/KF5CoreAddons | |
92 | %attr(755,root,root) %{_libdir}/libKF5CoreAddons.so | |
3c1e7cb9 | 93 | %{_libdir}/qt5/mkspecs/modules/qt_KCoreAddons.pri |