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