]>
Commit | Line | Data |
---|---|---|
6087987f WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
5cf4f27e | 4 | %define kdeappsver 22.12.2 |
acf39c3e WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
0ac09215 WF |
7 | %define kaname kolourpaint |
8 | Summary: kolourpaint | |
9 | Name: ka5-%{kaname} | |
5cf4f27e | 10 | Version: 22.12.2 |
efba6ee1 | 11 | Release: 1 |
0ac09215 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications | |
19d7f952 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
5cf4f27e | 15 | # Source0-md5: e0697989eec48a1af93de6a6c7188c8b |
0ac09215 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
19 | BuildRequires: Qt5PrintSupport-devel | |
20 | BuildRequires: Qt5Widgets-devel | |
21 | BuildRequires: cmake >= 2.8.12 | |
22 | BuildRequires: gettext-devel | |
5c991160 | 23 | BuildRequires: ka5-libksane-devel >= %{kdeappsver} |
3916aa2c WF |
24 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
25 | BuildRequires: kf5-kdelibs4support-devel >= %{kframever} | |
26 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
27 | BuildRequires: kf5-kguiaddons-devel >= %{kframever} | |
28 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
29 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
30 | BuildRequires: kf5-kio-devel >= %{kframever} | |
31 | BuildRequires: kf5-ktextwidgets-devel >= %{kframever} | |
32 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
33 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
c2d6a44e | 34 | BuildRequires: ninja |
0ac09215 WF |
35 | BuildRequires: qt5-build >= %{qtver} |
36 | BuildRequires: rpmbuild(macros) >= 1.164 | |
37 | BuildRequires: shared-mime-info | |
38 | BuildRequires: tar >= 1:1.22 | |
39 | BuildRequires: xz | |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | %description | |
43 | KolourPaint is a simple painting program to quickly create raster | |
44 | images. It is useful as a touch-up tool and simple image editing | |
45 | tasks. | |
46 | ||
47 | Features: Support for drawing various shapes - lines, rectangles, | |
48 | rounded rectangles, ovals and polygons. | |
49 | ||
dfbba05e WF |
50 | %description -l pl.UTF-8 |
51 | KolourPaint jest prostym programem do szybkiego tworzenia | |
52 | rastrowych obrazków. Jest przydatny do retuszowania i prostych | |
53 | zadań edycji obrazków. | |
54 | ||
55 | Właściwości: Wsparcie dla rysowania różnych kształtów - linii, | |
56 | prostokątów, zaokrąglonych prostokątów, owali i wieloboków. | |
57 | ||
0ac09215 WF |
58 | %prep |
59 | %setup -q -n %{kaname}-%{version} | |
60 | ||
61 | %build | |
62 | install -d build | |
63 | cd build | |
64 | %cmake \ | |
c2d6a44e | 65 | -G Ninja \ |
6087987f | 66 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
3916aa2c | 67 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
0ac09215 WF |
68 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
69 | .. | |
c2d6a44e | 70 | %ninja_build |
0ac09215 | 71 | |
6087987f WF |
72 | %if %{with tests} |
73 | ctest | |
74 | %endif | |
75 | ||
76 | ||
0ac09215 WF |
77 | %install |
78 | rm -rf $RPM_BUILD_ROOT | |
c2d6a44e | 79 | %ninja_install -C build |
0ac09215 | 80 | |
cbfc8c45 KM |
81 | # not supported by glibc yet |
82 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/tok | |
83 | ||
0ac09215 WF |
84 | %find_lang %{kaname} --all-name --with-kde |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %files -f %{kaname}.lang | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_bindir}/kolourpaint | |
a6946c76 | 92 | %{_libdir}/libkolourpaint_lgpl.so |
0ac09215 WF |
93 | %attr(755,root,root) %{_libdir}/libkolourpaint_lgpl.so.5 |
94 | %{_desktopdir}/org.kde.kolourpaint.desktop | |
95 | %{_iconsdir}/hicolor/16x16/apps/kolourpaint.png | |
96 | %{_iconsdir}/hicolor/22x22/apps/kolourpaint.png | |
97 | %{_iconsdir}/hicolor/32x32/apps/kolourpaint.png | |
98 | %{_iconsdir}/hicolor/48x48/apps/kolourpaint.png | |
99 | %{_iconsdir}/hicolor/scalable/apps/kolourpaint.svgz | |
100 | %{_datadir}/kolourpaint | |
101 | %{_datadir}/kxmlgui5/kolourpaint | |
102 | %{_datadir}/metainfo/org.kde.kolourpaint.appdata.xml | |
db792b8b | 103 | %{_iconsdir}/hicolor/128x128/apps/kolourpaint.png |