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