]>
Commit | Line | Data |
---|---|---|
0987b2a6 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
7ff76a39 | 4 | %define kdeframever 5.103 |
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} |
7ff76a39 | 10 | Version: 5.103.0 |
65d6de88 | 11 | Release: 1 |
575424c3 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
71858f32 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
7ff76a39 | 15 | # Source0-md5: 5e13babdfe4d58802331bdd21c469c55 |
575424c3 | 16 | URL: http://www.kde.org/ |
06de5425 AM |
17 | BuildRequires: Qt5Concurrent-devel >= %{qtver} |
18 | BuildRequires: Qt5Core-devel >= %{qtver} | |
19 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
06de5425 | 20 | BuildRequires: Qt5Test-devel >= %{qtver} |
06de5425 | 21 | BuildRequires: Qt5Xml-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 | |
6869a2c8 JP |
35 | Requires: Qt5DBus >= %{qtver} |
36 | Requires: Qt5Xml >= %{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 | ||
44 | %define qt5dir %{_libdir}/qt5 | |
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 | |
70 | install -d build | |
71 | cd build | |
7764050e | 72 | %cmake -G Ninja \ |
0987b2a6 | 73 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
06de5425 | 74 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
575424c3 | 75 | ../ |
7764050e | 76 | %ninja_build |
575424c3 | 77 | |
0987b2a6 WF |
78 | %if %{with tests} |
79 | ctest | |
80 | %endif | |
81 | ||
82 | ||
575424c3 WF |
83 | %install |
84 | rm -rf $RPM_BUILD_ROOT | |
7764050e | 85 | %ninja_install -C build |
575424c3 | 86 | |
06de5425 | 87 | %find_lang %{kfname}5 |
575424c3 WF |
88 | |
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
06de5425 | 95 | %files -f %{kfname}5.lang |
575424c3 WF |
96 | %defattr(644,root,root,755) |
97 | %doc README.md | |
98 | /etc/xdg/menus/applications.menu | |
575424c3 | 99 | %attr(755,root,root) %{_bindir}/kbuildsycoca5 |
8ae22ea6 | 100 | %ghost %{_libdir}/libKF5Service.so.5 |
a10baf6f | 101 | %attr(755,root,root) %{_libdir}/libKF5Service.so.*.* |
575424c3 WF |
102 | %{_datadir}/kservicetypes5/application.desktop |
103 | %{_datadir}/kservicetypes5/kplugininfo.desktop | |
a4723766 | 104 | %{_mandir}/man8/desktoptojson.8* |
575424c3 | 105 | %{_mandir}/man8/kbuildsycoca5.8* |
a4723766 WF |
106 | %lang(ca) %{_mandir}/ca/man8/desktoptojson.8* |
107 | %lang(ca) %{_mandir}/ca/man8/kbuildsycoca5.8* | |
108 | %lang(de) %{_mandir}/de/man8/desktoptojson.8* | |
109 | %lang(de) %{_mandir}/de/man8/kbuildsycoca5.8* | |
110 | %lang(es) %{_mandir}/es/man8/desktoptojson.8* | |
111 | %lang(es) %{_mandir}/es/man8/kbuildsycoca5.8* | |
112 | %lang(it) %{_mandir}/it/man8/desktoptojson.8* | |
113 | %lang(it) %{_mandir}/it/man8/kbuildsycoca5.8* | |
114 | %lang(nl) %{_mandir}/nl/man8/desktoptojson.8* | |
115 | %lang(nl) %{_mandir}/nl/man8/kbuildsycoca5.8* | |
116 | %lang(pt) %{_mandir}/pt/man8/desktoptojson.8* | |
117 | %lang(pt) %{_mandir}/pt/man8/kbuildsycoca5.8* | |
118 | %lang(pt_BR) %{_mandir}/pt_BR/man8/desktoptojson.8* | |
119 | %lang(pt_BR) %{_mandir}/pt_BR/man8/kbuildsycoca5.8* | |
120 | %lang(sv) %{_mandir}/sv/man8/desktoptojson.8* | |
121 | %lang(sv) %{_mandir}/sv/man8/kbuildsycoca5.8* | |
122 | %lang(uk) %{_mandir}/uk/man8/desktoptojson.8* | |
123 | %lang(uk) %{_mandir}/uk/man8/kbuildsycoca5.8* | |
8704d646 | 124 | %lang(id) %{_mandir}/id/man8/desktoptojson.8* |
93b09db2 | 125 | %{_datadir}/qlogging-categories5/kservice.categories |
a28dc5dc WF |
126 | %lang(fr) %{_mandir}/fr/man8/kbuildsycoca5.8* |
127 | %{_datadir}/qlogging-categories5/kservice.renamecategories | |
575424c3 WF |
128 | |
129 | %files devel | |
130 | %defattr(644,root,root,755) | |
131 | %{_includedir}/KF5/KService | |
575424c3 | 132 | %{_libdir}/cmake/KF5Service |
8ae22ea6 | 133 | %{_libdir}/libKF5Service.so |
575424c3 | 134 | %{qt5dir}/mkspecs/modules/qt_KService.pri |