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