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