]> git.pld-linux.org Git - packages/ka5-palapeli.git/blob - ka5-palapeli.spec
- updated to 22.04.3
[packages/ka5-palapeli.git] / ka5-palapeli.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # build with tests
4 %define         kdeappsver      22.04.3
5 %define         qtver           5.15.2
6 %define         kaname          palapeli
7 Summary:        Puzzle game
8 Name:           ka5-%{kaname}
9 Version:        22.04.3
10 Release:        1
11 License:        GPL v2+/LGPL v2.1+
12 Group:          X11/Applications/Games
13 Source0:        https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
14 # Source0-md5:  a758f5bc9900e4be98a2c484b4f64bd5
15 URL:            http://www.kde.org/
16 BuildRequires:  Qt5Concurrent-devel
17 BuildRequires:  Qt5Core-devel >= %{qtver}
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
23 BuildRequires:  cmake >= 2.8.12
24 BuildRequires:  gettext-devel
25 BuildRequires:  ka5-libkdegames-devel >= %{kdeappsver}
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
40 BuildRequires:  ninja
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
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.
53
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
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 \
80         -G Ninja \
81         %{!?with_tests:-DBUILD_TESTING=OFF} \
82         -DHTML_INSTALL_DIR=%{_kdedocdir} \
83         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
84         ..
85 %ninja_build
86
87 %if %{with tests}
88 ctest
89 %endif
90
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 %ninja_install -C build
95
96 %find_lang %{kaname} --all-name --with-kde
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %post   -p /sbin/ldconfig
102 %postun -p /sbin/ldconfig
103
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
109 %{_libdir}/libpala.so.*.*.*
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
126 %{_datadir}/kservices5/palathumbcreator.desktop
127 %{_datadir}/metainfo/org.kde.palapeli.appdata.xml
128 %{_datadir}/mime/packages/palapeli-mimetypes.xml
129 %{_datadir}/palapeli
130 %{_datadir}/qlogging-categories5/palapeli.categories
131 %dir %{_libdir}/qt5/plugins/palapelislicers
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
135
136 %files devel
137 %defattr(644,root,root,755)
138 %{_includedir}/Pala
139 %{_libdir}/libpala.so
140 %{_libdir}/cmake/Pala
This page took 0.055097 seconds and 3 git commands to generate.