]>
Commit | Line | Data |
---|---|---|
eb6214ca | 1 | %define kdeframever 5.85 |
eecad90d | 2 | %define qtver 5.14.0 |
f2270daf | 3 | %define kfname solid |
2d3dc916 WF |
4 | |
5 | Summary: Desktop hardware abstraction | |
f2270daf | 6 | Name: kf5-%{kfname} |
eb6214ca | 7 | Version: 5.85.0 |
12c10e6b | 8 | Release: 1 |
2d3dc916 WF |
9 | License: LGPL v2.1+ |
10 | Group: X11/Libraries | |
f2270daf | 11 | Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
eb6214ca | 12 | # Source0-md5: 254a03e4914ad144126a615ebbcbc11c |
2d3dc916 | 13 | URL: http://www.kde.org/ |
f2270daf AM |
14 | BuildRequires: Qt5Concurrent-devel >= %{qtver} |
15 | BuildRequires: Qt5Core-devel >= %{qtver} | |
16 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
17 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
10b627be | 18 | BuildRequires: Qt5Qml-devel >= %{qtver} |
f2270daf | 19 | BuildRequires: Qt5Test-devel >= %{qtver} |
f2270daf | 20 | BuildRequires: Qt5Xml-devel >= %{qtver} |
2d3dc916 | 21 | BuildRequires: bison |
eecad90d | 22 | BuildRequires: cmake >= 3.5 |
2d3dc916 | 23 | BuildRequires: flex |
5bc0bffd | 24 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
eecad90d JP |
25 | BuildRequires: libimobiledevice-devel |
26 | BuildRequires: libplist-devel | |
2764a28d | 27 | BuildRequires: ninja |
eecad90d | 28 | BuildRequires: pkgconfig |
f2270daf | 29 | BuildRequires: qt5-linguist >= %{qtver} |
7bef77e9 | 30 | BuildRequires: rpmbuild(macros) >= 1.736 |
94c9acad | 31 | BuildRequires: tar >= 1:1.22 |
2d3dc916 | 32 | BuildRequires: udev-devel |
94c9acad | 33 | BuildRequires: xz |
eecad90d JP |
34 | Requires: Qt5Core >= %{qtver} |
35 | Requires: Qt5DBus >= %{qtver} | |
36 | Requires: Qt5Gui >= %{qtver} | |
37 | Requires: Qt5Qml >= %{qtver} | |
38 | Requires: Qt5Xml >= %{qtver} | |
6ff99359 | 39 | Requires: kf5-dirs |
eecad90d | 40 | Suggests: media-player-info |
2d3dc916 WF |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %define qt5dir %{_libdir}/qt5 | |
44 | ||
45 | %description | |
46 | Solid is a device integration framework. It provides a way of querying | |
47 | and interacting with hardware independently of the underlying | |
48 | operating system. | |
49 | ||
50 | It provides the following features for application developers: | |
51 | ||
52 | - Hardware Discovery | |
53 | - Power Management | |
54 | - Network Management | |
55 | ||
56 | ||
57 | %package devel | |
f2270daf AM |
58 | Summary: Header files for %{kfname} development |
59 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
2d3dc916 WF |
60 | Group: X11/Development/Libraries |
61 | Requires: %{name} = %{version}-%{release} | |
10b627be | 62 | Requires: Qt5Core-devel >= %{qtver} |
eecad90d | 63 | Requires: cmake >= 3.5 |
2d3dc916 WF |
64 | |
65 | %description devel | |
f2270daf | 66 | Header files for %{kfname} development. |
2d3dc916 WF |
67 | |
68 | %description devel -l pl.UTF-8 | |
f2270daf | 69 | Pliki nagłówkowe dla programistów używających %{kfname}. |
2d3dc916 WF |
70 | |
71 | %prep | |
f2270daf | 72 | %setup -q -n %{kfname}-%{version} |
2d3dc916 WF |
73 | |
74 | %build | |
75 | install -d build | |
76 | cd build | |
2764a28d | 77 | %cmake -G Ninja \ |
f2270daf | 78 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
2d3dc916 | 79 | ../ |
2764a28d | 80 | %ninja_build |
2d3dc916 WF |
81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
2764a28d | 84 | %ninja_install -C build |
2d3dc916 | 85 | |
28381ad1 | 86 | %find_lang %{kfname}5_qt --with-qm --all-name --with-kde |
2d3dc916 WF |
87 | |
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
f2270daf | 94 | %files -f %{kfname}5_qt.lang |
2d3dc916 WF |
95 | %defattr(644,root,root,755) |
96 | %doc README.md TODO | |
97 | %attr(755,root,root) %{_bindir}/solid-hardware5 | |
09673a69 | 98 | %ghost %{_libdir}/libKF5Solid.so.5 |
3cbe4762 AM |
99 | %attr(755,root,root) %{_libdir}/libKF5Solid.so.*.* |
100 | %dir %{_libdir}/qt5/qml/org/kde/solid | |
07415d4d | 101 | %{_libdir}/qt5/qml/org/kde/solid/qmldir |
3cbe4762 | 102 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/solid/libsolidextensionplugin.so |
591c03ad | 103 | %{_datadir}/qlogging-categories5/solid.categories |
ee4f52af | 104 | %{_datadir}/qlogging-categories5/solid.renamecategories |
2d3dc916 WF |
105 | |
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
108 | %{_includedir}/KF5/Solid | |
109 | %{_includedir}/KF5/solid_version.h | |
110 | %{_libdir}/cmake/KF5Solid | |
09673a69 | 111 | %{_libdir}/libKF5Solid.so |
2d3dc916 | 112 | %{qt5dir}/mkspecs/modules/qt_Solid.pri |