]>
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 | |
dd67ec54 | 10 | Name: kf5-%{orgname} |
5ac406ba WF |
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 | |
dd67ec54 | 22 | BuildRequires: kf5-extra-cmake-modules >= 1.0.0 |
5ac406ba WF |
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 | ||
dd67ec54 WF |
28 | %define qt5dir %{_libdir}/qt5 |
29 | ||
5ac406ba WF |
30 | %description |
31 | KCoreAddons provides classes built on top of QtCore to perform various | |
32 | tasks such as manipulating mime types, autosaving files, creating | |
33 | backup files, generating random sequences, performing text | |
34 | manipulations such as macro replacement, accessing user information | |
35 | and many more. | |
36 | ||
37 | %package devel | |
38 | Summary: Header files for %{orgname} development | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname} | |
40 | Group: X11/Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | Header files for %{orgname} development. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe dla programistów używających %{orgname}. | |
48 | ||
49 | %prep | |
50 | %setup -q -n %{orgname}-%{version} | |
51 | ||
52 | %build | |
53 | install -d build | |
54 | cd build | |
55 | %cmake \ | |
dd67ec54 WF |
56 | -DBIN_INSTALL_DIR=%{_bindir} \ |
57 | -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \ | |
58 | -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \ | |
59 | -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \ | |
60 | -DQML_INSTALL_DIR=%{qt5dir}/qml \ | |
61 | -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \ | |
62 | -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \ | |
63 | -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \ | |
64 | -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \ | |
65 | -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \ | |
66 | -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \ | |
5ac406ba WF |
67 | ../ |
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} -C build/ install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
76 | %find_lang %{orgname}5_qt --with-qm | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files -f %{orgname}5_qt.lang | |
85 | %defattr(644,root,root,755) | |
86 | %doc README.md | |
87 | %{_datadir}/mime/packages/kde5.xml | |
88 | %attr(755,root,root) %ghost %{_libdir}/libKF5CoreAddons.so.5 | |
89 | %attr(755,root,root) %{_libdir}/libKF5CoreAddons.so.5.0.0 | |
90 | ||
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
93 | %{_includedir}/KF5/KCoreAddons | |
94 | %{_includedir}/KF5/kcoreaddons_version.h | |
95 | %{_libdir}/cmake/KF5CoreAddons | |
96 | %attr(755,root,root) %{_libdir}/libKF5CoreAddons.so | |
dd67ec54 | 97 | %{qt5dir}/mkspecs/modules/qt_KCoreAddons.pri |