]>
Commit | Line | Data |
---|---|---|
bd067b70 AM |
1 | %define kdeframever 5.4 |
2 | %define qtver 5.3.2 | |
3 | %define kfname kconfig | |
c2bc7e94 WF |
4 | |
5 | Summary: Backend for storing application configuration | |
bd067b70 AM |
6 | Name: kf5-%{kfname} |
7 | Version: 5.4.0 | |
45dfadd2 | 8 | Release: 1 |
c2bc7e94 WF |
9 | License: LGPL v2.1+ |
10 | Group: X11/Libraries | |
bd067b70 AM |
11 | Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
12 | # Source0-md5: 2fcd2787e5c3c2df7265fc9f6ec8af10 | |
c2bc7e94 | 13 | URL: http://www.kde.org/ |
bd067b70 AM |
14 | BuildRequires: Qt5Core-devel >= %{qtver} |
15 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
16 | BuildRequires: Qt5Test-devel >= %{qtver} | |
17 | BuildRequires: Qt5Xml-devel >= %{qtver} | |
c2bc7e94 | 18 | BuildRequires: cmake >= 2.8.12 |
bd067b70 AM |
19 | BuildRequires: kf5-extra-cmake-modules >= 1.4.0 |
20 | BuildRequires: qt5-linguist >= %{qtver} | |
c2bc7e94 | 21 | BuildRequires: rpmbuild(macros) >= 1.164 |
29d65f4c ER |
22 | BuildRequires: tar >= 1:1.22 |
23 | BuildRequires: xz | |
c2bc7e94 WF |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %define qt5dir %{_libdir}/qt5 | |
27 | ||
28 | %description | |
29 | KConfig provides an advanced configuration system. It is made of two | |
30 | parts: KConfigCore and KConfigGui. | |
31 | ||
32 | KConfigCore provides access to the configuration files themselves. It | |
33 | features: | |
34 | ||
35 | - Code generation: describe your configuration in an XML file, and use | |
36 | `kconfig_compiler to generate classes that read and write | |
37 | configuration entries. | |
38 | - Cascading configuration files (global settings overridden by local | |
39 | settings). | |
40 | - Optional shell expansion support (see [docs/options.md](@ref | |
41 | options)). | |
42 | - The ability to lock down configuration options (see | |
43 | [docs/options.md](@ref options)). | |
44 | ||
45 | KConfigGui provides a way to hook widgets to the configuration so that | |
46 | they are automatically initialized from the configuration and | |
47 | automatically propagate their changes to their respective | |
48 | configuration files. | |
49 | ||
50 | %package devel | |
bd067b70 AM |
51 | Summary: Header files for %{kfname} development |
52 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
c2bc7e94 WF |
53 | Group: X11/Development/Libraries |
54 | Requires: %{name} = %{version}-%{release} | |
55 | ||
56 | %description devel | |
bd067b70 | 57 | Header files for %{kfname} development. |
c2bc7e94 WF |
58 | |
59 | %description devel -l pl.UTF-8 | |
bd067b70 | 60 | Pliki nagłówkowe dla programistów używających %{kfname}. |
c2bc7e94 WF |
61 | |
62 | %prep | |
bd067b70 | 63 | %setup -q -n %{kfname}-%{version} |
c2bc7e94 WF |
64 | |
65 | %build | |
66 | install -d build | |
67 | cd build | |
68 | %cmake \ | |
bd067b70 | 69 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
c2bc7e94 WF |
70 | ../ |
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %{__make} -C build/ install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
bd067b70 | 79 | %find_lang %{kfname}5_qt --with-qm |
c2bc7e94 WF |
80 | |
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
bd067b70 | 87 | %files -f %{kfname}5_qt.lang |
c2bc7e94 WF |
88 | %defattr(644,root,root,755) |
89 | %doc DESIGN README.md TODO | |
90 | %attr(755,root,root) %ghost %{_libdir}/libKF5ConfigCore.so.5 | |
bd067b70 | 91 | %attr(755,root,root) %{_libdir}/libKF5ConfigCore.so.5.4.0 |
c2bc7e94 | 92 | %attr(755,root,root) %ghost %{_libdir}/libKF5ConfigGui.so.5 |
bd067b70 | 93 | %attr(755,root,root) %{_libdir}/libKF5ConfigGui.so.5.4.0 |
c2bc7e94 WF |
94 | %attr(755,root,root) %{_bindir}/kconfig_compiler_kf5 |
95 | %attr(755,root,root) %{_bindir}/kreadconfig5 | |
96 | %attr(755,root,root) %{_bindir}/kwriteconfig5 | |
97 | %attr(755,root,root) %{_libdir}/kf5/kconf_update | |
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %attr(755,root,root) %{_libdir}/libKF5ConfigCore.so | |
102 | %attr(755,root,root) %{_libdir}/libKF5ConfigGui.so | |
103 | %{_includedir}/KF5/KConfigCore | |
104 | %{_includedir}/KF5/KConfigGui | |
105 | %{_includedir}/KF5/kconfig_version.h | |
106 | %{_libdir}/cmake/KF5Config | |
107 | %{qt5dir}/mkspecs/modules/qt_KConfigCore.pri | |
108 | %{qt5dir}/mkspecs/modules/qt_KConfigGui.pri |