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