]>
Commit | Line | Data |
---|---|---|
4c044f10 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
da2b614f | 4 | %define kdeframever 5.115 |
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} |
da2b614f | 10 | Version: 5.115.0 |
f5733e8c | 11 | Release: 1 |
c2bc7e94 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
f5733e8c | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
da2b614f | 15 | # Source0-md5: fcb77cb2d9349b33e9e085ca4d2ebe7f |
c2bc7e94 | 16 | URL: http://www.kde.org/ |
f5733e8c WF |
17 | BuildRequires: Qt5Core-devel >= %{qtver} |
18 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
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 | |
f5733e8c WF |
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} | |
f5733e8c WF |
64 | Requires: Qt5DBus-devel >= %{qtver} |
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 | |
f5733e8c WF |
106 | %ghost %{_libdir}/libKF5ConfigCore.so.5 |
107 | %attr(755,root,root) %{_libdir}/libKF5ConfigCore.so.*.* | |
108 | %ghost %{_libdir}/libKF5ConfigGui.so.5 | |
109 | %ghost %{_libdir}/libKF5ConfigQml.so.5 | |
110 | %attr(755,root,root) %{_libdir}/libKF5ConfigQml.so.*.* | |
111 | %attr(755,root,root) %{_libdir}/libKF5ConfigGui.so.*.* | |
112 | %attr(755,root,root) %{_bindir}/kreadconfig5 | |
113 | %attr(755,root,root) %{_bindir}/kwriteconfig5 | |
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 |
f5733e8c WF |
117 | %{_datadir}/qlogging-categories5/kconfig.categories |
118 | %{_datadir}/qlogging-categories5/kconfig.renamecategories | |
c2bc7e94 WF |
119 | |
120 | %files devel | |
121 | %defattr(644,root,root,755) | |
f5733e8c WF |
122 | %{_libdir}/libKF5ConfigCore.so |
123 | %{_libdir}/libKF5ConfigGui.so | |
124 | %{_libdir}/libKF5ConfigQml.so | |
125 | %{_includedir}/KF5/KConfigCore | |
126 | %{_includedir}/KF5/KConfigGui | |
127 | %{_includedir}/KF5/KConfigQml | |
128 | %{_includedir}/KF5/KConfig | |
129 | %{_libdir}/cmake/KF5Config | |
130 | %{qt5dir}/mkspecs/modules/qt_KConfigCore.pri | |
131 | %{qt5dir}/mkspecs/modules/qt_KConfigGui.pri |