]>
Commit | Line | Data |
---|---|---|
0987b2a6 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
0dc2efb0 | 4 | %define kdeframever 5.115 |
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} |
0dc2efb0 | 10 | Version: 5.115.0 |
be64ae00 | 11 | Release: 1 |
575424c3 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
be64ae00 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
0dc2efb0 | 15 | # Source0-md5: 1fc0908df48b8041271b88350b1f59f0 |
575424c3 | 16 | URL: http://www.kde.org/ |
be64ae00 WF |
17 | BuildRequires: Qt5Concurrent-devel >= %{qtver} |
18 | BuildRequires: Qt5Core-devel >= %{qtver} | |
19 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
20 | BuildRequires: Qt5Test-devel >= %{qtver} | |
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 | |
be64ae00 WF |
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 | ||
be64ae00 | 44 | %define qt5dir %{_libdir}/qt5 |
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 | |
be64ae00 | 86 | %find_lang %{kfname}5 |
575424c3 WF |
87 | |
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
be64ae00 | 94 | %files -f %{kfname}5.lang |
575424c3 WF |
95 | %defattr(644,root,root,755) |
96 | %doc README.md | |
be64ae00 WF |
97 | /etc/xdg/menus/applications.menu |
98 | %attr(755,root,root) %{_bindir}/kbuildsycoca5 | |
99 | %ghost %{_libdir}/libKF5Service.so.5 | |
100 | %attr(755,root,root) %{_libdir}/libKF5Service.so.*.* | |
101 | %{_datadir}/kservicetypes5/application.desktop | |
102 | %{_datadir}/kservicetypes5/kplugininfo.desktop | |
103 | %{_mandir}/man8/desktoptojson.8* | |
104 | %{_mandir}/man8/kbuildsycoca5.8* | |
105 | %lang(ca) %{_mandir}/ca/man8/desktoptojson.8* | |
106 | %lang(ca) %{_mandir}/ca/man8/kbuildsycoca5.8* | |
107 | %lang(de) %{_mandir}/de/man8/desktoptojson.8* | |
108 | %lang(de) %{_mandir}/de/man8/kbuildsycoca5.8* | |
109 | %lang(es) %{_mandir}/es/man8/desktoptojson.8* | |
110 | %lang(es) %{_mandir}/es/man8/kbuildsycoca5.8* | |
111 | %lang(it) %{_mandir}/it/man8/desktoptojson.8* | |
112 | %lang(it) %{_mandir}/it/man8/kbuildsycoca5.8* | |
113 | %lang(nl) %{_mandir}/nl/man8/desktoptojson.8* | |
114 | %lang(nl) %{_mandir}/nl/man8/kbuildsycoca5.8* | |
115 | %lang(pt) %{_mandir}/pt/man8/desktoptojson.8* | |
116 | %lang(pt) %{_mandir}/pt/man8/kbuildsycoca5.8* | |
117 | %lang(pt_BR) %{_mandir}/pt_BR/man8/desktoptojson.8* | |
118 | %lang(pt_BR) %{_mandir}/pt_BR/man8/kbuildsycoca5.8* | |
119 | %lang(sv) %{_mandir}/sv/man8/desktoptojson.8* | |
120 | %lang(sv) %{_mandir}/sv/man8/kbuildsycoca5.8* | |
121 | %lang(uk) %{_mandir}/uk/man8/desktoptojson.8* | |
122 | %lang(uk) %{_mandir}/uk/man8/kbuildsycoca5.8* | |
123 | %lang(id) %{_mandir}/id/man8/desktoptojson.8* | |
124 | %{_datadir}/qlogging-categories5/kservice.categories | |
125 | %lang(fr) %{_mandir}/fr/man8/kbuildsycoca5.8* | |
126 | %{_datadir}/qlogging-categories5/kservice.renamecategories | |
575424c3 WF |
127 | |
128 | %files devel | |
129 | %defattr(644,root,root,755) | |
be64ae00 WF |
130 | %{_includedir}/KF5/KService |
131 | %{_libdir}/cmake/KF5Service | |
132 | %{_libdir}/libKF5Service.so | |
133 | %{qt5dir}/mkspecs/modules/qt_KService.pri |