]>
Commit | Line | Data |
---|---|---|
e8ec38d4 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
37316bd3 | 4 | %define kdeappsver 22.04.0 |
37e3adc0 | 5 | %define qtver 5.9.0 |
93721a63 WF |
6 | %define kaname libkdegames |
7 | Summary: Libkdegames | |
8 | Name: ka5-%{kaname} | |
37316bd3 | 9 | Version: 22.04.0 |
93721a63 WF |
10 | Release: 1 |
11 | License: GPL v2+/LGPL v2.1+ | |
12 | Group: X11/Libraries | |
2ecdb355 | 13 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
37316bd3 | 14 | # Source0-md5: 2b94eedd02df5bee35c44d07e9fae30a |
93721a63 | 15 | URL: http://www.kde.org/ |
37e3adc0 WF |
16 | BuildRequires: OpenAL-devel |
17 | BuildRequires: Qt5Core-devel | |
93721a63 | 18 | BuildRequires: Qt5Core-devel >= %{qtver} |
37e3adc0 WF |
19 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
20 | BuildRequires: Qt5Network-devel >= 5.11.1 | |
21 | BuildRequires: Qt5Qml-devel | |
22 | BuildRequires: Qt5Quick-devel | |
23 | BuildRequires: Qt5Svg-devel | |
24 | BuildRequires: Qt5Test-devel | |
25 | BuildRequires: Qt5Widgets-devel | |
93721a63 | 26 | BuildRequires: cmake >= 2.8.12 |
37e3adc0 WF |
27 | BuildRequires: gettext-devel |
28 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 | |
29 | BuildRequires: kf5-karchive-devel | |
30 | BuildRequires: kf5-kbookmarks-devel | |
31 | BuildRequires: kf5-kcodecs-devel | |
32 | BuildRequires: kf5-kcompletion-devel | |
33 | BuildRequires: kf5-kconfig-devel | |
34 | BuildRequires: kf5-kconfigwidgets-devel | |
35 | BuildRequires: kf5-kcoreaddons-devel | |
36 | BuildRequires: kf5-kcrash-devel | |
37 | BuildRequires: kf5-kdbusaddons-devel | |
38 | BuildRequires: kf5-kdeclarative-devel | |
39 | BuildRequires: kf5-kdnssd-devel | |
40 | BuildRequires: kf5-kglobalaccel-devel | |
41 | BuildRequires: kf5-kguiaddons-devel | |
42 | BuildRequires: kf5-ki18n-devel | |
43 | BuildRequires: kf5-kiconthemes-devel | |
44 | BuildRequires: kf5-kio-devel | |
45 | BuildRequires: kf5-kitemviews-devel | |
46 | BuildRequires: kf5-kjobwidgets-devel | |
47 | BuildRequires: kf5-knewstuff-devel | |
48 | BuildRequires: kf5-kservice-devel | |
49 | BuildRequires: kf5-ktextwidgets-devel | |
50 | BuildRequires: kf5-kwidgetsaddons-devel | |
51 | BuildRequires: kf5-kxmlgui-devel | |
52 | BuildRequires: libsndfile-devel | |
fd20ace0 | 53 | BuildRequires: ninja |
93721a63 WF |
54 | BuildRequires: qt5-build >= %{qtver} |
55 | BuildRequires: rpmbuild(macros) >= 1.164 | |
56 | BuildRequires: shared-mime-info | |
57 | BuildRequires: tar >= 1:1.22 | |
58 | BuildRequires: xz | |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
60 | ||
61 | %description | |
37e3adc0 | 62 | Base library common to many KDE games. |
93721a63 | 63 | |
d4fc71bf WF |
64 | %description -l pl.UTF-8 |
65 | Bazowa biblioteka wspólna dla wielu gier KDE. | |
66 | ||
93721a63 WF |
67 | %package devel |
68 | Summary: Header files for %{kaname} development | |
37e3adc0 | 69 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} |
93721a63 WF |
70 | Group: X11/Development/Libraries |
71 | Requires: %{name} = %{version}-%{release} | |
72 | ||
73 | %description devel | |
74 | Header files for %{kaname} development. | |
75 | ||
76 | %description devel -l pl.UTF-8 | |
77 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
78 | ||
79 | %prep | |
80 | %setup -q -n %{kaname}-%{version} | |
81 | ||
82 | %build | |
83 | install -d build | |
84 | cd build | |
85 | %cmake \ | |
fd20ace0 | 86 | -G Ninja \ |
e8ec38d4 | 87 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
854542fb | 88 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
93721a63 WF |
89 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
90 | .. | |
fd20ace0 | 91 | %ninja_build |
93721a63 | 92 | |
e8ec38d4 WF |
93 | %if %{with tests} |
94 | ctest | |
95 | %endif | |
96 | ||
97 | ||
93721a63 WF |
98 | %install |
99 | rm -rf $RPM_BUILD_ROOT | |
fd20ace0 | 100 | %ninja_install -C build |
93721a63 WF |
101 | |
102 | %find_lang %{kaname} --all-name --with-kde | |
103 | ||
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %post -p /sbin/ldconfig | |
108 | %postun -p /sbin/ldconfig | |
109 | ||
110 | %files -f %{kaname}.lang | |
111 | %defattr(644,root,root,755) | |
53326876 | 112 | %ghost %{_libdir}/libKF5KDEGames.so.7 |
93721a63 | 113 | %attr(755,root,root) %{_libdir}/libKF5KDEGames.so.*.*.* |
53326876 | 114 | %ghost %{_libdir}/libKF5KDEGamesPrivate.so.7 |
93721a63 WF |
115 | %attr(755,root,root) %{_libdir}/libKF5KDEGamesPrivate.so.*.*.* |
116 | %{_libdir}/qt5/qml/org/kde/games/core/KgItem.qml | |
117 | %dir %{_libdir}/qt5/qml/org/kde/games | |
118 | %dir %{_libdir}/qt5/qml/org/kde/games/core | |
119 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/games/core/libcorebindingsplugin.so | |
120 | %{_libdir}/qt5/qml/org/kde/games/core/qmldir | |
121 | %{_datadir}/carddecks | |
122 | %{_datadir}/kconf_update/kgthemeprovider-migration.upd | |
2ecdb355 | 123 | %{_datadir}/qlogging-categories5/libkdegames.categories |
93721a63 WF |
124 | |
125 | %files devel | |
126 | %defattr(644,root,root,755) | |
127 | %{_includedir}/KF5/KF5KDEGames | |
128 | %{_libdir}/cmake/KF5KDEGames | |
53326876 WF |
129 | %{_libdir}/libKF5KDEGames.so |
130 | %{_libdir}/libKF5KDEGamesPrivate.so |