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