]> git.pld-linux.org Git - packages/kf5-solid.git/blame - kf5-solid.spec
- updated to 5.249.0; rel 0.1
[packages/kf5-solid.git] / kf5-solid.spec
CommitLineData
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
8Summary: Desktop hardware abstraction
f2270daf 9Name: kf5-%{kfname}
894b255d
WF
10Version: 5.249.0
11Release: 0.1
2d3dc916
WF
12License: LGPL v2.1+
13Group: X11/Libraries
894b255d
WF
14Source0: https://download.kde.org/unstable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
15# Source0-md5: 42921db4c11a2a467cbd4714ab304294
2d3dc916 16URL: http://www.kde.org/
894b255d
WF
17BuildRequires: Qt6Concurrent-devel >= %{qtver}
18BuildRequires: Qt6Core-devel >= %{qtver}
19BuildRequires: Qt6DBus-devel >= %{qtver}
20BuildRequires: Qt6Gui-devel >= %{qtver}
21BuildRequires: Qt6Qml-devel >= %{qtver}
22BuildRequires: Qt6Test-devel >= %{qtver}
23BuildRequires: Qt6Xml-devel >= %{qtver}
b470c484
JP
24BuildRequires: bison >= 3.0
25BuildRequires: cmake >= 3.16
2d3dc916 26BuildRequires: flex
5bc0bffd 27BuildRequires: kf5-extra-cmake-modules >= %{version}
eecad90d 28BuildRequires: libimobiledevice-devel
b470c484 29BuildRequires: libmount-devel
eecad90d 30BuildRequires: libplist-devel
2764a28d 31BuildRequires: ninja
eecad90d 32BuildRequires: pkgconfig
894b255d 33BuildRequires: qt6-linguist >= %{qtver}
7bef77e9 34BuildRequires: rpmbuild(macros) >= 1.736
94c9acad 35BuildRequires: tar >= 1:1.22
2d3dc916 36BuildRequires: udev-devel
94c9acad 37BuildRequires: xz
894b255d
WF
38Requires: Qt6Core >= %{qtver}
39Requires: Qt6DBus >= %{qtver}
40Requires: Qt6Gui >= %{qtver}
41Requires: Qt6Qml >= %{qtver}
42Requires: Qt6Xml >= %{qtver}
6ff99359 43Requires: kf5-dirs
eecad90d 44Suggests: media-player-info
2d3dc916
WF
45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
894b255d 47%define qt6dir %{_libdir}/qt6
2d3dc916
WF
48
49%description
50Solid is a device integration framework. It provides a way of querying
51and interacting with hardware independently of the underlying
52operating system.
53
54It provides the following features for application developers:
55
56- Hardware Discovery
57- Power Management
58- Network Management
59
60
61%package devel
f2270daf
AM
62Summary: Header files for %{kfname} development
63Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
2d3dc916
WF
64Group: X11/Development/Libraries
65Requires: %{name} = %{version}-%{release}
894b255d 66Requires: Qt6Core-devel >= %{qtver}
b470c484 67Requires: cmake >= 3.16
2d3dc916
WF
68
69%description devel
f2270daf 70Header files for %{kfname} development.
2d3dc916
WF
71
72%description devel -l pl.UTF-8
f2270daf 73Pliki 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
92rm -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
98rm -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
This page took 0.500928 seconds and 4 git commands to generate.