]>
Commit | Line | Data |
---|---|---|
0d2d92ad WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
ab040a71 | 4 | %define kdeappsver 21.12.3 |
009aef6e | 5 | %define qtver 5.9.0 |
de340b96 WF |
6 | %define kaname palapeli |
7 | Summary: Puzzle game | |
8 | Name: ka5-%{kaname} | |
ab040a71 | 9 | Version: 21.12.3 |
7befe91d | 10 | Release: 1 |
de340b96 | 11 | License: GPL v2+/LGPL v2.1+ |
009aef6e | 12 | Group: X11/Applications/Games |
d5e4de07 | 13 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
ab040a71 | 14 | # Source0-md5: dcf214c9c2672dc48f7fb369a3614907 |
de340b96 | 15 | URL: http://www.kde.org/ |
009aef6e | 16 | BuildRequires: Qt5Concurrent-devel |
de340b96 | 17 | BuildRequires: Qt5Core-devel >= %{qtver} |
009aef6e WF |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
19 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
20 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
21 | BuildRequires: Qt5Svg-devel | |
22 | BuildRequires: Qt5Widgets-devel | |
de340b96 | 23 | BuildRequires: cmake >= 2.8.12 |
009aef6e | 24 | BuildRequires: gettext-devel |
7574c63b | 25 | BuildRequires: ka5-libkdegames-devel >= %{kdeappsver} |
009aef6e WF |
26 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 |
27 | BuildRequires: kf5-karchive-devel >= 5.30.0 | |
28 | BuildRequires: kf5-kcompletion-devel >= 5.30.0 | |
29 | BuildRequires: kf5-kconfig-devel >= 5.30.0 | |
30 | BuildRequires: kf5-kconfigwidgets-devel >= 5.30.0 | |
31 | BuildRequires: kf5-kcoreaddons-devel >= 5.30.0 | |
32 | BuildRequires: kf5-kcrash-devel >= 5.30.0 | |
33 | BuildRequires: kf5-ki18n-devel >= 5.30.0 | |
34 | BuildRequires: kf5-kio-devel >= 5.30.0 | |
35 | BuildRequires: kf5-kitemviews-devel >= 5.30.0 | |
36 | BuildRequires: kf5-knotifications-devel >= 5.30.0 | |
37 | BuildRequires: kf5-kservice-devel >= 5.30.0 | |
38 | BuildRequires: kf5-kwidgetsaddons-devel >= 5.30.0 | |
39 | BuildRequires: kf5-kxmlgui-devel >= 5.30.0 | |
7574c63b | 40 | BuildRequires: ninja |
de340b96 WF |
41 | BuildRequires: qt5-build >= %{qtver} |
42 | BuildRequires: rpmbuild(macros) >= 1.164 | |
43 | BuildRequires: shared-mime-info | |
44 | BuildRequires: tar >= 1:1.22 | |
45 | BuildRequires: xz | |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
009aef6e WF |
49 | Palapeli is a single-player jigsaw puzzle game. Unlike other games in |
50 | that genre, you are not limited to aligning pieces on imaginary grids. | |
51 | The pieces are freely moveable. Also, Palapeli features real | |
52 | persistency, i.e. everything you do is saved on your disk immediately. | |
de340b96 | 53 | |
4ceea990 WF |
54 | %description -l pl.UTF-8 |
55 | Palapeli jest jednosobową grą w układanie puzli. W odróżnieniu do | |
56 | innych gier z tego gatunku pojedyncze puzle nie są "przywiązane" | |
57 | do siatki. Możesz je dowolnie przesuwać. Jedną z cech Palapeli jest | |
58 | zapis wszystkich ruchów w czasie rzeczywistym na dysku. | |
59 | ||
de340b96 WF |
60 | %package devel |
61 | Summary: Header files for %{kaname} development | |
62 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
63 | Group: X11/Development/Libraries | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | ||
66 | %description devel | |
67 | Header files for %{kaname} development. | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
71 | ||
72 | ||
73 | %prep | |
74 | %setup -q -n %{kaname}-%{version} | |
75 | ||
76 | %build | |
77 | install -d build | |
78 | cd build | |
79 | %cmake \ | |
7574c63b | 80 | -G Ninja \ |
0d2d92ad | 81 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
6fe6cf3b | 82 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
de340b96 WF |
83 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
84 | .. | |
7574c63b | 85 | %ninja_build |
de340b96 | 86 | |
0d2d92ad WF |
87 | %if %{with tests} |
88 | ctest | |
89 | %endif | |
90 | ||
91 | ||
de340b96 WF |
92 | %install |
93 | rm -rf $RPM_BUILD_ROOT | |
7574c63b | 94 | %ninja_install -C build |
de340b96 WF |
95 | |
96 | %find_lang %{kaname} --all-name --with-kde | |
97 | ||
98 | %clean | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
df165b1e WF |
101 | %post -p /sbin/ldconfig |
102 | %postun -p /sbin/ldconfig | |
103 | ||
de340b96 WF |
104 | %files -f %{kaname}.lang |
105 | %defattr(644,root,root,755) | |
106 | /etc/xdg/palapeli-collectionrc | |
107 | %attr(755,root,root) %{_bindir}/palapeli | |
108 | %ghost %{_libdir}/libpala.so.0 | |
3e0635a3 | 109 | %{_libdir}/libpala.so.*.*.* |
de340b96 WF |
110 | %{_libdir}/qt5/plugins/palathumbcreator.so |
111 | %{_desktopdir}/org.kde.palapeli.desktop | |
112 | %{_iconsdir}/hicolor/128x128/apps/palapeli.png | |
113 | %{_iconsdir}/hicolor/128x128/mimetypes/application-x-palapeli.png | |
114 | %{_iconsdir}/hicolor/16x16/apps/palapeli.png | |
115 | %{_iconsdir}/hicolor/16x16/mimetypes/application-x-palapeli.png | |
116 | %{_iconsdir}/hicolor/24x24/apps/palapeli.png | |
117 | %{_iconsdir}/hicolor/24x24/mimetypes/application-x-palapeli.png | |
118 | %{_iconsdir}/hicolor/32x32/apps/palapeli.png | |
119 | %{_iconsdir}/hicolor/32x32/mimetypes/application-x-palapeli.png | |
120 | %{_iconsdir}/hicolor/48x48/apps/palapeli.png | |
121 | %{_iconsdir}/hicolor/48x48/mimetypes/application-x-palapeli.png | |
122 | %{_iconsdir}/hicolor/64x64/apps/palapeli.png | |
123 | %{_iconsdir}/hicolor/64x64/mimetypes/application-x-palapeli.png | |
124 | %{_datadir}/knotifications5/palapeli.notifyrc | |
125 | %{_datadir}/kservices5/ServiceMenus/palapeli_servicemenu.desktop | |
de340b96 | 126 | %{_datadir}/kservices5/palathumbcreator.desktop |
de340b96 WF |
127 | %{_datadir}/metainfo/org.kde.palapeli.appdata.xml |
128 | %{_datadir}/mime/packages/palapeli-mimetypes.xml | |
129 | %{_datadir}/palapeli | |
d5e4de07 | 130 | %{_datadir}/qlogging-categories5/palapeli.categories |
dacca82b | 131 | %dir %{_libdir}/qt5/plugins/palapelislicers |
3e0635a3 WF |
132 | %attr(755,root,root) %{_libdir}/qt5/plugins/palapelislicers/palapeli_goldbergslicer.so |
133 | %attr(755,root,root) %{_libdir}/qt5/plugins/palapelislicers/palapeli_jigsawslicer.so | |
134 | %attr(755,root,root) %{_libdir}/qt5/plugins/palapelislicers/palapeli_rectslicer.so | |
de340b96 WF |
135 | |
136 | %files devel | |
137 | %defattr(644,root,root,755) | |
138 | %{_includedir}/Pala | |
de340b96 | 139 | %{_libdir}/libpala.so |
3e0635a3 | 140 | %{_libdir}/cmake/Pala |