]>
Commit | Line | Data |
---|---|---|
0987b2a6 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
6992fb01 | 4 | %define kdeframever 5.249.0 |
0f068852 | 5 | %define qtver 5.15.2 |
06de5425 | 6 | %define kfname kservice |
575424c3 WF |
7 | |
8 | Summary: Plugin framework for desktop services | |
06de5425 | 9 | Name: kf5-%{kfname} |
6992fb01 WF |
10 | Version: 5.249.0 |
11 | Release: 0.1 | |
575424c3 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
6992fb01 WF |
14 | Source0: https://download.kde.org/unstable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
15 | # Source0-md5: 799ba11a5d43bfe10fd6c6adffe20e01 | |
575424c3 | 16 | URL: http://www.kde.org/ |
6992fb01 WF |
17 | BuildRequires: Qt6Concurrent-devel >= %{qtver} |
18 | BuildRequires: Qt6Core-devel >= %{qtver} | |
19 | BuildRequires: Qt6DBus-devel >= %{qtver} | |
20 | BuildRequires: Qt6Test-devel >= %{qtver} | |
21 | BuildRequires: Qt6Xml-devel >= %{qtver} | |
0f068852 JP |
22 | BuildRequires: bison >= 3.0 |
23 | BuildRequires: cmake >= 3.16 | |
6869a2c8 | 24 | BuildRequires: flex |
431a1db7 | 25 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
575424c3 WF |
26 | BuildRequires: kf5-kconfig-devel >= %{version} |
27 | BuildRequires: kf5-kcoreaddons-devel >= %{version} | |
575424c3 WF |
28 | BuildRequires: kf5-kdbusaddons-devel >= %{version} |
29 | BuildRequires: kf5-kdoctools-devel >= %{version} | |
30 | BuildRequires: kf5-ki18n-devel >= %{version} | |
7764050e | 31 | BuildRequires: ninja |
0a73b4b2 | 32 | BuildRequires: rpmbuild(macros) >= 1.736 |
73de18b4 ER |
33 | BuildRequires: tar >= 1:1.22 |
34 | BuildRequires: xz | |
6992fb01 WF |
35 | Requires: Qt6DBus >= %{qtver} |
36 | Requires: Qt6Xml >= %{qtver} | |
7cabe58e | 37 | Requires: kf5-dirs |
6869a2c8 JP |
38 | Requires: kf5-kconfig >= %{version} |
39 | Requires: kf5-kcoreaddons >= %{version} | |
6869a2c8 JP |
40 | Requires: kf5-kdbusaddons >= %{version} |
41 | Requires: kf5-ki18n >= %{version} | |
575424c3 WF |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
6992fb01 | 44 | %define qt6dir %{_libdir}/qt6 |
575424c3 WF |
45 | |
46 | %description | |
47 | KService provides a plugin framework for handling desktop services. | |
48 | Services can be applications or libraries. They can be bound to MIME | |
49 | types or handled by application specific code. | |
50 | ||
51 | %package devel | |
06de5425 AM |
52 | Summary: Header files for %{kfname} development |
53 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
575424c3 WF |
54 | Group: X11/Development/Libraries |
55 | Requires: %{name} = %{version}-%{release} | |
0f068852 | 56 | Requires: cmake >= 3.16 |
9e80cb3e JP |
57 | Requires: kf5-kconfig-devel >= %{version} |
58 | Requires: kf5-kcoreaddons-devel >= %{version} | |
575424c3 WF |
59 | |
60 | %description devel | |
06de5425 | 61 | Header files for %{kfname} development. |
575424c3 WF |
62 | |
63 | %description devel -l pl.UTF-8 | |
06de5425 | 64 | Pliki nagłówkowe dla programistów używających %{kfname}. |
575424c3 WF |
65 | |
66 | %prep | |
06de5425 | 67 | %setup -q -n %{kfname}-%{version} |
575424c3 WF |
68 | |
69 | %build | |
7dbf6136 WF |
70 | %cmake -B build \ |
71 | -G Ninja \ | |
0987b2a6 | 72 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
7dbf6136 WF |
73 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
74 | ||
75 | %ninja_build -C build | |
575424c3 | 76 | |
0987b2a6 | 77 | %if %{with tests} |
7dbf6136 | 78 | %ninja_build -C build test |
0987b2a6 WF |
79 | %endif |
80 | ||
81 | ||
575424c3 WF |
82 | %install |
83 | rm -rf $RPM_BUILD_ROOT | |
7764050e | 84 | %ninja_install -C build |
575424c3 | 85 | |
6992fb01 | 86 | %find_lang %{kfname}6 |
575424c3 WF |
87 | |
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
6992fb01 | 94 | %files -f %{kfname}6.lang |
575424c3 WF |
95 | %defattr(644,root,root,755) |
96 | %doc README.md | |
6992fb01 WF |
97 | %ghost %{_libdir}/libKF6Service.so.6 |
98 | %attr(755,root,root) %{_libdir}/libKF6Service.so.*.* | |
99 | %{_datadir}/qlogging-categories6/kservice.categories | |
100 | %{_datadir}/qlogging-categories6/kservice.renamecategories | |
101 | %attr(755,root,root) %{_bindir}/kbuildsycoca6 | |
102 | %{_mandir}/ca/man8/kbuildsycoca6.8* | |
103 | %{_mandir}/es/man8/kbuildsycoca6.8* | |
104 | %{_mandir}/fr/man8/kbuildsycoca6.8* | |
105 | %{_mandir}/it/man8/kbuildsycoca6.8* | |
106 | %{_mandir}/man8/kbuildsycoca6.8* | |
107 | %{_mandir}/nl/man8/kbuildsycoca6.8* | |
108 | %{_mandir}/pt_BR/man8/kbuildsycoca6.8* | |
109 | %{_mandir}/tr/man8/kbuildsycoca6.8* | |
110 | %{_mandir}/uk/man8/kbuildsycoca6.8* | |
575424c3 WF |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
6992fb01 WF |
114 | %{_includedir}/KF6/KService |
115 | %{_libdir}/cmake/KF6Service | |
116 | %{_libdir}/libKF6Service.so |