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