]>
Commit | Line | Data |
---|---|---|
81299207 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
894b255d | 4 | %define kdeframever 5.249.0 |
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} |
894b255d WF |
10 | Version: 5.249.0 |
11 | Release: 0.1 | |
2d3dc916 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
894b255d WF |
14 | Source0: https://download.kde.org/unstable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
15 | # Source0-md5: 42921db4c11a2a467cbd4714ab304294 | |
2d3dc916 | 16 | URL: http://www.kde.org/ |
894b255d WF |
17 | BuildRequires: Qt6Concurrent-devel >= %{qtver} |
18 | BuildRequires: Qt6Core-devel >= %{qtver} | |
19 | BuildRequires: Qt6DBus-devel >= %{qtver} | |
20 | BuildRequires: Qt6Gui-devel >= %{qtver} | |
21 | BuildRequires: Qt6Qml-devel >= %{qtver} | |
22 | BuildRequires: Qt6Test-devel >= %{qtver} | |
23 | BuildRequires: Qt6Xml-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 |
894b255d | 33 | BuildRequires: qt6-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 |
894b255d WF |
38 | Requires: Qt6Core >= %{qtver} |
39 | Requires: Qt6DBus >= %{qtver} | |
40 | Requires: Qt6Gui >= %{qtver} | |
41 | Requires: Qt6Qml >= %{qtver} | |
42 | Requires: Qt6Xml >= %{qtver} | |
6ff99359 | 43 | Requires: kf5-dirs |
eecad90d | 44 | Suggests: media-player-info |
2d3dc916 WF |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
894b255d | 47 | %define qt6dir %{_libdir}/qt6 |
2d3dc916 WF |
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} | |
894b255d | 66 | Requires: Qt6Core-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 | |
c2ff501f WF |
79 | %cmake -B build \ |
80 | -G Ninja \ | |
81299207 | 81 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
c2ff501f WF |
82 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
83 | ||
84 | %ninja_build -C build | |
2d3dc916 | 85 | |
81299207 | 86 | %if %{with tests} |
c2ff501f | 87 | %ninja_build -C build test |
81299207 WF |
88 | %endif |
89 | ||
90 | ||
2d3dc916 WF |
91 | %install |
92 | rm -rf $RPM_BUILD_ROOT | |
2764a28d | 93 | %ninja_install -C build |
2d3dc916 | 94 | |
894b255d | 95 | %find_lang %{kfname}6_qt --with-qm --all-name --with-kde |
2d3dc916 WF |
96 | |
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
894b255d | 103 | %files -f %{kfname}6_qt.lang |
2d3dc916 WF |
104 | %defattr(644,root,root,755) |
105 | %doc README.md TODO | |
894b255d WF |
106 | %attr(755,root,root) %{_bindir}/solid-hardware6 |
107 | %ghost %{_libdir}/libKF6Solid.so.6 | |
108 | %attr(755,root,root) %{_libdir}/libKF6Solid.so.*.* | |
109 | %{_datadir}/qlogging-categories6/solid.categories | |
110 | %{_datadir}/qlogging-categories6/solid.renamecategories | |
2d3dc916 WF |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
894b255d WF |
114 | %{_includedir}/KF6/Solid |
115 | %{_libdir}/cmake/KF6Solid | |
116 | %{_libdir}/libKF6Solid.so |