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