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